diff options
author | pacien | 2018-08-07 19:08:50 +0200 |
---|---|---|
committer | pacien | 2018-08-07 19:08:50 +0200 |
commit | 24e7804417fd581323cb2ada5807ebc037a72781 (patch) | |
tree | 2215e6b70ca574b5c80dc86c9be0ce7fc357bef5 /app/build.gradle | |
parent | 2f75648b4be9734ba45827cfe8ae213302036ea3 (diff) | |
download | tincapp-24e7804417fd581323cb2ada5807ebc037a72781.tar.gz |
Configure release signing
Diffstat (limited to 'app/build.gradle')
-rw-r--r-- | app/build.gradle | 16 |
1 files changed, 15 insertions, 1 deletions
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' | |||
21 | apply plugin: 'kotlin-android-extensions' | 21 | apply plugin: 'kotlin-android-extensions' |
22 | apply plugin: 'com.github.triplet.play' | 22 | apply plugin: 'com.github.triplet.play' |
23 | 23 | ||
24 | def keystorePropertiesFile = rootProject.file("keystore.properties") | ||
25 | def keystoreProperties = new Properties() | ||
26 | keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) | ||
27 | |||
24 | android { | 28 | android { |
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 | ||
75 | play { | 89 | play { |
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 |