Skip to content

Commit

Permalink
update rust modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Jan 28, 2024
1 parent 374e18c commit b5b3def
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/Contents/Home"
# 建议编辑 mobile/build.gradle ,修改 applicationId 以规避检测
./gradlew assembleDebug
./gradlew assembleRelease
# 在 windows 系統下,上述編譯命令應該是:
.\gradlew.bat assembleDebug
.\gradlew.bat assembleRelease
# 將編譯出的 apk 包安裝到當前連接到電腦上的手機裏:
adb install mobile/build/outputs/apk/release/ssrdroid-release.apk
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ ext {
sdkVersion = 33
compileSdkVersion = 33
buildToolsVersion = '31.0.0'
versionCode = 520
versionName = '5.2.0'
versionCode = 530
versionName = '5.3.0'
resConfigs = ['zh-rCN']
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ object DataStore : OnPreferenceDataStoreChangeListener {
set(value) = publicStore.putString(Key.portTransproxy, value.toString())

val useTun2proxy: Boolean
get() = publicStore.getBoolean(Key.useTun2proxy, false)
get() = publicStore.getBoolean(Key.useTun2proxy, true)

val useOverTLS: Boolean
get() = publicStore.getBoolean(Key.useOverTLS, false)
get() = publicStore.getBoolean(Key.useOverTLS, true)

val socksAddress: InetSocketAddress?
get() = if (publicStore.getString(Key.socksHost).isNullOrBlank()) null
Expand Down
2 changes: 1 addition & 1 deletion rust/tun2proxy

0 comments on commit b5b3def

Please sign in to comment.