Skip to content

Commit

Permalink
Fix version code for branded fat builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
ladar committed Apr 24, 2021
1 parent 78ba1ec commit 8c94aa1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -560,9 +560,12 @@ android.applicationVariants.all { variant ->
if (!branding.productFlavor.name.contains("normal") && branding.versionCode != null && branding.versionCode > 0 && abiDimension.abiVersionCode > 0) {
output.versionCodeOverride = branding.versionCode * 1000 + abiDimension.abiVersionCode
}
else if (abiDimension.abiVersionCode > 0) {
else if (branding.productFlavor.name.contains("normal") && abiDimension.abiVersionCode > 0) {
output.versionCodeOverride = android.defaultConfig.versionCode * 1000 + abiDimension.abiVersionCode
}
else if (branding.versionCode != null && branding.versionCode > 0) {
output.versionCodeOverride = branding.versionCode
}
}

// remove unrelated abi specific assets
Expand Down

0 comments on commit 8c94aa1

Please sign in to comment.