From b3e86129e90465a4726275eb6b6da2203f74a358 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 6 Jul 2022 17:00:09 +0200 Subject: [PATCH] `initWith release` does not take care of `postprocessing` block, so rather do some copy paste, to avoid a warning about values being replaced --- vector/build.gradle | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/vector/build.gradle b/vector/build.gradle index a4a08c4522..4de97199b4 100644 --- a/vector/build.gradle +++ b/vector/build.gradle @@ -279,11 +279,22 @@ android { } nightly { - initWith release applicationIdSuffix ".nightly" versionNameSuffix "-nightly" resValue "string", "app_name", "Element nightly" resValue "color", "launcher_background", "#07007E" + + buildConfigField "boolean", "LOW_PRIVACY_LOG_ENABLE", "false" + buildConfigField "boolean", "ENABLE_STRICT_MODE_LOGS", "false" + + postprocessing { + removeUnusedCode true + removeUnusedResources true + // We do not activate obfuscation as it makes it hard then to read crash reports, and it's a bit useless on an open source project :) + obfuscate false + optimizeCode true + proguardFiles 'proguard-rules.pro' + } matchingFallbacks = ['release'] signingConfig signingConfigs.nightly firebaseAppDistribution {