1
+ plugins {
2
+ id " com.android.application"
3
+ id " kotlin-android"
4
+ id " dev.flutter.flutter-gradle-plugin"
5
+ }
6
+
1
7
def localProperties = new Properties ()
2
8
def localPropertiesFile = rootProject. file(' local.properties' )
3
9
if (localPropertiesFile. exists()) {
@@ -6,12 +12,6 @@ if (localPropertiesFile.exists()) {
6
12
}
7
13
}
8
14
9
- def flutterRoot = localProperties. getProperty(' flutter.sdk' )
10
- if (flutterRoot == null ) {
11
- throw new GradleException (" Flutter SDK not found. Define location with flutter.sdk in the local.properties file." )
12
- }
13
-
14
-
15
15
def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
16
16
if (flutterVersionCode == null ) {
17
17
flutterVersionCode = ' 1'
@@ -22,21 +22,13 @@ if (flutterVersionName == null) {
22
22
flutterVersionName = ' 1.0'
23
23
}
24
24
25
- apply plugin : ' com.android.application'
26
- apply plugin : ' kotlin-android'
27
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
28
-
29
25
def keystorePropertiesFile = rootProject. file(" app/key.properties" )
30
26
def keystoreProperties = new Properties ()
31
27
keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
32
28
33
29
android {
34
30
compileSdkVersion 34
35
31
36
- lintOptions {
37
- disable ' InvalidPackage'
38
- }
39
-
40
32
defaultConfig {
41
33
applicationId " com.weilu.deer"
42
34
minSdkVersion 21
@@ -73,8 +65,12 @@ android {
73
65
}
74
66
75
67
compileOptions {
76
- sourceCompatibility JavaVersion . VERSION_11
77
- targetCompatibility JavaVersion . VERSION_11
68
+ sourceCompatibility JavaVersion . VERSION_17
69
+ targetCompatibility JavaVersion . VERSION_17
70
+ }
71
+ namespace ' com.weilu.deer'
72
+ lint {
73
+ disable ' InvalidPackage'
78
74
}
79
75
}
80
76
@@ -83,5 +79,5 @@ flutter {
83
79
}
84
80
85
81
dependencies {
86
- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk8:$k otlin_version "
82
+ implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20 "
87
83
}
0 commit comments