aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2018-08-07 19:08:50 +0200
committerpacien2018-08-07 19:08:50 +0200
commit24e7804417fd581323cb2ada5807ebc037a72781 (patch)
tree2215e6b70ca574b5c80dc86c9be0ce7fc357bef5
parent2f75648b4be9734ba45827cfe8ae213302036ea3 (diff)
downloadtincapp-24e7804417fd581323cb2ada5807ebc037a72781.tar.gz
Configure release signing
-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