fix(i18n): force-keep in/id locale configs via resourceConfigurations

Root cause of Indonesian not matching: release build has
isShrinkResources=true and R8 was dropping the Indonesian resource
configs entirely - aapt dump badging showed locales only
'--_--' es ru si tr uk zh (no in, no id). values-in/values-id were
merged at merge time but stripped before packaging.

Fix: explicit resourceConfigurations in app/build.gradle.kts keeping
en zh tr in id es ru si uk. Verified: :app:mergeReleaseResources
BUILD SUCCESSFUL.
This commit is contained in:
mckero committed 2026-08-04 16:28:39 +00:00
1 parent 2777607ab5
commit c525f3a11f
1 file changed
+4
+4
View File
@@ -17,6 +17,10 @@ android {
ndk {
abiFilters += listOf("armeabi-v7a")
}
// 显式保留全部语言(防 shrinkResources 丢弃 in/id 印尼语配置)
resourceConfigurations += listOf(
"en", "zh", "tr", "in", "id", "es", "ru", "si", "uk"
)
}
signingConfigs {
if (keystoreProperties["storeFile"] != null) {