mirror of
https://github.com/MGislv/NekoX.git
synced 2024-07-02 10:33:36 +00:00
Fix shadowsocks
This commit is contained in:
parent
60e0b895f6
commit
359c7c593d
|
@ -43,10 +43,12 @@ import org.telegram.messenger.R
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val lookupNames get() = lookup.values.map {
|
val lookupNames get() = lookup.values.map {
|
||||||
if (it.label.isNotBlank()) {
|
if (it.label.isNotBlank() && it.id.isNotBlank()) {
|
||||||
"${it.label} (${it.id})"
|
"${it.label} (${it.id})"
|
||||||
|
} else if (it.label.isNotBlank()) {
|
||||||
|
it.label
|
||||||
} else if (it.id.isNotBlank()) {
|
} else if (it.id.isNotBlank()) {
|
||||||
it.id
|
it.id
|
||||||
} else ""
|
} else it.packageName
|
||||||
}.map { it.takeIf { it.isNotBlank() } ?: LocaleController.getString("Disable", R.string.Disable) }.toTypedArray()
|
}.map { it.takeIf { it.isNotBlank() } ?: LocaleController.getString("Disable", R.string.Disable) }.toTypedArray()
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ rm -rf TMessagesProj/libs/*.aar
|
||||||
./gradlew ssr-libev:assembleRelease &&
|
./gradlew ssr-libev:assembleRelease &&
|
||||||
cp ssr-libev/build/outputs/aar/* TMessagesProj/libs &&
|
cp ssr-libev/build/outputs/aar/* TMessagesProj/libs &&
|
||||||
cd 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"
|
v2rayCore="$(go env GOPATH)/src/v2ray.com/core"
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,8 @@ cargo {
|
||||||
profile = findProperty("CARGO_PROFILE")?.toString() ?: "release"
|
profile = findProperty("CARGO_PROFILE")?.toString() ?: "release"
|
||||||
extraCargoBuildArguments = listOf("--bin", "sslocal")
|
extraCargoBuildArguments = listOf("--bin", "sslocal")
|
||||||
featureSpec.noDefaultBut(arrayOf(
|
featureSpec.noDefaultBut(arrayOf(
|
||||||
"single-threaded",
|
"stream-cipher",
|
||||||
|
"logging",
|
||||||
"local-flow-stat",
|
"local-flow-stat",
|
||||||
"local-dns"))
|
"local-dns"))
|
||||||
exec = { spec, toolchain ->
|
exec = { spec, toolchain ->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user