From d2ca4edc6d3d7445782a140b6c695a456c2ae004 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Mon, 8 Aug 2022 14:24:01 +0100 Subject: [PATCH] lifting the application launcher colour to the application module --- vector-app/build.gradle | 3 +++ .../main/res/drawable-anydpi-v26/ic_launcher_foreground.xml | 0 vector/build.gradle | 5 ----- 3 files changed, 3 insertions(+), 5 deletions(-) rename {vector => vector-app}/src/main/res/drawable-anydpi-v26/ic_launcher_foreground.xml (100%) diff --git a/vector-app/build.gradle b/vector-app/build.gradle index 2ed03ab8ed..40b74ac5eb 100644 --- a/vector-app/build.gradle +++ b/vector-app/build.gradle @@ -236,6 +236,7 @@ android { debug { applicationIdSuffix ".debug" signingConfig signingConfigs.debug + resValue "color", "launcher_background", "#0DBD8B" if (project.hasProperty("coverage")) { testCoverageEnabled = coverage.enableTestCoverage @@ -243,6 +244,7 @@ android { } release { + resValue "color", "launcher_background", "#0DBD8B" postprocessing { removeUnusedCode true removeUnusedResources true @@ -258,6 +260,7 @@ android { initWith release applicationIdSuffix ".nightly" versionNameSuffix "-nightly" + resValue "color", "launcher_background", "#07007E" // We need to copy paste this block, this is not done automatically by `initWith release` postprocessing { diff --git a/vector/src/main/res/drawable-anydpi-v26/ic_launcher_foreground.xml b/vector-app/src/main/res/drawable-anydpi-v26/ic_launcher_foreground.xml similarity index 100% rename from vector/src/main/res/drawable-anydpi-v26/ic_launcher_foreground.xml rename to vector-app/src/main/res/drawable-anydpi-v26/ic_launcher_foreground.xml diff --git a/vector/build.gradle b/vector/build.gradle index f924af9a52..f2d20ea4dc 100644 --- a/vector/build.gradle +++ b/vector/build.gradle @@ -64,21 +64,16 @@ android { buildTypes { debug { resValue "string", "app_name", "Element dbg" - resValue "color", "launcher_background", "#0DBD8B" if (project.hasProperty("coverage")) { testCoverageEnabled = coverage.enableTestCoverage } } nightly { initWith release - // Just override the background color of the launcher icon for the nightly build. - resValue "color", "launcher_background", "#07007E" } release { resValue "string", "app_name", "Element" - resValue "color", "launcher_background", "#0DBD8B" } - } flavorDimensions "store"