From 591ef703ea82b74826615a82f027f297b3783a78 Mon Sep 17 00:00:00 2001 From: Mygod Date: Thu, 25 May 2023 19:18:00 -0400 Subject: [PATCH] Revert "Use auto gen res config" This reverts commit 41e524f75bd0b5920a585bf43d4096347f4a5e64. --- 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, 10 insertions(+), 2 deletions(-) delete mode 100644 mobile/src/main/res/resources.properties create mode 100644 mobile/src/main/res/xml/locales_config.xml diff --git a/mobile/build.gradle.kts b/mobile/build.gradle.kts index 6b545b74..f5bfff67 100644 --- a/mobile/build.gradle.kts +++ b/mobile/build.gradle.kts @@ -52,7 +52,6 @@ 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 92631bb4..980ab420 100644 --- a/mobile/src/main/AndroidManifest.xml +++ b/mobile/src/main/AndroidManifest.xml @@ -77,6 +77,7 @@ 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 deleted file mode 100644 index 467b3efe..00000000 --- a/mobile/src/main/res/resources.properties +++ /dev/null @@ -1 +0,0 @@ -unqualifiedResLocale=en-US diff --git a/mobile/src/main/res/xml/locales_config.xml b/mobile/src/main/res/xml/locales_config.xml new file mode 100644 index 00000000..4695e232 --- /dev/null +++ b/mobile/src/main/res/xml/locales_config.xml @@ -0,0 +1,9 @@ + + + + + + + + +