File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ apply plugin: 'com.android.application'
25
25
apply plugin : ' kotlin-android'
26
26
apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27
27
28
+ def keystoreProperties = new Properties ()
29
+ def keystorePropertiesFile = rootProject. file(' key.properties' )
30
+ if (keystorePropertiesFile. exists()) {
31
+ keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
32
+ }
33
+
28
34
android {
29
35
compileSdkVersion 28
30
36
@@ -39,16 +45,25 @@ android {
39
45
defaultConfig {
40
46
applicationId " it.albertomosconi.talpasplat3"
41
47
minSdkVersion 16
42
- targetSdkVersion 28
48
+ targetSdkVersion 29
43
49
versionCode flutterVersionCode. toInteger()
44
50
versionName flutterVersionName
45
51
}
46
52
53
+ signingConfigs {
54
+ release {
55
+ keyAlias keystoreProperties[' keyAlias' ]
56
+ keyPassword keystoreProperties[' keyPassword' ]
57
+ storeFile file(keystoreProperties[' storeFile' ])
58
+ storePassword keystoreProperties[' storePassword' ]
59
+ }
60
+ }
61
+
47
62
buildTypes {
48
63
release {
49
64
// TODO: Add your own signing config for the release build.
50
65
// Signing with the debug keys for now, so `flutter run --release` works.
51
- signingConfig signingConfigs. debug
66
+ signingConfig signingConfigs. release
52
67
}
53
68
}
54
69
}
You can’t perform that action at this time.
0 commit comments