Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
fix: Improve Android version code
Browse files Browse the repository at this point in the history
  • Loading branch information
Myzel394 committed Aug 9, 2023
1 parent d3c381d commit 7a6bf09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
compileSdkVersion rootProject.ext.compileSdkVersion
multiDexEnabled true
versionCode flutterVersionCode.toInteger()
versionCode = (flutterVersionCode.toInteger() * 10) + 5000
versionName flutterVersionName
}

Expand Down Expand Up @@ -104,7 +104,7 @@ android.applicationVariants.all { variant ->
def abiVersionCode = project.ext.abiCodes.get(output.getFilter(OutputFile.ABI))
if (abiVersionCode != null) {
// Add `4024` as there was a conflict when upgrading from 10.2 to 10.3
output.versionCodeOverride = 4024 + (variant.versionCode * 10 + abiVersionCode)
output.versionCodeOverride = variant.versionCode + abiVersionCode
}
}
}

0 comments on commit 7a6bf09

Please sign in to comment.