`initWith release` does not take care of `postprocessing` block, so rather do some copy paste, to avoid a warning about values being replaced

This commit is contained in:
Benoit Marty 2022-07-06 17:00:09 +02:00
parent 253480fd2b
commit b3e86129e9
1 changed files with 12 additions and 1 deletions

View File

@ -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 {