Commit 4c7d2266 authored by Max Lv's avatar Max Lv

update travis and readme

parent 364095bd
language: java
before_install:
- wget http://dl.google.com/android/android-sdk_r21-linux.tgz
- tar -zxf android-sdk_r21-linux.tgz
- export ANDROID_HOME=~/builds/madeye/shadowsocks-android/android-sdk-linux
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
- android update sdk --filter tools,platform-tools,android-16,addon-google_apis-google-16,extra-android-support,extra-google-admob_ads_sdk,extra-google-analytics_sdk,extra-google-gcm,extra-google-play_apk_expansion,extra-google-play_billing,extra-google-play_licensing --no-ui --force --no-https -a
install:
- sudo pip install python-swiftclient
script:
- mvn clean install -DTRAVIS=true
This diff is collapsed.
## Shadowsocks for Android
A shadowsocks client for Android, powered by amazing node.js.
## TRAVIS CI STATUS
[![Build Status](https://secure.travis-ci.org/madeye/shadowsocks-android.png)](http://travis-ci.org/madeye/shadowsocks-android)
[Nightly Builds](http://buildbot.sinaapp.com)
## PREREQUISITES
* JDK 1.6+
* Maven 3.0.3+
* Android SDK r17+
* Android NDK r8+
* Local maven dependencies
Use Maven Android SDK Deployer to install all android related dependencies.
```bash
git clone https://github.com/mosabua/maven-android-sdk-deployer.git
pushd maven-android-sdk-deployer
export ANDROID_HOME=/path/to/android/sdk
mvn install -P 4.1
popd
```
* Build native dependecies
```bash
ndk-build
cp libs/armeabi/pdnsd assets/
```
## BUILD
* Create your key following the instructions at
http://developer.android.com/guide/publishing/app-signing.html#cert
* Create a profile in your settings.xml file in ~/.m2 like this
```xml
<settings>
<profiles>
<profile>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sign.keystore>/absolute/path/to/your.keystore</sign.keystore>
<sign.alias>youralias</sign.alias>
<sign.keypass>keypass</sign.keypass>
<sign.storepass>storepass</sign.storepass>
</properties>
</profile>
</profiles>
</settings>
```
* Invoke the building like this
```bash
mvn clean install
```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment