From 991f47b5f477d270ab0fcef74574786863ff7d02 Mon Sep 17 00:00:00 2001 From: Infi Date: Wed, 13 Nov 2024 03:46:07 +0100 Subject: [PATCH] chore: autogenerate locale files Signed-off-by: Infi --- app/build.gradle.kts | 48 ++------------------------ app/src/main/AndroidManifest.xml | 1 - app/src/main/res/resources.properties | 1 + app/src/main/res/xml/locale_config.xml | 45 ------------------------ 4 files changed, 4 insertions(+), 91 deletions(-) create mode 100644 app/src/main/res/resources.properties delete mode 100644 app/src/main/res/xml/locale_config.xml diff --git a/app/build.gradle.kts b/app/build.gradle.kts index eef03dee..d856fcc5 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -84,51 +84,6 @@ android { useSupportLibrary = true } - // Please keep this list sorted alphabetically. - resourceConfigurations += listOf( - "ar", - "ast", - "b+es+419", - "be", - "bg", - "bn", - "ca", - "ckb", - "cs", - "de", - "el", - "eo", - "en", - "es", - "fa", - "fi", - "fil", - "fr", - "gl", - "hi", - "hr", - "hu", - "id", - "in", - "it", - "ja", - "lt", - "mwl", - "nb-rNO", - "nl", - "pl", - "pt", - "pt-rBR", - "ro", - "ru", - "si", - "th", - "tr", - "uk", - "zh-rCN", - "zh-rTW" - ) - externalNativeBuild { cmake { cppFlags("") @@ -197,6 +152,9 @@ android { excludes += "/META-INF/{AL2.0,LGPL2.1}" } } + androidResources { + generateLocaleConfig = true + } namespace = "chat.revolt" externalNativeBuild { cmake { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 5e28981b..208963e1 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -33,7 +33,6 @@ android:supportsRtl="true" android:name=".RevoltApplication" android:theme="@style/Theme.Revolt" - android:localeConfig="@xml/locale_config" android:enableOnBackInvokedCallback="true" tools:targetApi="tiramisu"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file