summaryrefslogtreecommitdiff
path: root/src/android/app/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/app/build.gradle.kts')
-rw-r--r--src/android/app/build.gradle.kts21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts
index fe79a701c..84a3308b7 100644
--- a/src/android/app/build.gradle.kts
+++ b/src/android/app/build.gradle.kts
@@ -77,13 +77,30 @@ android {
77 buildConfigField("String", "BRANCH", "\"${getBranch()}\"") 77 buildConfigField("String", "BRANCH", "\"${getBranch()}\"")
78 } 78 }
79 79
80 val keystoreFile = System.getenv("ANDROID_KEYSTORE_FILE")
81 if (keystoreFile != null) {
82 signingConfigs {
83 create("release") {
84 storeFile = file(keystoreFile)
85 storePassword = System.getenv("ANDROID_KEYSTORE_PASS")
86 keyAlias = System.getenv("ANDROID_KEY_ALIAS")
87 keyPassword = System.getenv("ANDROID_KEYSTORE_PASS")
88 }
89 }
90 }
91
80 // Define build types, which are orthogonal to product flavors. 92 // Define build types, which are orthogonal to product flavors.
81 buildTypes { 93 buildTypes {
82 94
83 // Signed by release key, allowing for upload to Play Store. 95 // Signed by release key, allowing for upload to Play Store.
84 release { 96 release {
97 signingConfig = if (keystoreFile != null) {
98 signingConfigs.getByName("release")
99 } else {
100 signingConfigs.getByName("debug")
101 }
102
85 resValue("string", "app_name_suffixed", "yuzu") 103 resValue("string", "app_name_suffixed", "yuzu")
86 signingConfig = signingConfigs.getByName("debug")
87 isMinifyEnabled = true 104 isMinifyEnabled = true
88 isDebuggable = false 105 isDebuggable = false
89 proguardFiles( 106 proguardFiles(
@@ -197,7 +214,7 @@ dependencies {
197 implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1") 214 implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1")
198 implementation("io.coil-kt:coil:2.2.2") 215 implementation("io.coil-kt:coil:2.2.2")
199 implementation("androidx.core:core-splashscreen:1.0.1") 216 implementation("androidx.core:core-splashscreen:1.0.1")
200 implementation("androidx.window:window:1.1.0") 217 implementation("androidx.window:window:1.2.0-beta03")
201 implementation("org.ini4j:ini4j:0.5.4") 218 implementation("org.ini4j:ini4j:0.5.4")
202 implementation("androidx.constraintlayout:constraintlayout:2.1.4") 219 implementation("androidx.constraintlayout:constraintlayout:2.1.4")
203 implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0") 220 implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")