summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-11-30 22:46:40 +0100
committercyBerta <cyberta@riseup.net>2021-11-30 23:37:31 +0100
commit7dd9277d6410c2aa1b00283294ba87ab3c143a38 (patch)
tree76139b769dc374817b3e62107b4e8135fbbef5a1
parentf98d1c3a937733070b7b1215143efa66eced94a1 (diff)
adapt versioning scheme, so that gplay users can migrate from split apks to aab1.1.0
-rw-r--r--app/build.gradle6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/build.gradle b/app/build.gradle
index c2cc5aff..904d9506 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -14,7 +14,9 @@ android {
defaultConfig {
applicationId "se.leap.bitmaskclient"
- versionCode 158
+ // the factor 1000 is used so that gplay users can upgrade from split apks ((current version number - 1) * 1000) + n
+ // to extracted bundle apks, supplied by google
+ versionCode 158 * 1000
versionName "1.1.0"
minSdkVersion 16
targetSdkVersion 30
@@ -430,7 +432,7 @@ android.applicationVariants.all { variant ->
variant.outputs.each { output ->
// if not a fat build
if (abiDimension.abiVersionCode > 0) {
- output.versionCodeOverride = android.defaultConfig.versionCode * 1000 + abiDimension.abiVersionCode
+ output.versionCodeOverride = android.defaultConfig.versionCode + abiDimension.abiVersionCode
}
}