Skip to content

Commit 895a769

Browse files
Arto Bendikensfshaza2
Arto Bendiken
authored andcommitted
Fix release tutorial to not break flutter run when missing JKS config. (#1536)
1 parent 3d2b76e commit 895a769

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/docs/deployment/android-release.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,11 @@ Configure signing for your app by editing the
104104
```
105105
with the keystore information from your properties file:
106106
```
107-
def keystorePropertiesFile = rootProject.file("key.properties")
108107
def keystoreProperties = new Properties()
109-
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
108+
def keystorePropertiesFile = rootProject.file('key.properties')
109+
if (keystorePropertiesFile.exists()) {
110+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
111+
}
110112
111113
android {
112114
```

0 commit comments

Comments
 (0)