This commit is contained in:
世界
2021-05-05 18:37:39 +08:00
parent 651d01d43a
commit 48df20d262
7 changed files with 17 additions and 16 deletions

View File

@@ -107,7 +107,7 @@ jobs:
with:
path: |
app/libs/shadowsocks-release.aar
key: ${{ hashFiles('shadowsocks_status') }}
key: ${{ hashFiles('shadowsocks/build.gradle.kts', 'shadowsocks_status') }}
- name: Install Rust
if: steps.cache.outputs.cache-hit != 'true'
run: ./run init action shadowsocks
@@ -166,7 +166,7 @@ jobs:
with:
path: |
app/libs/shadowsocks-release.aar
key: ${{ hashFiles('shadowsocks_status') }}
key: ${{ hashFiles('shadowsocks/build.gradle.kts', 'shadowsocks_status') }}
- name: ShadowsocksR Cache
uses: actions/cache@v2
with:

View File

@@ -64,7 +64,7 @@ jobs:
with:
path: |
app/libs/shadowsocks-release.aar
key: ${{ hashFiles('shadowsocks_status') }}
key: ${{ hashFiles('shadowsocks/build.gradle.kts', 'shadowsocks_status') }}
- name: Install Rust
if: steps.cache.outputs.cache-hit != 'true'
run: ./run init action shadowsocks
@@ -124,7 +124,7 @@ jobs:
with:
path: |
app/libs/shadowsocks-release.aar
key: ${{ hashFiles('shadowsocks_status') }}
key: ${{ hashFiles('shadowsocks/build.gradle.kts', 'shadowsocks_status') }}
- name: ShadowsocksR Cache
uses: actions/cache@v2
with:

2
.idea/compiler.xml generated
View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="1.8" />
<bytecodeTargetLevel target="11" />
</component>
</project>

2
.idea/misc.xml generated
View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="false" project-jdk-name="11" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">

View File

@@ -6,8 +6,8 @@ plugins {
id "com.mikepenz.aboutlibraries.plugin"
}
def verCode = 20
def verName = "0.1-beta20"
def verCode = 21
def verName = "0.1-beta21"
def keystorePwd = null
def alias = null
@@ -169,12 +169,10 @@ dependencies {
implementation "androidx.navigation:navigation-fragment-ktx:2.3.5"
implementation "androidx.navigation:navigation-ui-ktx:2.3.5"
implementation "androidx.preference:preference-ktx:1.1.1"
implementation "androidx.appcompat:appcompat:1.2.0"
implementation project(":preferencex")
implementation project(":preferencex-simplemenu")
implementation "androidx.appcompat:appcompat:1.2.0"
implementation "com.google.android.material:material:1.3.0"
implementation "com.squareup.okhttp3:okhttp:5.0.0-alpha.2"
implementation "cn.hutool:hutool-core:5.6.3"

View File

@@ -93,7 +93,7 @@ class ProxyInstance(val profile: ProxyEntity) {
for ((index, profile) in config.index.entries) {
val port = socksPort + index
val needChain = index == config.index.size - 1
val needChain = index != config.index.size - 1
when {
profile.useExternalShadowsocks() -> {
val bean = profile.requireSS()
@@ -162,8 +162,9 @@ class ProxyInstance(val profile: ProxyEntity) {
proxychainsConfigFile.writeText("strict_chain\n[ProxyList]\nsocks5 127.0.0.1 ${socksPort + index + 1}")
cacheFiles.add(proxychainsConfigFile)
env["LD_PRELOAD"] = File(SagerNet.application.applicationInfo.nativeLibraryDir,
Executable.PROXYCHAINS).absolutePath
env["LD_PRELOAD"] =
File(SagerNet.application.applicationInfo.nativeLibraryDir,
Executable.PROXYCHAINS).absolutePath
env["PROXYCHAINS_CONF_FILE"] = proxychainsConfigFile.absolutePath
}
@@ -201,8 +202,9 @@ class ProxyInstance(val profile: ProxyEntity) {
proxychainsConfigFile.writeText("strict_chain\n[ProxyList]\nsocks5 127.0.0.1 ${port + 1}")
cacheFiles.add(proxychainsConfigFile)
env["LD_PRELOAD"] = File(SagerNet.application.applicationInfo.nativeLibraryDir,
Executable.PROXYCHAINS).absolutePath
env["LD_PRELOAD"] =
File(SagerNet.application.applicationInfo.nativeLibraryDir,
Executable.PROXYCHAINS).absolutePath
env["PROXYCHAINS_CONF_FILE"] = proxychainsConfigFile.absolutePath
}

View File

@@ -24,6 +24,7 @@ cargo {
featureSpec.noDefaultBut(arrayOf(
"local",
"stream-cipher",
"aead-cipher-extra",
"logging"))
exec = { spec, toolchain ->
spec.environment("RUST_ANDROID_GRADLE_LINKER_WRAPPER_PY",