Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b99f8e3d6 | ||
|
|
475cfe3269 | ||
|
|
102387077f | ||
|
|
72824eb8f4 | ||
|
|
1f40be1ad3 | ||
|
|
c12ec62d8b | ||
|
|
e38ed2d069 | ||
|
|
2e05e3cda8 | ||
|
|
92ffb357a6 | ||
|
|
4beff01a3f | ||
|
|
7627952234 | ||
|
|
425d4a42e8 | ||
|
|
194d978143 | ||
|
|
f6841848a3 | ||
|
|
52cb15069c | ||
|
|
70ed2189b1 | ||
|
|
aeee9c2fac | ||
|
|
70dc8e9995 | ||
|
|
558a39ec14 | ||
|
|
5f95cccce4 | ||
|
|
55f25d3272 | ||
|
|
93273cbc44 | ||
|
|
c0514ee169 | ||
|
|
06d736b22d | ||
|
|
e34d5675eb | ||
|
|
94c7ffb788 | ||
|
|
0647ef4c6d | ||
|
|
97c6ff95cd | ||
|
|
971ef22186 | ||
|
|
c35a92a927 | ||
|
|
c05a63a75b | ||
|
|
6074a99eb6 | ||
|
|
e52719d1be | ||
|
|
cfaaaf5341 | ||
|
|
4a4d3b11fb | ||
|
|
3538caa80d | ||
|
|
ae30c218e9 | ||
|
|
86e93ffa2d |
@@ -3,24 +3,21 @@ scala:
|
||||
- 2.10.4
|
||||
before_install:
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install libc6-dev-i386
|
||||
- sudo apt-get install lib32ncurses5-dev
|
||||
- sudo apt-get install libx11-dev
|
||||
- sudo apt-get install g++-multilib
|
||||
- sudo apt-get install lib32z1-dev
|
||||
- sudo apt-get install ccache
|
||||
install:
|
||||
- sudo apt-get install -y 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-linux.tgz
|
||||
- tar xf android-sdk_r23-linux.tgz
|
||||
- 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=`pwd`/android-ndk-r9d
|
||||
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r9d
|
||||
- export ANDROID_HOME=`pwd`/android-sdk-linux
|
||||
- export PATH=${PATH}:${ANDROID_NDK_HOME}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
|
||||
- echo "y" | android update sdk --filter tools,platform-tools,build-tools-20.0.0,android-19,extra-google-m2repository --no-ui --no-https -a
|
||||
- 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:
|
||||
- ./build-ndk.sh
|
||||
- cp local.properties.travis local.properties
|
||||
- sbt android:package-release
|
||||
- exit 0
|
||||
|
||||
@@ -39,7 +39,7 @@ Help to translate shadowsocks: http://crowdin.net/project/shadowsocks/invite
|
||||
#### BUILD on Mac OS X (with HomeBrew)
|
||||
|
||||
* 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 loat it.
|
||||
* Add `export ANDROID_HOME=/usr/local/Cellar/android-sdk/$version` to your .bashrc , then reopen the shell to load it.
|
||||
* Run `echo "y" | android update sdk --filter tools,platform-tools,build-tools-19.0.3,android-19,extra-google-m2repository,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
|
||||
* Put your key in ~/.keystore
|
||||
|
||||
@@ -1,38 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Target 9
|
||||
cp jni/Application.mk.9 jni/Application.mk
|
||||
ndk-build clean
|
||||
ndk-build
|
||||
rm -rf src/main/assets/armeabi
|
||||
function try () {
|
||||
"$@" || exit -1
|
||||
}
|
||||
|
||||
# Build
|
||||
try $ANDROID_NDK_HOME/ndk-build clean
|
||||
try $ANDROID_NDK_HOME/ndk-build
|
||||
|
||||
# copy executables
|
||||
rm -rf src/main/assets/armeabi-v7a
|
||||
rm -rf src/main/assets/x86
|
||||
mkdir -p src/main/assets/armeabi
|
||||
mkdir -p src/main/assets/armeabi-v7a
|
||||
mkdir -p src/main/assets/x86
|
||||
for app in pdnsd redsocks
|
||||
for app in pdnsd redsocks iptables
|
||||
do
|
||||
mv libs/armeabi/$app src/main/assets/armeabi/
|
||||
mv libs/armeabi-v7a/$app src/main/assets/armeabi-v7a/
|
||||
mv libs/x86/$app src/main/assets/x86/
|
||||
done
|
||||
rm -rf src/main/jni
|
||||
mv libs src/main/jni
|
||||
|
||||
# Target 16
|
||||
cp jni/Application.mk.16 jni/Application.mk
|
||||
ndk-build clean
|
||||
ndk-build
|
||||
rm -rf src/main/assets/api-16/armeabi
|
||||
rm -rf src/main/assets/api-16/armeabi-v7a
|
||||
rm -rf src/main/assets/api-16/x86
|
||||
mkdir -p src/main/assets/api-16/armeabi
|
||||
mkdir -p src/main/assets/api-16/armeabi-v7a
|
||||
mkdir -p src/main/assets/api-16/x86
|
||||
for app in pdnsd redsocks
|
||||
do
|
||||
mv libs/armeabi/$app src/main/assets/api-16/armeabi/
|
||||
mv libs/armeabi-v7a/$app src/main/assets/api-16/armeabi-v7a/
|
||||
mv libs/x86/$app src/main/assets/api-16/x86/
|
||||
try mv libs/armeabi-v7a/$app src/main/assets/armeabi-v7a/
|
||||
try mv libs/x86/$app src/main/assets/x86/
|
||||
done
|
||||
|
||||
# copy libraries
|
||||
rm -rf src/main/jni/armeabi-v7a
|
||||
rm -rf src/main/jni/x86
|
||||
mkdir -p src/main/jni/armeabi-v7a
|
||||
mkdir -p src/main/jni/x86
|
||||
try mv libs/armeabi-v7a/*.so src/main/jni/armeabi-v7a/
|
||||
try mv libs/x86/*.so src/main/jni/x86/
|
||||
|
||||
@@ -4,7 +4,7 @@ import android.Dependencies.{apklib,aar}
|
||||
|
||||
android.Plugin.androidBuild
|
||||
|
||||
platformTarget in Android := "android-19"
|
||||
platformTarget in Android := "android-21"
|
||||
|
||||
name := "shadowsocks"
|
||||
|
||||
@@ -15,7 +15,6 @@ resolvers += "JRAF" at "http://JRAF.org/static/maven/2"
|
||||
resolvers += "madeye private releases" at "http://madeye-maven-repository.googlecode.com/git/"
|
||||
|
||||
libraryDependencies ++= Seq(
|
||||
"com.google.android" % "analytics" % "3.01",
|
||||
"dnsjava" % "dnsjava" % "2.1.5",
|
||||
"org.scalaj" %% "scalaj-http" % "0.3.10",
|
||||
"commons-net" % "commons-net" % "3.3",
|
||||
@@ -23,15 +22,13 @@ libraryDependencies ++= Seq(
|
||||
)
|
||||
|
||||
libraryDependencies ++= Seq(
|
||||
aar("com.actionbarsherlock" % "actionbarsherlock" % "4.4.0") exclude("com.google.android", "support-v4"),
|
||||
"net.simonvt.menudrawer" % "menudrawer" % "3.0.6",
|
||||
"org.jraf" % "android-switch-backport" % "1.3.1",
|
||||
"com.google.android.gms" % "play-services" % "4.4.52",
|
||||
"com.google.android.gms" % "play-services" % "5.0.89",
|
||||
"com.android.support" % "support-v4" % "19.1.0"
|
||||
)
|
||||
|
||||
libraryDependencies ++= Seq(
|
||||
"de.keyboardsurfer.android.widget" % "crouton" % "1.8.1" exclude("com.google.android", "support-v4"),
|
||||
"de.keyboardsurfer.android.widget" % "crouton" % "1.8.4" exclude("com.google.android", "support-v4"),
|
||||
"com.nostra13.universalimageloader" % "universal-image-loader" % "1.8.4",
|
||||
"com.j256.ormlite" % "ormlite-core" % "4.47",
|
||||
"com.j256.ormlite" % "ormlite-android" % "4.47"
|
||||
|
||||
@@ -335,13 +335,13 @@ openssl_subdirs := $(addprefix $(LOCAL_PATH)/openssl/,$(addsuffix /Android.mk, \
|
||||
include $(openssl_subdirs)
|
||||
|
||||
# Iptables
|
||||
# LOCAL_PATH := $(ROOT_PATH)
|
||||
# iptables_subdirs := $(addprefix $(LOCAL_PATH)/iptables/,$(addsuffix /Android.mk, \
|
||||
# iptables \
|
||||
# extensions \
|
||||
# libiptc \
|
||||
# ))
|
||||
# include $(iptables_subdirs)
|
||||
LOCAL_PATH := $(ROOT_PATH)
|
||||
iptables_subdirs := $(addprefix $(LOCAL_PATH)/iptables/,$(addsuffix /Android.mk, \
|
||||
iptables \
|
||||
extensions \
|
||||
libiptc \
|
||||
))
|
||||
include $(iptables_subdirs)
|
||||
|
||||
# Import cpufeatures
|
||||
$(call import-module,android/cpufeatures)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
APP_ABI := armeabi-v7a x86
|
||||
APP_PLATFORM := android-16
|
||||
APP_STL := stlport_static
|
||||
NDK_TOOLCHAIN_VERSION := 4.9
|
||||
@@ -1,4 +0,0 @@
|
||||
APP_ABI := armeabi armeabi-v7a x86
|
||||
APP_PLATFORM := android-16
|
||||
APP_STL := stlport_static
|
||||
NDK_TOOLCHAIN_VERSION := 4.8
|
||||
@@ -1,4 +0,0 @@
|
||||
APP_ABI := armeabi armeabi-v7a x86
|
||||
APP_PLATFORM := android-9
|
||||
APP_STL := stlport_static
|
||||
NDK_TOOLCHAIN_VERSION := 4.8
|
||||
@@ -21,11 +21,11 @@ jstring Java_com_github_shadowsocks_system_getabi(JNIEnv *env, jobject thiz) {
|
||||
} else if (family == ANDROID_CPU_FAMILY_MIPS) {
|
||||
abi = "mips";
|
||||
} else if (family == ANDROID_CPU_FAMILY_ARM) {
|
||||
if (features & ANDROID_CPU_ARM_FEATURE_ARMv7) {
|
||||
abi = "armeabi-v7a";
|
||||
} else {
|
||||
abi = "armeabi";
|
||||
}
|
||||
// if (features & ANDROID_CPU_ARM_FEATURE_ARMv7) {
|
||||
abi = "armeabi-v7a";
|
||||
// } else {
|
||||
// abi = "armeabi";
|
||||
// }
|
||||
}
|
||||
return env->NewStringUTF(abi);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.github.shadowsocks"
|
||||
android:versionCode="69"
|
||||
android:versionName="2.2.1">
|
||||
android:versionCode="78"
|
||||
android:versionName="2.3.3">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
||||
@@ -15,10 +15,11 @@
|
||||
android:required="false"/>
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="9"
|
||||
android:targetSdkVersion="19"/>
|
||||
android:minSdkVersion="16"
|
||||
android:targetSdkVersion="21"/>
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:name=".ShadowsocksApplication"
|
||||
android:hardwareAccelerated="true"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
@@ -75,14 +76,12 @@
|
||||
|
||||
<service
|
||||
android:name=".ShadowsocksNatService"
|
||||
android:process=":proxy"
|
||||
android:exported="false">
|
||||
</service>
|
||||
|
||||
<service
|
||||
android:name=".ShadowsocksVpnService"
|
||||
android:label="@string/app_name"
|
||||
android:process=":vpn"
|
||||
android:permission="android.permission.BIND_VPN_SERVICE"
|
||||
android:exported="false">
|
||||
<intent-filter>
|
||||
|
||||
|
Before Width: | Height: | Size: 194 B After Width: | Height: | Size: 193 B |
|
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 198 B |
|
Before Width: | Height: | Size: 135 B After Width: | Height: | Size: 129 B |
|
Before Width: | Height: | Size: 118 B After Width: | Height: | Size: 125 B |
|
After Width: | Height: | Size: 113 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 514 B After Width: | Height: | Size: 461 B |
|
Before Width: | Height: | Size: 107 B After Width: | Height: | Size: 107 B |
|
Before Width: | Height: | Size: 100 B After Width: | Height: | Size: 100 B |
|
Before Width: | Height: | Size: 156 B After Width: | Height: | Size: 156 B |
|
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 166 B |
|
Before Width: | Height: | Size: 105 B After Width: | Height: | Size: 105 B |
|
Before Width: | Height: | Size: 114 B After Width: | Height: | Size: 134 B |
|
After Width: | Height: | Size: 110 B |
|
Before Width: | Height: | Size: 817 B After Width: | Height: | Size: 822 B |
|
Before Width: | Height: | Size: 370 B After Width: | Height: | Size: 351 B |
|
Before Width: | Height: | Size: 104 B After Width: | Height: | Size: 104 B |
|
Before Width: | Height: | Size: 97 B After Width: | Height: | Size: 97 B |
|
Before Width: | Height: | Size: 253 B After Width: | Height: | Size: 251 B |
|
Before Width: | Height: | Size: 260 B After Width: | Height: | Size: 259 B |
|
Before Width: | Height: | Size: 123 B After Width: | Height: | Size: 123 B |
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 129 B |
|
After Width: | Height: | Size: 114 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 677 B After Width: | Height: | Size: 603 B |
|
Before Width: | Height: | Size: 111 B After Width: | Height: | Size: 111 B |
|
Before Width: | Height: | Size: 101 B After Width: | Height: | Size: 101 B |
|
After Width: | Height: | Size: 357 B |
|
After Width: | Height: | Size: 351 B |
|
After Width: | Height: | Size: 350 B |
|
After Width: | Height: | Size: 255 B |
|
After Width: | Height: | Size: 352 B |
|
After Width: | Height: | Size: 140 B |
|
After Width: | Height: | Size: 131 B |
|
After Width: | Height: | Size: 148 B |
|
After Width: | Height: | Size: 372 B |
|
After Width: | Height: | Size: 360 B |
|
After Width: | Height: | Size: 163 B |
|
After Width: | Height: | Size: 137 B |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 156 B |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 157 B |
|
After Width: | Height: | Size: 480 B |
|
After Width: | Height: | Size: 481 B |
|
After Width: | Height: | Size: 805 B |
|
After Width: | Height: | Size: 744 B |
|
After Width: | Height: | Size: 116 B |
|
After Width: | Height: | Size: 116 B |
|
After Width: | Height: | Size: 110 B |
|
After Width: | Height: | Size: 102 B |
|
After Width: | Height: | Size: 102 B |
|
After Width: | Height: | Size: 110 B |
|
Before Width: | Height: | Size: 388 B |
|
Before Width: | Height: | Size: 344 B |
|
Before Width: | Height: | Size: 390 B |
|
Before Width: | Height: | Size: 401 B |
|
Before Width: | Height: | Size: 385 B |
|
Before Width: | Height: | Size: 393 B |
|
Before Width: | Height: | Size: 404 B |
|
Before Width: | Height: | Size: 364 B |
|
Before Width: | Height: | Size: 395 B |
|
Before Width: | Height: | Size: 404 B |
|
Before Width: | Height: | Size: 427 B |
|
Before Width: | Height: | Size: 386 B |
|
Before Width: | Height: | Size: 440 B |
|
Before Width: | Height: | Size: 436 B |
|
Before Width: | Height: | Size: 425 B |
|
Before Width: | Height: | Size: 431 B |
|
Before Width: | Height: | Size: 427 B |
|
Before Width: | Height: | Size: 409 B |
|
Before Width: | Height: | Size: 442 B |
|
Before Width: | Height: | Size: 413 B |
|
Before Width: | Height: | Size: 450 B |
|
Before Width: | Height: | Size: 424 B |
|
Before Width: | Height: | Size: 446 B |
|
Before Width: | Height: | Size: 463 B |
|
Before Width: | Height: | Size: 434 B |
|
Before Width: | Height: | Size: 447 B |
|
Before Width: | Height: | Size: 457 B |
|
Before Width: | Height: | Size: 432 B |
|
Before Width: | Height: | Size: 455 B |
|
Before Width: | Height: | Size: 452 B |
|
Before Width: | Height: | Size: 459 B |
|
Before Width: | Height: | Size: 440 B |
|
Before Width: | Height: | Size: 458 B |
|
Before Width: | Height: | Size: 456 B |
|
Before Width: | Height: | Size: 456 B |
|
Before Width: | Height: | Size: 463 B |