summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishith Khanna <nishithkhanna@e.email>2022-05-23 04:20:23 +0000
committerNishith Khanna <nishithkhanna@e.email>2022-05-23 04:20:23 +0000
commit8f47f1e96f2ed640f3fcbda74df0673ccae2b4c1 (patch)
tree360e168e9497e1129222ba73ca18c9813faedf35
parentbe84b603bcd3a5159a5e1976c14d8c93eed688bb (diff)
parent708b8c67e3658729b962f7a095253b62698e5325 (diff)
Merge branch '319-main-naming_scheme' into 'main'
privacycentralapp: Change app naming scheme See merge request e/privacy-central/privacycentralapp!60
-rw-r--r--app/build.gradle8
-rw-r--r--build.gradle11
2 files changed, 5 insertions, 14 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 7749f8f..849d96a 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -12,7 +12,7 @@ android {
minSdkVersion buildConfig.minSdk
targetSdkVersion buildConfig.targetSdk
versionCode buildConfig.version.code
- versionName buildConfig.version.fullName
+ versionName buildConfig.version.name
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -75,10 +75,10 @@ android {
* Sets the output name of the variant outputs and also it setup signingConfig based on the product flavor.
*/
applicationVariants.all { variant ->
+ variant.outputs.all { output ->
+ outputFileName = "Advanced_Privacy-${variant.versionName}-${variant.getFlavorName()}.apk"
+ }
if (variant.buildType.name == "debug") {
- variant.outputs.all { output ->
- outputFileName = "PrivacyCentral-${output.name}-${variant.versionName}.apk"
- }
if (variant.getFlavorName() == "e29" || variant.getFlavorName() == "e30") {
variant.mergedFlavor.signingConfig = signingConfigs.eDebug
} else {
diff --git a/build.gradle b/build.gradle
index be0a6cf..27842f9 100644
--- a/build.gradle
+++ b/build.gradle
@@ -11,21 +11,12 @@ buildscript {
'major': 1,
'minor': 0,
'patch': 0,
- 'build': "RC-1",
],
]
ext.buildConfig.version['name'] = "${buildConfig.version.major}.${buildConfig.version.minor}.${buildConfig.version.patch}"
ext.buildConfig.version['fullName'] = "${buildConfig.version.name}-${buildConfig.version.build}"
- def buildNumber
- if (buildConfig.version.build == 'alpha') {
- buildNumber = -2
- } else if (buildConfig.version.build == 'beta') {
- buildNumber = -1
- } else {
- buildNumber = 0
- }
- ext.buildConfig.version['code'] = buildConfig.version.major * 1000000 + buildConfig.version.minor * 10000 + buildConfig.version.patch * 100 + buildNumber
+ ext.buildConfig.version['code'] = buildConfig.version.major * 1000000 + buildConfig.version.minor * 1000 + buildConfig.version.patch
// Load properties either from local.properties or system environment (on CI).
apply from: rootProject.file('load-properties.gradle')