File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,11 @@ if (flutterRoot == null) {
14
14
apply plugin : ' com.android.application'
15
15
apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
16
16
17
- def keystorePropertiesFile = rootProject. file(" key.properties" )
18
17
def keystoreProperties = new Properties ()
19
- keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
18
+ def keystorePropertiesFile = rootProject. file(' key.properties' )
19
+ if (keystorePropertiesFile. exists()) {
20
+ keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
21
+ }
20
22
21
23
android {
22
24
compileSdkVersion 27
@@ -39,7 +41,7 @@ android {
39
41
release {
40
42
keyAlias keystoreProperties[' keyAlias' ]
41
43
keyPassword keystoreProperties[' keyPassword' ]
42
- storeFile file(keystoreProperties[' storeFile' ])
44
+ storeFile keystoreProperties . containsKey( ' storeFile ' ) ? file(keystoreProperties[' storeFile' ]) : null
43
45
storePassword keystoreProperties[' storePassword' ]
44
46
}
45
47
}
You can’t perform that action at this time.
0 commit comments