@@ -22,8 +22,13 @@ if (flutterVersionName == null) {
22
22
}
23
23
24
24
apply plugin : ' com.android.application'
25
+ apply plugin : ' kotlin-android'
25
26
apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
26
27
28
+ def keystorePropertiesFile = rootProject. file(" key.properties" )
29
+ def keystoreProperties = new Properties ()
30
+ keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
31
+
27
32
android {
28
33
compileSdkVersion 28
29
34
@@ -33,19 +38,25 @@ android {
33
38
34
39
defaultConfig {
35
40
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
36
- applicationId " com.example.flutter_vechain "
41
+ applicationId " cn.wupengxin.vechain_helper "
37
42
minSdkVersion 16
38
43
targetSdkVersion 28
39
44
versionCode flutterVersionCode. toInteger()
40
45
versionName flutterVersionName
41
46
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
42
47
}
43
48
49
+ signingConfigs {
50
+ release {
51
+ keyAlias keystoreProperties[' keyAlias' ]
52
+ keyPassword keystoreProperties[' keyPassword' ]
53
+ storeFile file(keystoreProperties[' storeFile' ])
54
+ storePassword keystoreProperties[' storePassword' ]
55
+ }
56
+ }
44
57
buildTypes {
45
58
release {
46
- // TODO: Add your own signing config for the release build.
47
- // Signing with the debug keys for now, so `flutter run --release` works.
48
- signingConfig signingConfigs. debug
59
+ signingConfig signingConfigs. release
49
60
}
50
61
}
51
62
}
@@ -58,4 +69,5 @@ dependencies {
58
69
testImplementation ' junit:junit:4.12'
59
70
androidTestImplementation ' com.android.support.test:runner:1.0.2'
60
71
androidTestImplementation ' com.android.support.test.espresso:espresso-core:3.0.2'
72
+ implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
61
73
}
0 commit comments