From 95f4d884617c97dc29972859db1641c3faa450d2 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 7 Jul 2022 17:45:18 +0200 Subject: [PATCH] Do not alter the app name for the nightly, and finally use `initWith release` to avoid too many copy paste. --- vector/build.gradle | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vector/build.gradle b/vector/build.gradle index 4de97199b4..f4d4453fb9 100644 --- a/vector/build.gradle +++ b/vector/build.gradle @@ -267,6 +267,7 @@ android { buildConfigField "boolean", "LOW_PRIVACY_LOG_ENABLE", "false" buildConfigField "boolean", "ENABLE_STRICT_MODE_LOGS", "false" + // When updating this block, please also update the same block in the `nightly` buildType below postprocessing { removeUnusedCode true removeUnusedResources true @@ -281,12 +282,12 @@ android { nightly { applicationIdSuffix ".nightly" versionNameSuffix "-nightly" - resValue "string", "app_name", "Element nightly" + + initWith release + // Just override the background color of the launcher icon for the nightly build. resValue "color", "launcher_background", "#07007E" - buildConfigField "boolean", "LOW_PRIVACY_LOG_ENABLE", "false" - buildConfigField "boolean", "ENABLE_STRICT_MODE_LOGS", "false" - + // We need to copy paste this block, this is not done automatically by `initWith release` postprocessing { removeUnusedCode true removeUnusedResources true