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 |
@@ -3,22 +3,18 @@ scala:
|
|||||||
- 2.10.4
|
- 2.10.4
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get update
|
- sudo apt-get update
|
||||||
- sudo apt-get install libc6-dev-i386
|
install:
|
||||||
- sudo apt-get install lib32ncurses5-dev
|
- sudo apt-get install -y libc6-dev-i386 lib32ncurses5-dev libx11-dev g++-multilib lib32z1-dev ccache
|
||||||
- sudo apt-get install libx11-dev
|
|
||||||
- sudo apt-get install g++-multilib
|
|
||||||
- sudo apt-get install lib32z1-dev
|
|
||||||
- sudo apt-get install ccache
|
|
||||||
- export NDK_CCACHE=ccache
|
- export NDK_CCACHE=ccache
|
||||||
- export ARCH=`uname -m`
|
- export ARCH=`uname -m`
|
||||||
- wget http://dl.google.com/android/android-sdk_r23-linux.tgz
|
- wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
|
||||||
- tar xf android-sdk_r23-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
|
- wget http://dl.google.com/android/ndk/android-ndk-r9d-linux-${ARCH}.tar.bz2
|
||||||
- tar xf 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 ANDROID_HOME=`pwd`/android-sdk-linux
|
||||||
- export PATH=${PATH}:${ANDROID_NDK_HOME}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
|
- 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
|
- echo "y" | android update sdk --filter extra-android-m2repository --no-ui --no-https -a
|
||||||
script:
|
script:
|
||||||
- ./build-ndk.sh
|
- ./build-ndk.sh
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ Help to translate shadowsocks: http://crowdin.net/project/shadowsocks/invite
|
|||||||
#### BUILD on Mac OS X (with HomeBrew)
|
#### BUILD on Mac OS X (with HomeBrew)
|
||||||
|
|
||||||
* Install Android SDK and NDK by run `brew install android-ndk android-sdk`
|
* 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`
|
* 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
|
* Create your key following the instructions at http://developer.android.com/guide/publishing/app-signing.html#cert
|
||||||
* Put your key in ~/.keystore
|
* Put your key in ~/.keystore
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ function try () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
try ndk-build clean
|
try $ANDROID_NDK_HOME/ndk-build clean
|
||||||
try ndk-build
|
try $ANDROID_NDK_HOME/ndk-build
|
||||||
|
|
||||||
# copy executables
|
# copy executables
|
||||||
rm -rf src/main/assets/armeabi-v7a
|
rm -rf src/main/assets/armeabi-v7a
|
||||||
rm -rf src/main/assets/x86
|
rm -rf src/main/assets/x86
|
||||||
mkdir -p src/main/assets/armeabi-v7a
|
mkdir -p src/main/assets/armeabi-v7a
|
||||||
mkdir -p src/main/assets/x86
|
mkdir -p src/main/assets/x86
|
||||||
for app in pdnsd redsocks
|
for app in pdnsd redsocks iptables
|
||||||
do
|
do
|
||||||
try mv libs/armeabi-v7a/$app src/main/assets/armeabi-v7a/
|
try mv libs/armeabi-v7a/$app src/main/assets/armeabi-v7a/
|
||||||
try mv libs/x86/$app src/main/assets/x86/
|
try mv libs/x86/$app src/main/assets/x86/
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import android.Dependencies.{apklib,aar}
|
|||||||
|
|
||||||
android.Plugin.androidBuild
|
android.Plugin.androidBuild
|
||||||
|
|
||||||
platformTarget in Android := "android-19"
|
platformTarget in Android := "android-21"
|
||||||
|
|
||||||
name := "shadowsocks"
|
name := "shadowsocks"
|
||||||
|
|
||||||
|
|||||||
@@ -335,13 +335,13 @@ openssl_subdirs := $(addprefix $(LOCAL_PATH)/openssl/,$(addsuffix /Android.mk, \
|
|||||||
include $(openssl_subdirs)
|
include $(openssl_subdirs)
|
||||||
|
|
||||||
# Iptables
|
# Iptables
|
||||||
# LOCAL_PATH := $(ROOT_PATH)
|
LOCAL_PATH := $(ROOT_PATH)
|
||||||
# iptables_subdirs := $(addprefix $(LOCAL_PATH)/iptables/,$(addsuffix /Android.mk, \
|
iptables_subdirs := $(addprefix $(LOCAL_PATH)/iptables/,$(addsuffix /Android.mk, \
|
||||||
# iptables \
|
iptables \
|
||||||
# extensions \
|
extensions \
|
||||||
# libiptc \
|
libiptc \
|
||||||
# ))
|
))
|
||||||
# include $(iptables_subdirs)
|
include $(iptables_subdirs)
|
||||||
|
|
||||||
# Import cpufeatures
|
# Import cpufeatures
|
||||||
$(call import-module,android/cpufeatures)
|
$(call import-module,android/cpufeatures)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
APP_ABI := armeabi-v7a x86
|
APP_ABI := armeabi-v7a x86
|
||||||
APP_PLATFORM := android-16
|
APP_PLATFORM := android-16
|
||||||
APP_STL := stlport_static
|
APP_STL := stlport_static
|
||||||
NDK_TOOLCHAIN_VERSION := 4.8
|
NDK_TOOLCHAIN_VERSION := 4.9
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.github.shadowsocks"
|
package="com.github.shadowsocks"
|
||||||
android:versionCode="72"
|
android:versionCode="78"
|
||||||
android:versionName="2.2.4">
|
android:versionName="2.3.3">
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET"/>
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
android:minSdkVersion="16"
|
android:minSdkVersion="16"
|
||||||
android:targetSdkVersion="19"/>
|
android:targetSdkVersion="21"/>
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
|
|||||||
|
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 |
|
Before Width: | Height: | Size: 469 B |
|
Before Width: | Height: | Size: 441 B |
|
Before Width: | Height: | Size: 459 B |
|
Before Width: | Height: | Size: 462 B |
|
Before Width: | Height: | Size: 450 B |
|
Before Width: | Height: | Size: 430 B |
|
Before Width: | Height: | Size: 454 B |
|
Before Width: | Height: | Size: 447 B |
|
Before Width: | Height: | Size: 449 B |
|
Before Width: | Height: | Size: 456 B |
|
Before Width: | Height: | Size: 464 B |
|
Before Width: | Height: | Size: 432 B |
|
Before Width: | Height: | Size: 458 B |
|
Before Width: | Height: | Size: 458 B |
|
Before Width: | Height: | Size: 454 B |
|
Before Width: | Height: | Size: 426 B |
|
Before Width: | Height: | Size: 463 B |
|
Before Width: | Height: | Size: 456 B |
|
Before Width: | Height: | Size: 444 B |
|
Before Width: | Height: | Size: 453 B |
|
Before Width: | Height: | Size: 466 B |
|
Before Width: | Height: | Size: 436 B |
|
Before Width: | Height: | Size: 458 B |
|
Before Width: | Height: | Size: 466 B |
|
Before Width: | Height: | Size: 460 B |
|
Before Width: | Height: | Size: 441 B |
|
Before Width: | Height: | Size: 467 B |
|
Before Width: | Height: | Size: 465 B |
|
Before Width: | Height: | Size: 459 B |
|
Before Width: | Height: | Size: 468 B |
|
Before Width: | Height: | Size: 453 B |
|
Before Width: | Height: | Size: 444 B |
|
Before Width: | Height: | Size: 461 B |
|
Before Width: | Height: | Size: 467 B |
|
Before Width: | Height: | Size: 426 B |
|
Before Width: | Height: | Size: 406 B |
|
Before Width: | Height: | Size: 444 B |
|
Before Width: | Height: | Size: 443 B |
|
Before Width: | Height: | Size: 430 B |
|
Before Width: | Height: | Size: 429 B |
|
Before Width: | Height: | Size: 439 B |
|
Before Width: | Height: | Size: 410 B |
|
Before Width: | Height: | Size: 445 B |
|
Before Width: | Height: | Size: 440 B |
|
Before Width: | Height: | Size: 459 B |
|
Before Width: | Height: | Size: 444 B |
|
Before Width: | Height: | Size: 461 B |
|
Before Width: | Height: | Size: 460 B |
|
Before Width: | Height: | Size: 461 B |
|
Before Width: | Height: | Size: 461 B |
|
Before Width: | Height: | Size: 455 B |
|
Before Width: | Height: | Size: 449 B |
|
Before Width: | Height: | Size: 455 B |
|
Before Width: | Height: | Size: 457 B |
|
Before Width: | Height: | Size: 448 B |
|
Before Width: | Height: | Size: 433 B |