Commit ae1b45b Derik Thirion
committed
1 parent 39cfb16 commit ae1b45b Copy full SHA for ae1b45b
File tree 1 file changed +21
-3
lines changed
1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ if (localPropertiesFile.exists()) {
6
6
}
7
7
}
8
8
9
+ def keystoreProperties = new Properties ()
10
+ def keystorePropertiesFile = rootProject. file(' key.properties' )
11
+ if (keystorePropertiesFile. exists()) {
12
+ keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
13
+ }
14
+
9
15
def flutterRoot = localProperties. getProperty(' flutter.sdk' )
10
16
if (flutterRoot == null ) {
11
17
throw new GradleException (" Flutter SDK not found. Define location with flutter.sdk in the local.properties file." )
@@ -50,11 +56,23 @@ android {
50
56
versionName flutterVersionName
51
57
}
52
58
59
+ signingConfigs {
60
+ release {
61
+ keyAlias keystoreProperties[' keyAlias' ]
62
+ keyPassword keystoreProperties[' keyPassword' ]
63
+ storeFile keystoreProperties[' storeFile' ] ? file(keystoreProperties[' storeFile' ]) : null
64
+ storePassword keystoreProperties[' storePassword' ]
65
+ }
66
+ }
67
+
53
68
buildTypes {
69
+ // release {
70
+ // // TODO: Add your own signing config for the release build.
71
+ // // Signing with the debug keys for now, so `flutter run --release` works.
72
+ // signingConfig signingConfigs.debug
73
+ // }
54
74
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
75
+ signingConfig signingConfigs. release
58
76
}
59
77
}
60
78
}
You can’t perform that action at this time.
0 commit comments