Skip to content

Commit

Permalink
Merge pull request #391 from Integral-Tech/add-abiCodes
Browse files Browse the repository at this point in the history
Add abiCodes
  • Loading branch information
Integral-Tech authored Jun 12, 2024
2 parents 0bc4087 + 5d8eeff commit 4814a2d
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 4814a2d

Please sign in to comment.