Fix shadowsocks

This commit is contained in:
世界 2021-01-12 11:13:37 +08:00
parent 60e0b895f6
commit 359c7c593d
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
3 changed files with 7 additions and 4 deletions

View File

@ -43,10 +43,12 @@ import org.telegram.messenger.R
}
}
val lookupNames get() = lookup.values.map {
if (it.label.isNotBlank()) {
if (it.label.isNotBlank() && it.id.isNotBlank()) {
"${it.label} (${it.id})"
} else if (it.label.isNotBlank()) {
it.label
} else if (it.id.isNotBlank()) {
it.id
} else ""
} else it.packageName
}.map { it.takeIf { it.isNotBlank() } ?: LocaleController.getString("Disable", R.string.Disable) }.toTypedArray()
}

View File

@ -51,7 +51,7 @@ rm -rf TMessagesProj/libs/*.aar
./gradlew ssr-libev:assembleRelease &&
cp ssr-libev/build/outputs/aar/* TMessagesProj/libs &&
cd TMessagesProj/libs &&
go get -v golang.org/x/mobile/cmd/...
go get -v golang.org/x/mobile/cmd/... || exit 1
v2rayCore="$(go env GOPATH)/src/v2ray.com/core"

View File

@ -25,7 +25,8 @@ cargo {
profile = findProperty("CARGO_PROFILE")?.toString() ?: "release"
extraCargoBuildArguments = listOf("--bin", "sslocal")
featureSpec.noDefaultBut(arrayOf(
"single-threaded",
"stream-cipher",
"logging",
"local-flow-stat",
"local-dns"))
exec = { spec, toolchain ->