Skip to content

Commit e1bc6cf

Browse files
authored
Merge pull request #19 from odaridavid/add-debug-app-icons
Add debug icons
2 parents c835da3 + 498853f commit e1bc6cf

25 files changed

+22
-4
lines changed

app/build.gradle

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,20 @@ android {
2828
release {
2929
minifyEnabled false
3030
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
31-
manifestPlaceholders = [crashlyticsEnabled: true]
31+
manifestPlaceholders = [
32+
crashlyticsEnabled: true,
33+
appIcon : "@mipmap/ic_launcher",
34+
appIconRound : "@mipmap/ic_launcher_round"
35+
]
3236
}
3337
debug {
3438
applicationIdSuffix ".debug"
3539
versionNameSuffix "-debug"
36-
manifestPlaceholders = [crashlyticsEnabled: false]
40+
manifestPlaceholders = [
41+
crashlyticsEnabled: false,
42+
appIcon : "@mipmap/ic_debug_launcher",
43+
appIconRound : "@mipmap/ic_debug_launcher_round"
44+
]
3745
}
3846
}
3947
viewBinding.enabled = true

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<application
77
android:name=".DesignPatternsApp"
88
android:allowBackup="false"
9-
android:icon="@mipmap/ic_launcher"
9+
android:icon="${appIcon}"
1010
android:label="@string/app_name"
11-
android:roundIcon="@mipmap/ic_launcher_round"
11+
android:roundIcon="${appIconRound}"
1212
android:supportsRtl="true"
1313
android:theme="@style/AppTheme"
1414
tools:ignore="AllowBackup"
26.1 KB
Loading
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@mipmap/ic_debug_launcher_background"/>
4+
<foreground android:drawable="@mipmap/ic_debug_launcher_foreground"/>
5+
</adaptive-icon>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@mipmap/ic_debug_launcher_background"/>
4+
<foreground android:drawable="@mipmap/ic_debug_launcher_foreground"/>
5+
</adaptive-icon>
2.04 KB
Loading
374 Bytes
Loading
3.04 KB
Loading
4.22 KB
Loading
1.36 KB
Loading

0 commit comments

Comments
 (0)