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 <jorgem@element.io>
This commit is contained in:
renovate[bot]
2025-03-25 18:18:02 +01:00
committed by GitHub
parent 9ab6144001
commit bac26635af
4 changed files with 18 additions and 10 deletions

View File

@@ -59,21 +59,27 @@ android {
splits {
// Configures multiple APKs based on ABI.
abi {
// Enables building multiple APKs per ABI.
isEnable = true
val buildingAppBundle = gradle.startParameter.taskNames.any { it.contains("bundle") }
// Enables building multiple APKs per ABI. This should be disabled when building an AAB.
isEnable = !buildingAppBundle
// By default all ABIs are included, so use reset() and include to specify that we only
// want APKs for armeabi-v7a, x86, arm64-v8a and x86_64.
// Resets the list of ABIs that Gradle should create APKs for to none.
reset()
// Specifies a list of ABIs that Gradle should create APKs for.
include("armeabi-v7a", "x86", "arm64-v8a", "x86_64")
// Generate a universal APK that includes all ABIs, so user who installs from CI tool can use this one by default.
isUniversalApk = true
if (!buildingAppBundle) {
// Specifies a list of ABIs that Gradle should create APKs for.
include("armeabi-v7a", "x86", "arm64-v8a", "x86_64")
// Generate a universal APK that includes all ABIs, so user who installs from CI tool can use this one by default.
isUniversalApk = true
}
}
}
defaultConfig {
resourceConfigurations += locales
androidResources {
localeFilters += locales
}
}

View File

@@ -3,7 +3,7 @@
[versions]
# Project
android_gradle_plugin = "8.8.1"
android_gradle_plugin = "8.9.1"
kotlin = "2.1.10"
kotlinpoet = "2.1.0"
ksp = "2.1.10-1.0.31"

View File

@@ -9,7 +9,7 @@ val locales = setOf(
"de",
"el",
"en",
"en_US",
"en-rUS",
"es",
"et",
"eu",

View File

@@ -36,6 +36,8 @@ def normalizeForResourceConfigurations(locale):
return "pt-rBR"
case "zh#Hans":
return "zh-rCN"
case "en_US":
return "en-rUS"
case _:
return locale