diff --git a/android/app/build.gradle b/android/app/build.gradle index a544de7..ee5cc5f 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,16 +78,22 @@ 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" + versionCodeOverride = variant.versionCode * 10 } } } @@ -102,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 +}