Skip to content

Commit 10b0a81

Browse files
committed
Update app launcher icon and enable release build optimizations
This commit updates the app's launcher icon assets and modifies the build configuration. Key changes: - **Launcher Icon Update:** - Added new foreground launcher icon assets (`ic_launcher_foreground.webp`) for different screen densities (mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi). - Updated existing `ic_launcher.webp` and `ic_launcher_round.webp` assets. - Added a Play Store icon (`ic_launcher-playstore.png`). - Created `app/src/main/res/values/ic_launcher_background.xml` to define the launcher icon background color as white (`#FFFFFF`). - Updated `mipmap-anydpi-v26/ic_launcher.xml` and `mipmap-anydpi-v26/ic_launcher_round.xml` to use the new color resource for the background and reference the new foreground mipmap. The monochrome drawable reference was removed. - **Build Configuration (`app/build.gradle.kts`):** - Enabled `isMinifyEnabled = true` and `isShrinkResources = true` for release builds to optimize the APK size. - Refined the logic for enabling ABI splits: `isEnable = project.findProperty("splitApk")?.toString()?.toBoolean() == true`. This ensures `isEnable` is explicitly true only if the property is "true".
1 parent fdff00d commit 10b0a81

20 files changed

Lines changed: 13 additions & 8 deletions

app/build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@ android {
1616
versionName = "1.0"
1717
splits {
1818
abi {
19-
isEnable = project.findProperty("splitApk")?.toString()?.toBoolean() ?: false
19+
isEnable =
20+
project.findProperty("splitApk")?.toString()
21+
?.toBoolean() == true
2022
}
2123
}
2224
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2325
}
2426

2527
buildTypes {
2628
release {
27-
isMinifyEnabled = false
29+
isMinifyEnabled = true
30+
isShrinkResources = true
2831
proguardFiles(
2932
getDefaultProguardFile("proguard-android-optimize.txt"),
3033
"proguard-rules.pro"
62.2 KB
Loading
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3-
<background android:drawable="@drawable/ic_launcher_background" />
4-
<foreground android:drawable="@drawable/ic_launcher_foreground" />
5-
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
3+
<background android:drawable="@color/ic_launcher_background"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
65
</adaptive-icon>
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3-
<background android:drawable="@drawable/ic_launcher_background" />
4-
<foreground android:drawable="@drawable/ic_launcher_foreground" />
5-
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
3+
<background android:drawable="@color/ic_launcher_background"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
65
</adaptive-icon>
390 Bytes
Loading
3.32 KB
Loading
694 Bytes
Loading
332 Bytes
Loading
2.01 KB
Loading
460 Bytes
Loading

0 commit comments

Comments
 (0)