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:
parent
9ab6144001
commit
bac26635af
4 changed files with 18 additions and 10 deletions
|
|
@ -59,21 +59,27 @@ android {
|
||||||
splits {
|
splits {
|
||||||
// Configures multiple APKs based on ABI.
|
// Configures multiple APKs based on ABI.
|
||||||
abi {
|
abi {
|
||||||
// Enables building multiple APKs per ABI.
|
val buildingAppBundle = gradle.startParameter.taskNames.any { it.contains("bundle") }
|
||||||
isEnable = true
|
|
||||||
|
// 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
|
// 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.
|
// want APKs for armeabi-v7a, x86, arm64-v8a and x86_64.
|
||||||
// Resets the list of ABIs that Gradle should create APKs for to none.
|
// Resets the list of ABIs that Gradle should create APKs for to none.
|
||||||
reset()
|
reset()
|
||||||
// Specifies a list of ABIs that Gradle should create APKs for.
|
|
||||||
include("armeabi-v7a", "x86", "arm64-v8a", "x86_64")
|
if (!buildingAppBundle) {
|
||||||
// Generate a universal APK that includes all ABIs, so user who installs from CI tool can use this one by default.
|
// Specifies a list of ABIs that Gradle should create APKs for.
|
||||||
isUniversalApk = true
|
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 {
|
androidResources {
|
||||||
resourceConfigurations += locales
|
localeFilters += locales
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
[versions]
|
[versions]
|
||||||
# Project
|
# Project
|
||||||
android_gradle_plugin = "8.8.1"
|
android_gradle_plugin = "8.9.1"
|
||||||
kotlin = "2.1.10"
|
kotlin = "2.1.10"
|
||||||
kotlinpoet = "2.1.0"
|
kotlinpoet = "2.1.0"
|
||||||
ksp = "2.1.10-1.0.31"
|
ksp = "2.1.10-1.0.31"
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ val locales = setOf(
|
||||||
"de",
|
"de",
|
||||||
"el",
|
"el",
|
||||||
"en",
|
"en",
|
||||||
"en_US",
|
"en-rUS",
|
||||||
"es",
|
"es",
|
||||||
"et",
|
"et",
|
||||||
"eu",
|
"eu",
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,8 @@ def normalizeForResourceConfigurations(locale):
|
||||||
return "pt-rBR"
|
return "pt-rBR"
|
||||||
case "zh#Hans":
|
case "zh#Hans":
|
||||||
return "zh-rCN"
|
return "zh-rCN"
|
||||||
|
case "en_US":
|
||||||
|
return "en-rUS"
|
||||||
case _:
|
case _:
|
||||||
return locale
|
return locale
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue