aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/build.gradle9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/build.gradle b/app/build.gradle
index d475102..d4db5ee 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -23,8 +23,9 @@ apply plugin: 'kotlin-kapt'
23apply plugin: 'com.github.triplet.play' 23apply plugin: 'com.github.triplet.play'
24 24
25def keystorePropertiesFile = rootProject.file("keystore.properties") 25def keystorePropertiesFile = rootProject.file("keystore.properties")
26def keystoreAvailable = keystorePropertiesFile.exists()
26def keystoreProperties = new Properties() 27def keystoreProperties = new Properties()
27keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) 28if (keystoreAvailable) keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
28 29
29android { 30android {
30 compileSdkVersion 27 31 compileSdkVersion 27
@@ -42,7 +43,7 @@ android {
42 } 43 }
43 } 44 }
44 45
45 signingConfigs { 46 if (keystoreAvailable) signingConfigs {
46 release { 47 release {
47 keyAlias keystoreProperties['keyAlias'] 48 keyAlias keystoreProperties['keyAlias']
48 keyPassword keystoreProperties['keyPassword'] 49 keyPassword keystoreProperties['keyPassword']
@@ -53,7 +54,7 @@ android {
53 54
54 buildTypes { 55 buildTypes {
55 release { 56 release {
56 signingConfig signingConfigs.release 57 if (keystoreAvailable) signingConfig signingConfigs.release
57 minifyEnabled true 58 minifyEnabled true
58 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 59 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
59 } 60 }
@@ -92,7 +93,7 @@ repositories {
92} 93}
93 94
94play { 95play {
95 jsonFile = file(keystoreProperties['apiKeyFile']) 96 if (keystoreAvailable) jsonFile = file(keystoreProperties['apiKeyFile'])
96 track = 'beta' 97 track = 'beta'
97 untrackOld = true 98 untrackOld = true
98 uploadImages = true 99 uploadImages = true