Use autogenerated localeConfig

This commit is contained in:
tarsin committed 2023-03-09 13:11:37 +08:00
1 parent 737c190107
commit f27319e8cb
4 files changed
+3 -32

No files matched your search

+2
View File
@@ -15,6 +15,7 @@ android {
compileSdk = 33
buildToolsVersion = "33.0.2"
ndkVersion = "25.2.9519653"
androidResources.generateLocaleConfig = true
splits {
abi {
@@ -123,6 +124,7 @@ android {
excludes += "**.txt"
excludes += "**.bin"
}
}
dependenciesInfo.includeInApk = false
-1
View File
@@ -27,7 +27,6 @@
android:hasFragileUserData="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:localeConfig="@xml/locales_config"
android:networkSecurityConfig="@xml/network_security_config"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
+1
View File
@@ -0,0 +1 @@
unqualifiedResLocale=en-US
-31
View File
@@ -1,31 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright 2022 Tarsin Norbin
~
~ This file is part of EhViewer
~
~ EhViewer is free software: you can redistribute it and/or modify it
~ under the terms of the GNU General Public License as published
~ by the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ EhViewer is distributed in the hope that it will be useful, but WITHOUT
~ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
~ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License along with EhViewer.
~ If not, see <https://www.gnu.org/licenses/>.
-->
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
<locale android:name="en" />
<locale android:name="de" />
<locale android:name="es" />
<locale android:name="fr" />
<locale android:name="ja" />
<locale android:name="ko" />
<locale android:name="th" />
<locale android:name="tr" />
<locale android:name="zh-CN" />
<locale android:name="zh-HK" />
<locale android:name="zh-TW" />
<locale android:name="nb-NO" />
</locale-config>