File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ apply plugin: 'kotlin-kapt'
5
5
6
6
def keystorePropertiesFile = rootProject. file(" keystore.properties" )
7
7
def keystoreProperties = new Properties ()
8
- keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
8
+ if (keystorePropertiesFile. exists()) {
9
+ keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
10
+ }
9
11
10
12
android {
11
13
compileSdkVersion 28
@@ -21,11 +23,13 @@ android {
21
23
}
22
24
23
25
signingConfigs {
24
- release {
25
- keyAlias keystoreProperties[' keyAlias' ]
26
- keyPassword keystoreProperties[' keyPassword' ]
27
- storeFile file(keystoreProperties[' storeFile' ])
28
- storePassword keystoreProperties[' storePassword' ]
26
+ if (keystorePropertiesFile. exists()) {
27
+ release {
28
+ keyAlias keystoreProperties[' keyAlias' ]
29
+ keyPassword keystoreProperties[' keyPassword' ]
30
+ storeFile file(keystoreProperties[' storeFile' ])
31
+ storePassword keystoreProperties[' storePassword' ]
32
+ }
29
33
}
30
34
}
31
35
You can’t perform that action at this time.
0 commit comments