Skip to content

Commit

Permalink
Add abiCodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Integral-Tech committed Jun 12, 2024
1 parent 0bc4087 commit 5d8eeff
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,14 @@ 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 5d8eeff

Please sign in to comment.