Use auto gen res config
This commit is contained in:
@@ -52,6 +52,7 @@ android {
|
|||||||
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
|
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
androidResources.generateLocaleConfig = true
|
||||||
packagingOptions.resources.excludes.addAll(listOf(
|
packagingOptions.resources.excludes.addAll(listOf(
|
||||||
"**/*.kotlin_*",
|
"**/*.kotlin_*",
|
||||||
"META-INF/versions/**",
|
"META-INF/versions/**",
|
||||||
|
|||||||
@@ -77,7 +77,6 @@
|
|||||||
android:banner="@mipmap/banner"
|
android:banner="@mipmap/banner"
|
||||||
android:hasFragileUserData="true"
|
android:hasFragileUserData="true"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:localeConfig="@xml/locales_config"
|
|
||||||
android:enableOnBackInvokedCallback="true"
|
android:enableOnBackInvokedCallback="true"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/AppTheme"
|
android:theme="@style/AppTheme"
|
||||||
|
|||||||
1
mobile/src/main/res/resources.properties
Normal file
1
mobile/src/main/res/resources.properties
Normal file
@@ -0,0 +1 @@
|
|||||||
|
unqualifiedResLocale=en-US
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<locale android:name="en"/>
|
|
||||||
<locale android:name="it"/>
|
|
||||||
<locale android:name="pt-BR"/>
|
|
||||||
<locale android:name="ru"/>
|
|
||||||
<locale android:name="zh-CN"/>
|
|
||||||
<locale android:name="zh-TW"/>
|
|
||||||
</locale-config>
|
|
||||||
Reference in New Issue
Block a user