File tree Expand file tree Collapse file tree 4 files changed +18
-6
lines changed Expand file tree Collapse file tree 4 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -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
@@ -44,12 +49,18 @@ android {
44
49
versionCode flutterVersionCode. toInteger()
45
50
versionName flutterVersionName
46
51
}
47
-
52
+ signingConfigs {
53
+ release {
54
+ keyAlias keystoreProperties[' keyAlias' ]
55
+ keyPassword keystoreProperties[' keyPassword' ]
56
+ storeFile keystoreProperties[' storeFile' ] ? file(keystoreProperties[' storeFile' ]) : null
57
+ storePassword keystoreProperties[' storePassword' ]
58
+ }
59
+ }
48
60
buildTypes {
49
61
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
62
+ minifyEnabled true
63
+ signingConfig signingConfigs. release
53
64
}
54
65
}
55
66
}
Original file line number Diff line number Diff line change 5
5
In most cases you can leave this as-is, but you if you want to provide
6
6
additional functionality it is fine to subclass or reimplement
7
7
FlutterApplication and put your custom class here. -->
8
+ <uses-permission android : name =" android.permission.INTERNET" />
8
9
<application
9
10
android : name =" io.flutter.app.FlutterApplication"
10
11
android : label =" Task Manager"
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ buildscript {
6
6
}
7
7
8
8
dependencies {
9
- classpath ' com.android.tools.build:gradle:4.0.1 '
9
+ classpath ' com.android.tools.build:gradle:3.6.3 '
10
10
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
11
11
}
12
12
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ description: A new Flutter application.
4
4
publish_to : ' none' # Remove this line if you wish to publish to pub.dev
5
5
6
6
7
- version : 1.0.0+1
7
+ version : 1.0.1+2
8
8
9
9
environment :
10
10
sdk : " >=2.7.0 <3.0.0"
You can’t perform that action at this time.
0 commit comments