From dd6864d2634a5be86288f3026ed9767e90bf8244 Mon Sep 17 00:00:00 2001 From: proletarius101 Date: Sun, 17 Oct 2021 07:52:44 +0000 Subject: [PATCH] Add AnXray --- metadata/io.nekohasekai.anXray.yml | 56 +++++++++++++++++++ .../disable-splits-abi.patch | 42 ++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 metadata/io.nekohasekai.anXray.yml create mode 100644 metadata/io.nekohasekai.anXray/disable-splits-abi.patch diff --git a/metadata/io.nekohasekai.anXray.yml b/metadata/io.nekohasekai.anXray.yml new file mode 100644 index 0000000000..4f516386e1 --- /dev/null +++ b/metadata/io.nekohasekai.anXray.yml @@ -0,0 +1,56 @@ +Categories: + - Internet +License: GPL-3.0-or-later +AuthorName: nekohasekai +AuthorEmail: sekai@neko.services +SourceCode: https://github.com/XTLS/AnXray +IssueTracker: https://github.com/XTLS/AnXray/issues + +AutoName: AnXray +Summary: A universal proxy toolchain with XTLS support +Description: |- + * Full basic features + * Xray WebSocket browser dialer + * Option to change the notification update interval + * A Chinese apps scanner (based on dex classpath scanning, so it may be slower) + * Proxy chain + * Balancer + * Advanced routing with outbound profile selection + * Reverse proxy + * Custom config (Xray / Trojan-Go) + * Traffic statistics support, including real-time display and cumulative statistics + * Foreground status based routing support + +RepoType: git +Repo: https://github.com/XTLS/AnXray + +Builds: + - versionName: 0.4-rc06 + versionCode: 175 + commit: fa74109c00f8f333d8185d886c4667a8beb490f3 + subdir: app + sudo: + - apt-get update || apt-get update + - apt-get install -y openjdk-11-jdk-headless + - update-alternatives --auto java + patch: + - disable-splits-abi.patch + gradle: + - fdroid + prebuild: + - pushd .. + - ./run fdroid prebuild + scandelete: + - library + - external + build: + - pushd .. + - ./run fdroid build + ndk: r21e + +AutoUpdateMode: Version %v +UpdateCheckMode: Tags +VercodeOperation: '%c * 5' +UpdateCheckData: sager.properties|VERSION_CODE=(\d+)|| +CurrentVersion: 0.4-rc06 +CurrentVersionCode: 175 diff --git a/metadata/io.nekohasekai.anXray/disable-splits-abi.patch b/metadata/io.nekohasekai.anXray/disable-splits-abi.patch new file mode 100644 index 0000000000..0fcc138335 --- /dev/null +++ b/metadata/io.nekohasekai.anXray/disable-splits-abi.patch @@ -0,0 +1,42 @@ +diff --git a/buildSrc/src/main/kotlin/Helpers.kt b/buildSrc/src/main/kotlin/Helpers.kt +index 440dbdf..950a3c1 100644 +--- a/buildSrc/src/main/kotlin/Helpers.kt ++++ b/buildSrc/src/main/kotlin/Helpers.kt +@@ -335,8 +335,8 @@ fun Project.setupPlugin(projectName: String) { + } + + splits.abi { +- isEnable = true +- isUniversalApk = false ++ isEnable = false ++ isUniversalApk = true + + if (targetAbi.isNotBlank()) { + reset() +@@ -347,6 +347,7 @@ fun Project.setupPlugin(projectName: String) { + flavorDimensions("vendor") + productFlavors { + create("oss") ++ create("fdroid") + create("fdroidArm64") { + versionNameSuffix = "-arm64" + } +@@ -453,8 +454,8 @@ fun Project.setupApp() { + } + + splits.abi { +- isEnable = true +- isUniversalApk = false ++ isEnable = false ++ isUniversalApk = true + + if (targetAbi.isNotBlank()) { + reset() +@@ -466,6 +467,7 @@ fun Project.setupApp() { + productFlavors { + create("oss") + create("expert") ++ create("fdroid") + create("fdroidArm64") { + versionNameSuffix = "-arm64" + }