summaryrefslogtreecommitdiffhomepage
path: root/ui/build.gradle.kts
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2023-04-13 16:33:42 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2023-05-10 19:56:04 +0200
commite0b4551bca78908955371fc2fa323d25fc443d0a (patch)
tree379fff850d985febde1a381c5f5f164e4a07ee15 /ui/build.gradle.kts
parent7b9757bf3bf880f9082944114ad520742b10fba4 (diff)
gradle: generate locales for per-app picking
Enable the per-app locale picking menu by adding the right metadata automatically to the manifest with new AGP automation. This attempts to follow: https://developer.android.com/guide/topics/resources/app-languages#use-localeconfig Using the new AGP feature: https://developer.android.com/studio/preview/features#automatic-per-app-languages It appears to work, and it also should squelch the "W AppCompatDelegate: Checking for metadata for AppLocalesMetadataHolderService : " warnings on old Android that syphyr pointed out. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/build.gradle.kts')
-rw-r--r--ui/build.gradle.kts3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/build.gradle.kts b/ui/build.gradle.kts
index 94cdf746..065894c1 100644
--- a/ui/build.gradle.kts
+++ b/ui/build.gradle.kts
@@ -54,6 +54,9 @@ android {
matchingFallbacks += "release"
}
}
+ androidResources {
+ generateLocaleConfig = true
+ }
lint {
disable += "LongLogTag"
warning += "MissingTranslation"