From 41e524f75bd0b5920a585bf43d4096347f4a5e64 Mon Sep 17 00:00:00 2001 From: Mygod Date: Thu, 13 Apr 2023 21:16:48 -0400 Subject: [PATCH] Use auto gen res config --- mobile/build.gradle.kts | 1 + mobile/src/main/AndroidManifest.xml | 1 - mobile/src/main/res/resources.properties | 1 + mobile/src/main/res/xml/locales_config.xml | 9 --------- 4 files changed, 2 insertions(+), 10 deletions(-) create mode 100644 mobile/src/main/res/resources.properties delete mode 100644 mobile/src/main/res/xml/locales_config.xml diff --git a/mobile/build.gradle.kts b/mobile/build.gradle.kts index 672a8549..092372b1 100644 --- a/mobile/build.gradle.kts +++ b/mobile/build.gradle.kts @@ -52,6 +52,7 @@ android { proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro") } } + androidResources.generateLocaleConfig = true packagingOptions.resources.excludes.addAll(listOf( "**/*.kotlin_*", "META-INF/versions/**", diff --git a/mobile/src/main/AndroidManifest.xml b/mobile/src/main/AndroidManifest.xml index 980ab420..92631bb4 100644 --- a/mobile/src/main/AndroidManifest.xml +++ b/mobile/src/main/AndroidManifest.xml @@ -77,7 +77,6 @@ android:banner="@mipmap/banner" android:hasFragileUserData="true" android:icon="@mipmap/ic_launcher" - android:localeConfig="@xml/locales_config" android:enableOnBackInvokedCallback="true" android:supportsRtl="true" android:theme="@style/AppTheme" diff --git a/mobile/src/main/res/resources.properties b/mobile/src/main/res/resources.properties new file mode 100644 index 00000000..467b3efe --- /dev/null +++ b/mobile/src/main/res/resources.properties @@ -0,0 +1 @@ +unqualifiedResLocale=en-US diff --git a/mobile/src/main/res/xml/locales_config.xml b/mobile/src/main/res/xml/locales_config.xml deleted file mode 100644 index 4695e232..00000000 --- a/mobile/src/main/res/xml/locales_config.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - -