Compare commits

...
22 Commits
Author SHA1 Message Date
Max Lv d3018fc090 update travis 2015-03-10 16:42:02 +08:00
Max Lv f1f585b4d9 update travis 2015-03-10 16:34:40 +08:00
Max Lv 3653f73e0b update travis 2015-03-10 16:15:31 +08:00
Max Lv d648910aac fix travis 2015-03-10 09:59:30 +08:00
Max Lv 1e2f8c3bd3 Merge pull request #258 from lozen130/patch-1
Fix a coding style issue
2015-03-07 14:35:06 +08:00
Lozen Liu b94c16c725 Fix a coding style issue
Method name should conform to the standard
2015-03-07 14:32:29 +08:00
Max Lv a03a6af5ba update #250 2015-02-25 12:20:29 +08:00
Max Lv b9414c6b0a Merge pull request #249 from Mygod/master
Providing up navigation
2015-02-25 07:44:52 +08:00
Mygod 0d54d9cd9b bugfix 2015-02-24 22:52:57 +08:00
Mygod 8611a66cdc fix indent 2015-02-24 22:38:37 +08:00
Mygod 740dcc3ca9 providing up navigation 2015-02-24 22:34:14 +08:00
Max Lv 730efbafc0 refine URL parser 2015-02-09 18:45:40 +08:00
Max Lv 8b05476823 Merge pull request #241 from cloudtrends/master
add export ANDROID_NDK_HOME variable
2015-02-07 08:37:16 +08:00
ChunFeng 50b890423a add export ANDROID_NDK_HOME variable
add export ANDROID_NDK_HOME variable
2015-02-07 07:57:19 +08:00
Max Lv fb63268895 fix a corner case 2015-01-29 10:20:59 +08:00
Max Lv 41934f8909 try to workaround travis-ci's limit 2015-01-28 13:21:12 +08:00
Max Lv bedc7a0443 add caching to travis 2015-01-28 13:14:00 +08:00
Max Lv 537f790386 fix travis-ci 2015-01-28 13:03:29 +08:00
Max Lv 62afcf51d7 update travis-ci 2015-01-28 12:56:55 +08:00
Max Lv 6c1ae68931 update shadowsocks-libev 2015-01-27 21:00:25 +08:00
Max Lv 2703e91bbe bump version 2015-01-27 17:52:06 +08:00
Max Lv 8fba319db2 fix #228 2015-01-25 13:18:42 +08:00
20 changed files with 9168 additions and 45714 deletions
+17 -12
View File
@@ -1,21 +1,26 @@
language: scala
scala:
- 2.10.4
language: android
android:
components:
- tools
- platform-tools
- build-tools-21.1.1
- android-21
- extra-google-m2repository
- extra-android-m2repository
cache:
- apt
before_install:
- echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
- sudo apt-get update
install:
- sudo apt-get install -y libc6-dev-i386 lib32ncurses5-dev libx11-dev g++-multilib lib32z1-dev ccache
- sudo apt-get install -y --force-yes sbt libc6-dev-i386 lib32ncurses5-dev libx11-dev g++-multilib lib32z1-dev ccache
- export NDK_CCACHE=ccache
- export ARCH=`uname -m`
- wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
- tar xf android-sdk_r23.0.2-linux.tgz
- wget http://dl.google.com/android/ndk/android-ndk-r9d-linux-${ARCH}.tar.bz2
- tar xf android-ndk-r9d-linux-${ARCH}.tar.bz2
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r9d
- export ANDROID_HOME=`pwd`/android-sdk-linux
- wget http://dl.google.com/android/ndk/android-ndk-r10d-linux-${ARCH}.bin
- chmod +x android-ndk-r10d-linux-${ARCH}.bin
- ./android-ndk-r10d-linux-${ARCH}.bin -y | grep gcc
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r10d
- export PATH=${PATH}:${ANDROID_NDK_HOME}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
- echo "y" | android update sdk --filter tools,platform-tools,build-tools-21.0.1,android-21,extra-google-m2repository --no-ui --no-https -a
- echo "y" | android update sdk --filter extra-android-m2repository --no-ui --no-https -a
script:
- cp local.properties.travis local.properties
- ./build.sh
+1
View File
@@ -40,6 +40,7 @@ Help to translate shadowsocks: http://crowdin.net/project/shadowsocks/invite
* Install Android SDK and NDK by run `brew install android-ndk android-sdk`
* Add `export ANDROID_HOME=/usr/local/Cellar/android-sdk/$version` to your .bashrc , then reopen the shell to load it.
* Add `export ANDROID_NDK_HOME=/usr/local/Cellar/android-ndk/$version` to your .bashrc , then reopen the shell to load it.
* echo "y" | android update sdk --filter tools,platform-tools,build-tools-21.0.1,android-21,extra-google-m2repository --no-ui --no-https -a
* echo "y" | android update sdk --filter extra-android-m2repository --no-ui --no-https -a
* Create your key following the instructions at http://developer.android.com/guide/publishing/app-signing.html#cert
File diff suppressed because it is too large Load Diff
-4488
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+4 -3
View File
@@ -1,7 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.github.shadowsocks"
android:versionCode="101"
android:versionName="2.6.3">
android:versionCode="103"
android:versionName="2.6.5">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
@@ -65,7 +65,8 @@
<activity
android:name=".AppManager"
android:theme="@style/Theme.AppManager"
android:label="@string/app_name">
android:label="@string/app_name"
android:parentActivityName=".Shadowsocks">
<intent-filter>
<action android:name="com.github.shadowsocks.AppManager"/>
<category android:name="android.intent.category.DEFAULT"/>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
View File
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Executable → Regular
View File
View File
@@ -259,6 +259,9 @@ class AppManager extends Activity with OnCheckedChangeListener with OnClickListe
}
Toast.makeText(this, R.string.action_import_err, Toast.LENGTH_SHORT).show()
return false
case android.R.id.home =>
navigateUpTo(getParentActivityIntent)
return true
}
super.onOptionsItemSelected(item)
}
@@ -274,7 +277,9 @@ class AppManager extends Activity with OnCheckedChangeListener with OnClickListe
handler = new Handler()
getActionBar.setTitle(R.string.proxied_help)
val actionBar = getActionBar()
actionBar.setTitle(R.string.proxied_help)
actionBar.setDisplayHomeAsUpEnabled(true)
this.setContentView(R.layout.layout_apps)
this.overlay = View.inflate(this, R.layout.overlay, null).asInstanceOf[TextView]
getWindowManager.addView(overlay, new
@@ -321,7 +321,7 @@ class Shadowsocks
}
}
private def crash_recovery() {
private def crashRecovery() {
val cmd = new ArrayBuffer[String]()
for (task <- Array("ss-local", "ss-tunnel", "pdnsd", "redsocks", "tun2socks")) {
@@ -849,7 +849,7 @@ class Shadowsocks
def reset() {
crash_recovery()
crashRecovery()
copyAssets(System.getABI)
@@ -348,7 +348,7 @@ class ShadowsocksNatService extends Service with BaseService {
actionIntent)
if (visible)
builder.setPriority(NotificationCompat.PRIORITY_MAX)
builder.setPriority(NotificationCompat.PRIORITY_DEFAULT)
else
builder.setPriority(NotificationCompat.PRIORITY_MIN)
@@ -58,7 +58,9 @@ class ShadowsocksRunnerActivity extends Activity {
override def onServiceConnected(name: ComponentName, service: IBinder) {
bgService = IShadowsocksService.Stub.asInterface(service)
handler.postDelayed(new Runnable() {
override def run() = startBackgroundService()
override def run() {
if (bgService != null) startBackgroundService()
}
}, 1000)
}
override def onServiceDisconnected(name: ComponentName) {
@@ -65,7 +65,7 @@ object Parser {
profile.host = host
profile.remotePort = port.toInt
profile.localPort = 1080
profile.method = method
profile.method = method.toLowerCase
profile.password = password
return Some(profile)
}