Skip to content

Commit

Permalink
Change Flutter vercode operation
Browse files Browse the repository at this point in the history
  • Loading branch information
ya27hw committed Apr 11, 2024
1 parent 9245a07 commit 494db79
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,13 @@ flutter {
}

dependencies {}

ext.abiCodes = ["x86_64": 1, "armeabi-v7a": 2, "arm64-v8a": 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
}
}}

0 comments on commit 494db79

Please sign in to comment.