Skip to content

Commit 03f4122

Browse files
fix(deps): update android.gradle.plugin to v8.9.1 (#4465)
* fix(deps): update android.gradle.plugin to v8.9.1 * Fix AAB issues and AGP deprecations * Fix `importSupportedLocalesFromLocalazy` to format `en-US` locale properly --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jorge Martín <[email protected]>
1 parent 68c1d30 commit 03f4122

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

app/build.gradle.kts

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,27 @@ android {
5959
splits {
6060
// Configures multiple APKs based on ABI.
6161
abi {
62-
// Enables building multiple APKs per ABI.
63-
isEnable = true
62+
val buildingAppBundle = gradle.startParameter.taskNames.any { it.contains("bundle") }
63+
64+
// Enables building multiple APKs per ABI. This should be disabled when building an AAB.
65+
isEnable = !buildingAppBundle
66+
6467
// By default all ABIs are included, so use reset() and include to specify that we only
6568
// want APKs for armeabi-v7a, x86, arm64-v8a and x86_64.
6669
// Resets the list of ABIs that Gradle should create APKs for to none.
6770
reset()
68-
// Specifies a list of ABIs that Gradle should create APKs for.
69-
include("armeabi-v7a", "x86", "arm64-v8a", "x86_64")
70-
// Generate a universal APK that includes all ABIs, so user who installs from CI tool can use this one by default.
71-
isUniversalApk = true
71+
72+
if (!buildingAppBundle) {
73+
// Specifies a list of ABIs that Gradle should create APKs for.
74+
include("armeabi-v7a", "x86", "arm64-v8a", "x86_64")
75+
// Generate a universal APK that includes all ABIs, so user who installs from CI tool can use this one by default.
76+
isUniversalApk = true
77+
}
7278
}
7379
}
7480

75-
defaultConfig {
76-
resourceConfigurations += locales
81+
androidResources {
82+
localeFilters += locales
7783
}
7884
}
7985

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[versions]
55
# Project
6-
android_gradle_plugin = "8.8.1"
6+
android_gradle_plugin = "8.9.1"
77
kotlin = "2.1.10"
88
kotlinpoet = "2.1.0"
99
ksp = "2.1.10-1.0.31"

plugins/src/main/kotlin/extension/locales.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ val locales = setOf(
99
"de",
1010
"el",
1111
"en",
12-
"en_US",
12+
"en-rUS",
1313
"es",
1414
"et",
1515
"eu",

tools/localazy/importSupportedLocalesFromLocalazy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ def normalizeForResourceConfigurations(locale):
3636
return "pt-rBR"
3737
case "zh#Hans":
3838
return "zh-rCN"
39+
case "en_US":
40+
return "en-rUS"
3941
case _:
4042
return locale
4143

0 commit comments

Comments
 (0)