@@ -25,8 +25,15 @@ 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
+
34
+
28
35
android {
29
- compileSdkVersion 27
36
+ compileSdkVersion 28
30
37
31
38
sourceSets {
32
39
main. java. srcDirs + = ' src/main/kotlin'
@@ -38,21 +45,28 @@ android {
38
45
39
46
defaultConfig {
40
47
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41
- applicationId " com.ali .fluttergo"
48
+ applicationId " com.alibaba .fluttergo"
42
49
minSdkVersion 16
43
- targetSdkVersion 27
50
+ targetSdkVersion 28
44
51
versionCode flutterVersionCode. toInteger()
45
52
versionName flutterVersionName
46
- testInstrumentationRunner " android.support .test.runner.AndroidJUnitRunner"
53
+ testInstrumentationRunner " androidx .test.runner.AndroidJUnitRunner"
47
54
}
48
55
56
+ signingConfigs {
57
+ release {
58
+ keyAlias keystoreProperties[' keyAlias' ]
59
+ keyPassword keystoreProperties[' keyPassword' ]
60
+ storeFile file(keystoreProperties[' storeFile' ])
61
+ storePassword keystoreProperties[' storePassword' ]
62
+ }
63
+ }
49
64
buildTypes {
50
65
release {
51
- // TODO: Add your own signing config for the release build.
52
- // Signing with the debug keys for now, so `flutter run --release` works.
53
- signingConfig signingConfigs. debug
66
+ signingConfig signingConfigs. release
54
67
}
55
68
}
69
+
56
70
}
57
71
58
72
flutter {
@@ -62,8 +76,8 @@ flutter {
62
76
dependencies {
63
77
implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
64
78
testImplementation ' junit:junit:4.12'
65
- androidTestImplementation ' com.android.support. test:runner:1.0.2 '
66
- androidTestImplementation ' com.android.support. test.espresso:espresso-core:3.0.2 '
79
+ androidTestImplementation ' androidx. test:runner:1.1.1 '
80
+ androidTestImplementation ' androidx. test.espresso:espresso-core:3.1.1 '
67
81
// firebase
68
82
implementation ' com.google.firebase:firebase-core:16.0.8'
69
83
// Crashlytics SDK
0 commit comments