diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2023-09-17 07:22:16 +0200 |
---|---|---|
committer | Charles Lombardo <clombardo169@gmail.com> | 2023-09-17 07:22:16 +0200 |
commit | 67eeb05692a96828eed87af7163868b22ac0553d (patch) | |
tree | 303012f3a51dd2461e150245fb07dba1250850af | |
parent | Merge pull request #11523 from t895/shader-workers (diff) | |
download | yuzu-67eeb05692a96828eed87af7163868b22ac0553d.tar yuzu-67eeb05692a96828eed87af7163868b22ac0553d.tar.gz yuzu-67eeb05692a96828eed87af7163868b22ac0553d.tar.bz2 yuzu-67eeb05692a96828eed87af7163868b22ac0553d.tar.lz yuzu-67eeb05692a96828eed87af7163868b22ac0553d.tar.xz yuzu-67eeb05692a96828eed87af7163868b22ac0553d.tar.zst yuzu-67eeb05692a96828eed87af7163868b22ac0553d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/android/app/build.gradle.kts | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts index fe79a701c..431f899b3 100644 --- a/src/android/app/build.gradle.kts +++ b/src/android/app/build.gradle.kts @@ -77,13 +77,30 @@ android { buildConfigField("String", "BRANCH", "\"${getBranch()}\"") } + val keystoreFile = System.getenv("ANDROID_KEYSTORE_FILE") + if (keystoreFile != null) { + signingConfigs { + create("release") { + storeFile = file(keystoreFile) + storePassword = System.getenv("ANDROID_KEYSTORE_PASS") + keyAlias = System.getenv("ANDROID_KEY_ALIAS") + keyPassword = System.getenv("ANDROID_KEYSTORE_PASS") + } + } + } + // Define build types, which are orthogonal to product flavors. buildTypes { // Signed by release key, allowing for upload to Play Store. release { + signingConfig = if (keystoreFile != null) { + signingConfigs.getByName("release") + } else { + signingConfigs.getByName("debug") + } + resValue("string", "app_name_suffixed", "yuzu") - signingConfig = signingConfigs.getByName("debug") isMinifyEnabled = true isDebuggable = false proguardFiles( |