Enable resource shrinking on release and drop UnstableApiUsage suppress

isShrinkResources pairs with isMinifyEnabled so R8 can prune unused
resources alongside dead code. Also drops the @Suppress on
androidResources.localeFilters: the warning was an IDE inspection only;
gradle script compilation is clean.

https://claude.ai/code/session_01VFNWcRfGTUpgqzUBpU9wFu
This commit is contained in:
Claude
2026-05-22 09:02:20 +00:00
parent 569f104117
commit 3e72d0841f
+1 -1
View File
@@ -30,7 +30,6 @@ android {
}
androidResources {
@Suppress("UnstableApiUsage")
localeFilters += listOf(
"bn-BD",
"cs",
@@ -123,6 +122,7 @@ android {
}
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
isMinifyEnabled = true
isShrinkResources = true
resValue("string", "app_name", "@string/app_name_release")
}
debug {