Skip to content

Commit 95f4d88

Browse files
committed
Do not alter the app name for the nightly, and finally use initWith release to avoid too many copy paste.
1 parent 64871e3 commit 95f4d88

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

vector/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ android {
267267
buildConfigField "boolean", "LOW_PRIVACY_LOG_ENABLE", "false"
268268
buildConfigField "boolean", "ENABLE_STRICT_MODE_LOGS", "false"
269269

270+
// When updating this block, please also update the same block in the `nightly` buildType below
270271
postprocessing {
271272
removeUnusedCode true
272273
removeUnusedResources true
@@ -281,12 +282,12 @@ android {
281282
nightly {
282283
applicationIdSuffix ".nightly"
283284
versionNameSuffix "-nightly"
284-
resValue "string", "app_name", "Element nightly"
285-
resValue "color", "launcher_background", "#07007E"
286285

287-
buildConfigField "boolean", "LOW_PRIVACY_LOG_ENABLE", "false"
288-
buildConfigField "boolean", "ENABLE_STRICT_MODE_LOGS", "false"
286+
initWith release
287+
// Just override the background color of the launcher icon for the nightly build.
288+
resValue "color", "launcher_background", "#07007E"
289289

290+
// We need to copy paste this block, this is not done automatically by `initWith release`
290291
postprocessing {
291292
removeUnusedCode true
292293
removeUnusedResources true

0 commit comments

Comments
 (0)