diff --git a/android/app/build.gradle b/android/app/build.gradle index 1198b6fc..5e7ef822 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -95,3 +95,14 @@ flutter { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" } + +ext.abiCodes = ["arm64-v8a": 1, "x86_64": 2, "armeabi-v7a": 3] +import com.android.build.OutputFile +android.applicationVariants.all { variant -> + variant.outputs.each { output -> + def abiVersionCode = project.ext.abiCodes.get(output.getFilter(OutputFile.ABI)) + if (abiVersionCode != null) { + output.versionCodeOverride = variant.versionCode * 10 + abiVersionCode + } + } +} diff --git a/pubspec.yaml b/pubspec.yaml index 22d08355..5ab7be4b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.16 +version: 1.0.16+1016 environment: sdk: ">=2.19.6 <3.0.0"