Skip to content

Commit 7d09ca0

Browse files
Fix app signing config
1 parent 9f2ed08 commit 7d09ca0

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
.buildlog/
99
.history
1010
.svn/
11+
.key/
1112
migrate_working_dir/
1213
assets/bibles/.temp/*.ESFM
1314

android/app/build.gradle

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ if (flutterVersionName == null) {
2222
flutterVersionName = '1.0'
2323
}
2424

25+
def keystoreProperties = new Properties()
26+
def keystorePropertiesFile = rootProject.file('key.properties')
27+
if (keystorePropertiesFile.exists()) {
28+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
29+
}
30+
2531
android {
2632
namespace "com.bibleside.bibleside"
2733
compileSdkVersion flutter.compileSdkVersion
@@ -52,9 +58,10 @@ android {
5258

5359
buildTypes {
5460
release {
55-
// TODO: Add your own signing config for the release build.
56-
// Signing with the debug keys for now, so `flutter run --release` works.
57-
signingConfig signingConfigs.debug
61+
keyAlias keystoreProperties['keyAlias']
62+
keyPassword keystoreProperties['keyPassword']
63+
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
64+
storePassword keystoreProperties['storePassword']
5865
}
5966
}
6067

0 commit comments

Comments
 (0)