aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--app/build.gradle16
2 files changed, 16 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 747a787..d6ac763 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,5 +23,4 @@
23/captures 23/captures
24.externalNativeBuild 24.externalNativeBuild
25/app/release 25/app/release
26/keyring 26keystore.properties
27
diff --git a/app/build.gradle b/app/build.gradle
index 4c911c3..03ff88b 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -21,6 +21,10 @@ apply plugin: 'kotlin-android'
21apply plugin: 'kotlin-android-extensions' 21apply plugin: 'kotlin-android-extensions'
22apply plugin: 'com.github.triplet.play' 22apply plugin: 'com.github.triplet.play'
23 23
24def keystorePropertiesFile = rootProject.file("keystore.properties")
25def keystoreProperties = new Properties()
26keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
27
24android { 28android {
25 compileSdkVersion 27 29 compileSdkVersion 27
26 30
@@ -37,8 +41,18 @@ android {
37 } 41 }
38 } 42 }
39 43
44 signingConfigs {
45 release {
46 keyAlias keystoreProperties['keyAlias']
47 keyPassword keystoreProperties['keyPassword']
48 storeFile file(keystoreProperties['storeFile'])
49 storePassword keystoreProperties['storePassword']
50 }
51 }
52
40 buildTypes { 53 buildTypes {
41 release { 54 release {
55 signingConfig signingConfigs.release
42 minifyEnabled true 56 minifyEnabled true
43 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 57 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
44 } 58 }
@@ -73,7 +87,7 @@ repositories {
73} 87}
74 88
75play { 89play {
76 jsonFile = file('../keyring/api-key.json') 90 jsonFile = file(keystoreProperties['apiKeyFile'])
77 track = 'beta' 91 track = 'beta'
78 untrackOld = true 92 untrackOld = true
79 uploadImages = true 93 uploadImages = true