From 788e41f5849f63d3fff8eb097f07db45c9affd46 Mon Sep 17 00:00:00 2001 From: UjuiUjuMandan <125150101+UjuiUjuMandan@users.noreply.github.com> Date: Wed, 18 Dec 2024 10:50:19 +0000 Subject: [PATCH 1/2] Add abiVersionCode & Remove x86 --- android/app/build.gradle | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index a544de7..8a515af 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -35,7 +35,7 @@ android { splits{ abi { reset() - include 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' + include 'armeabi-v7a', 'arm64-v8a', 'x86_64' enable true universalApk true } @@ -78,14 +78,19 @@ android { buildTypes { release { ndk { - abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64" + abiFilters "armeabi-v7a", "arm64-v8a", "x86_64" } signingConfig signingConfigs.release + ext.abiCodes = ["armeabi-v7a": 1, "arm64-v8a": 2, "x86_64": 3] applicationVariants.all { variant -> variant.outputs.all { output -> def abi = output.getFilter(com.android.build.OutputFile.ABI) if (abi != null) { outputFileName = "venera-${variant.versionName}-${abi}.apk" + def abiVersionCode = project.ext.abiCodes.get(abi) + if (abiVersionCode != null) { + versionCodeOverride = variant.versionCode * 10 + abiVersionCode + } } else { outputFileName = "venera-${variant.versionName}.apk" } From 909c0014ace4301b856d0acf7814d7163f46d080 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: Wed, 18 Dec 2024 19:15:45 +0800 Subject: [PATCH 2/2] * 10 for universal --- android/app/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 8a515af..ee5cc5f 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -93,6 +93,7 @@ android { } } else { outputFileName = "venera-${variant.versionName}.apk" + versionCodeOverride = variant.versionCode * 10 } } } @@ -107,4 +108,4 @@ flutter { dependencies { implementation "androidx.activity:activity-ktx:1.9.2" implementation 'androidx.documentfile:documentfile:1.0.1' -} \ No newline at end of file +}