diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | app/build.gradle | 16 |
2 files changed, 16 insertions, 3 deletions
@@ -23,5 +23,4 @@ | |||
23 | /captures | 23 | /captures |
24 | .externalNativeBuild | 24 | .externalNativeBuild |
25 | /app/release | 25 | /app/release |
26 | /keyring | 26 | keystore.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' | |||
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 |