Skip to content

Commit

Permalink
Auto generate locale config
Browse files Browse the repository at this point in the history
  • Loading branch information
flex3r committed Oct 7, 2023
1 parent 4c65e76 commit 5895525
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 24 deletions.
4 changes: 4 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ android {
}
}

androidResources {
generateLocaleConfig = true
}

signingConfigs {
create("release") {
storeFile = file("keystore/DankChat.jks").takeIf { it.exists() } ?: File(System.getProperty("user.home") + "/dankchat/DankChat.jks")
Expand Down
1 change: 0 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
android:enableOnBackInvokedCallback="true"
android:icon="@mipmap/ic_launcher"
android:label="${applicationLabel}"
android:localeConfig="@xml/locales_config"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/resources.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
unqualifiedResLocale=en-US
23 changes: 0 additions & 23 deletions app/src/main/res/xml/locales_config.xml

This file was deleted.

0 comments on commit 5895525

Please sign in to comment.