From b4470212dc724453bfae14e12b310bb6751f6128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=A1=A0=E1=A0=B5=E1=A1=A0=E1=A1=B3=20=E1=A1=A0=E1=A0=B5?= =?UTF-8?q?=E1=A1=A0=20=E1=A0=AE=E1=A0=A0=E1=A0=A8=E1=A1=A9=E1=A0=8B?= =?UTF-8?q?=E1=A0=A0=E1=A0=A8?= <125150101+UjuiUjuMandan@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:26:23 +0800 Subject: [PATCH 1/2] use different version for abis --- V2rayNG/app/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/V2rayNG/app/build.gradle.kts b/V2rayNG/app/build.gradle.kts index 0c52a8a95..d959b33e9 100644 --- a/V2rayNG/app/build.gradle.kts +++ b/V2rayNG/app/build.gradle.kts @@ -60,7 +60,7 @@ android { applicationVariants.all { val variant = this val versionCodes = - mapOf("armeabi-v7a" to 4, "arm64-v8a" to 4, "x86" to 4, "x86_64" to 4, "universal" to 4) + mapOf("armeabi-v7a" to 8, "arm64-v8a" to 7, "x86" to 6, "x86_64" to 5, "universal" to 4) variant.outputs .map { it as com.android.build.gradle.internal.api.ApkVariantOutputImpl } From 221b424244cdf1c273a7df36b322acd84f5d1972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=A1=A0=E1=A0=B5=E1=A1=A0=E1=A1=B3=20=E1=A1=A0=E1=A0=B5?= =?UTF-8?q?=E1=A1=A0=20=E1=A0=AE=E1=A0=A0=E1=A0=A8=E1=A1=A9=E1=A0=8B?= =?UTF-8?q?=E1=A0=A0=E1=A0=A8?= <125150101+UjuiUjuMandan@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:59:53 +0800 Subject: [PATCH 2/2] Update strategy --- V2rayNG/app/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/V2rayNG/app/build.gradle.kts b/V2rayNG/app/build.gradle.kts index d959b33e9..44b218224 100644 --- a/V2rayNG/app/build.gradle.kts +++ b/V2rayNG/app/build.gradle.kts @@ -60,7 +60,7 @@ android { applicationVariants.all { val variant = this val versionCodes = - mapOf("armeabi-v7a" to 8, "arm64-v8a" to 7, "x86" to 6, "x86_64" to 5, "universal" to 4) + mapOf("arm64-v8a" to 1, "armeabi-v7a" to 2, "x86_64" to 3, "x86" to 4, "universal" to 0) variant.outputs .map { it as com.android.build.gradle.internal.api.ApkVariantOutputImpl } @@ -73,7 +73,7 @@ android { output.outputFileName = "v2rayNG_${variant.versionName}_${abi}.apk" if (versionCodes.containsKey(abi)) { output.versionCodeOverride = - (1000000 * versionCodes[abi]!!).plus(variant.versionCode) + (100 * variant.versionCode + versionCodes[abi]!!).plus(5000000) } else { return@forEach }