From c977bc348b16035521076c2390a0efa0a1bd7a06 Mon Sep 17 00:00:00 2001 From: boun Date: Mon, 18 Sep 2023 10:59:30 +0200 Subject: [PATCH] DO NOT MERGE: Debug build with red icon --- app/build.gradle | 13 +++++++++++++ app/src/main/AndroidManifest.xml | 4 ++-- app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml | 2 +- .../res/mipmap-anydpi-v26/ic_launcher_debug.xml | 6 ++++++ .../mipmap-anydpi-v26/ic_launcher_round_debug.xml | 6 ++++++ .../res/values/ic_launcher_background_debug.xml | 4 ++++ 6 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher_debug.xml create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher_round_debug.xml create mode 100644 app/src/main/res/values/ic_launcher_background_debug.xml diff --git a/app/build.gradle b/app/build.gradle index 662116e9c..dea6f58b9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -58,11 +58,24 @@ android { } buildTypes { release { + manifestPlaceholders = [ + appIcon: "@mipmap/ic_launcher", + appIconRound: "@mipmap/ic_launcher_round" + ] minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" signingConfig signingConfigs.release } + debug { + manifestPlaceholders = [ + appIcon: "@mipmap/ic_launcher_debug", + appIconRound: "@mipmap/ic_launcher_round_debug" + ] + applicationIdSuffix ".debug" + versionNameSuffix "-debug" + debuggable true + } } applicationVariants.all { variant -> variant.outputs.each { output -> diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index ed0debf76..f7c27fefd 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -18,9 +18,9 @@ diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml index 0b0d585e4..0c5e44489 100644 --- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -1,6 +1,6 @@ - + diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_debug.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_debug.xml new file mode 100644 index 000000000..0b0d585e4 --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_debug.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round_debug.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round_debug.xml new file mode 100644 index 000000000..6abe207bb --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round_debug.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/ic_launcher_background_debug.xml b/app/src/main/res/values/ic_launcher_background_debug.xml new file mode 100644 index 000000000..b723245a0 --- /dev/null +++ b/app/src/main/res/values/ic_launcher_background_debug.xml @@ -0,0 +1,4 @@ + + + #F44336 + \ No newline at end of file