Skip to content

Commit

Permalink
ReVancedUpdater: Add support for per-app languages
Browse files Browse the repository at this point in the history
* Also fix building

Signed-off-by: Leonardo Ledda <leonardoledda@gmail.com>
  • Loading branch information
LeddaZ committed May 9, 2023
1 parent 0251727 commit 35522b7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ android {
targetSdk = 33
versionCode = getCommitCount()
versionName = "2.0.0"

resourceConfigurations += listOf("en", "it")
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

Expand Down
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:localeConfig="@xml/locales_config"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme_Blue"
tools:targetApi="31">
tools:targetApi="tiramisu">
<activity
android:name=".MainActivity"
android:exported="true">
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/xml/locales_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?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-config>
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
plugins {
id("com.android.application") version "8.2.0-alpha02" apply false
id("com.android.library") version "8.2.0-alpha02" apply false
id("org.jetbrains.kotlin.android") version "1.6.21" apply false
id("org.jetbrains.kotlin.android") version "1.8.21" apply false
}

0 comments on commit 35522b7

Please sign in to comment.