From 548139a6b168542e4f78c3d788f8b5d638ca6b78 Mon Sep 17 00:00:00 2001 From: Prasanna Venkadesh Date: Mon, 27 Feb 2023 16:06:19 +0530 Subject: [PATCH 1/2] Support for App Specific Language Preference in Android 13 --- CityZenApp/app/src/main/AndroidManifest.xml | 3 +- .../app/src/main/res/xml/locales_config.xml | 40 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 CityZenApp/app/src/main/res/xml/locales_config.xml diff --git a/CityZenApp/app/src/main/AndroidManifest.xml b/CityZenApp/app/src/main/AndroidManifest.xml index 3efe206..18b5746 100644 --- a/CityZenApp/app/src/main/AndroidManifest.xml +++ b/CityZenApp/app/src/main/AndroidManifest.xml @@ -16,6 +16,7 @@ android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme" + android:localeConfig="@xml/locales_config" android:networkSecurityConfig="@xml/network_security_config"> @@ -38,4 +39,4 @@ - \ No newline at end of file + diff --git a/CityZenApp/app/src/main/res/xml/locales_config.xml b/CityZenApp/app/src/main/res/xml/locales_config.xml new file mode 100644 index 0000000..4351eaa --- /dev/null +++ b/CityZenApp/app/src/main/res/xml/locales_config.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From b316c3a6251884c8b080cd504fb10a17381a2bf3 Mon Sep 17 00:00:00 2001 From: Prasanna Venkadesh Date: Mon, 27 Feb 2023 16:20:29 +0530 Subject: [PATCH 2/2] Update compileSDK to 33 with 28, the android:localeConfig throws error. Hence updated to SDK version 33 as per the recommendation here at https://developer.android.com/guide/topics/resources/app-languages --- CityZenApp/app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CityZenApp/app/build.gradle b/CityZenApp/app/build.gradle index df1b311..381400c 100644 --- a/CityZenApp/app/build.gradle +++ b/CityZenApp/app/build.gradle @@ -7,7 +7,7 @@ repositories { } android { - compileSdkVersion 28 + compileSdkVersion 33 defaultConfig { applicationId "com.cityzen.cityzen" minSdkVersion 16