@@ -25,6 +25,11 @@ 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
+ }
28
33
android {
29
34
compileSdkVersion 29
30
35
@@ -38,18 +43,25 @@ android {
38
43
39
44
defaultConfig {
40
45
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41
- applicationId " org.receipt_scanner "
46
+ applicationId " org.receipt_manager "
42
47
minSdkVersion 21
43
48
targetSdkVersion 29
44
49
versionCode flutterVersionCode. toInteger()
45
50
versionName flutterVersionName
46
51
}
47
52
53
+
54
+ signingConfigs {
55
+ release {
56
+ keyAlias keystoreProperties[' keyAlias' ]
57
+ keyPassword keystoreProperties[' keyPassword' ]
58
+ storeFile file(keystoreProperties[' storeFile' ])
59
+ storePassword keystoreProperties[' storePassword' ]
60
+ }
61
+ }
48
62
buildTypes {
49
63
release {
50
- // TODO: Add your own signing config for the release build.
51
- // Signing with the debug keys for now, so `flutter run --release` works.
52
- signingConfig signingConfigs. debug
64
+ signingConfig signingConfigs. release
53
65
}
54
66
}
55
67
}
@@ -60,4 +72,4 @@ flutter {
60
72
61
73
dependencies {
62
74
implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
63
- }
75
+ }
0 commit comments