From 47aa7fc191c2345e83741131d4d21f538eb96d44 Mon Sep 17 00:00:00 2001 From: Arthur-GYT Date: Sat, 9 Mar 2024 19:07:04 +0100 Subject: [PATCH] Enable auto generated per-app language file --- mastodon/build.gradle | 5 +- mastodon/src/main/AndroidManifest.xml | 1 - mastodon/src/main/res/resources.properties | 1 + mastodon/src/main/res/xml/locales_config.xml | 55 -------------------- 4 files changed, 5 insertions(+), 57 deletions(-) create mode 100644 mastodon/src/main/res/resources.properties delete mode 100644 mastodon/src/main/res/xml/locales_config.xml diff --git a/mastodon/build.gradle b/mastodon/build.gradle index 232ca837..a8263374 100644 --- a/mastodon/build.gradle +++ b/mastodon/build.gradle @@ -4,6 +4,10 @@ plugins { } android { + androidResources { + generateLocaleConfig = true + } + compileSdk 33 defaultConfig { applicationId "org.joinmastodon.android" @@ -12,7 +16,6 @@ android { versionCode 89 versionName "2.4.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - resConfigs "ar-rSA", "be-rBY", "bn-rBD", "bs-rBA", "ca-rES", "cs-rCZ", "da-rDK", "de-rDE", "el-rGR", "es-rES", "eu-rES", "fa-rIR", "fi-rFI", "fil-rPH", "fr-rFR", "ga-rIE", "gd-rGB", "gl-rES", "hi-rIN", "hr-rHR", "hu-rHU", "hy-rAM", "ig-rNG", "in-rID", "is-rIS", "it-rIT", "iw-rIL", "ja-rJP", "ka-rGE", "kab", "ko-rKR", "lt-rLT", "my-rMM", "nl-rNL", "no-rNO", "oc-rFR", "pl-rPL", "pt-rBR", "pt-rPT", "ro-rRO", "ru-rRU", "si-rLK", "sl-rSI", "sv-rSE", "th-rTH", "tr-rTR", "uk-rUA", "ur-rIN", "vi-rVN", "zh-rCN", "zh-rTW" } buildTypes { diff --git a/mastodon/src/main/AndroidManifest.xml b/mastodon/src/main/AndroidManifest.xml index 77799c15..1cc532fd 100644 --- a/mastodon/src/main/AndroidManifest.xml +++ b/mastodon/src/main/AndroidManifest.xml @@ -31,7 +31,6 @@ android:allowBackup="true" android:label="@string/app_name" android:supportsRtl="true" - android:localeConfig="@xml/locales_config" android:icon="@mipmap/ic_launcher" android:theme="@style/Theme.Mastodon.AutoLightDark" android:largeHeap="true"> diff --git a/mastodon/src/main/res/resources.properties b/mastodon/src/main/res/resources.properties new file mode 100644 index 00000000..d5a3ddc9 --- /dev/null +++ b/mastodon/src/main/res/resources.properties @@ -0,0 +1 @@ +unqualifiedResLocale=en-US \ No newline at end of file diff --git a/mastodon/src/main/res/xml/locales_config.xml b/mastodon/src/main/res/xml/locales_config.xml deleted file mode 100644 index 739afeec..00000000 --- a/mastodon/src/main/res/xml/locales_config.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file