Skip to content

Commit

Permalink
Update to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeuw committed Aug 12, 2019
1 parent 2bc627a commit f2b76d0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 19 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
applicationId "com.github.shadowsocks.plugin.ck_client"
minSdkVersion 19
targetSdkVersion 26
versionCode 3
versionName '2.0.0-prealpha'
versionCode 4
versionName '2.0.0'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ConfigFragment : PreferenceFragment() {
this._options = options
val ary = arrayOf(Pair("ProxyMethod","shadowsocks"), Pair("EncryptionMethod","plain"),
Pair("UID", ""), Pair("PublicKey",""), Pair("ServerName", "bing.com"),
Pair("TicketTimeHint", "3600"),Pair("NumConn","4"), Pair("BrowserSig", "chrome"))
Pair("NumConn","4"), Pair("BrowserSig", "chrome"))
for (element in ary) {
val key = element.first
val defaultValue = element.second
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
<string name="cloak_server_name">Server Name</string>
<string name="cloak_uid">UID</string>
<string name="cloak_public_key">Public Key</string>
<string name="cloak_tieckt_time_hint">Ticket Time Hint</string>
<string name="cloak_num_conn">NumConn</string>
<string name="cloak_num_conn">Number of Connections</string>
<string name="cloak_browser_sig">Browser Signature</string>
<string name="cloak_encryption_method">Encryption Method</string>
<string name="cloak_proxy_method">Proxy Method</string>
Expand Down
6 changes: 0 additions & 6 deletions app/src/main/res/xml/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@
android:key="ServerName"
android:persistent="false"
android:title="@string/cloak_server_name" />
<EditTextPreference
android:key="TicketTimeHint"
android:persistent="false"
android:inputType="numberDecimal"
android:digits="0123456789"
android:title="@string/cloak_tieckt_time_hint" />
<EditTextPreference
android:key="NumConn"
android:persistent="false"
Expand Down
14 changes: 6 additions & 8 deletions app/src/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,14 @@ if [ ! -f "$ANDROID_X86_CC" ]; then
--api $MIN_API --install-dir $ANDROID_X86_TOOLCHAIN
fi

export GOPATH=$DEPS/gopath

pushd $DEPS
echo "Getting Cloak source code"
#go get -u github.com/cbeuw/Cloak
git clone --single-branch --branch 2.0 https://github.com/cbeuw/Cloak $GOPATH/src/github.com/cbeuw/Cloak
go get -u github.com/juju/ratelimit
go get -u github.com/boltdb/bolt
go get -u golang.org/x/crypto/curve25519
GO111MOD=on
git clone https://github.com/cbeuw/Cloak
pushd Cloak
go get

pushd $GOPATH/src/github.com/cbeuw/Cloak/cmd/ck-client
pushd cmd/ck-client

echo "Cross compile ckclient for arm"
echo $ANDROID_ARM_CC
Expand Down

0 comments on commit f2b76d0

Please sign in to comment.