M app/build.gradle => app/build.gradle +6 -1
@@ 14,11 14,16 @@ android {
versionName "0.0.2-dev"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+
+ manifestPlaceholders.appIcon = "@mipmap/ic_launcher"
+ manifestPlaceholders.appIconRound = "@mipmap/ic_launcher_round"
}
buildTypes {
debug {
applicationIdSuffix ".debug"
+ manifestPlaceholders.appIcon = "@mipmap/ic_launcher_debug"
+ manifestPlaceholders.appIconRound = "@mipmap/ic_launcher_debug"
}
release {
minifyEnabled false
@@ 61,4 66,4 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
-}>
\ No newline at end of file
+}
M app/src/main/AndroidManifest.xml => app/src/main/AndroidManifest.xml +2 -2
@@ 4,9 4,9 @@
<application
android:allowBackup="true"
- android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
- android:roundIcon="@mipmap/ic_launcher_round"
+ android:icon="${appIcon}"
+ android:roundIcon="${appIconRound}"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
A app/src/main/ic_launcher_debug-playstore.png => app/src/main/ic_launcher_debug-playstore.png +0 -0
A app/src/main/res/mipmap-anydpi-v26/ic_launcher_debug.xml => app/src/main/res/mipmap-anydpi-v26/ic_launcher_debug.xml +5 -0
@@ 0,0 1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@color/ic_launcher_debug_background"/>
+ <foreground android:drawable="@drawable/ic_launcher_foreground"/>
+</adaptive-icon><
\ No newline at end of file
A app/src/main/res/values/ic_launcher_debug_background.xml => app/src/main/res/values/ic_launcher_debug_background.xml +4 -0
@@ 0,0 1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <color name="ic_launcher_debug_background">#AB000B</color>
+</resources><
\ No newline at end of file