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,11 +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
def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
15
16
if (flutterVersionCode == null ) {
16
17
flutterVersionCode = ' 1'
@@ -27,12 +28,17 @@ if (keystorePropertiesFile.exists()) {
27
28
keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
28
29
}
29
30
30
- apply plugin : ' com.android.application'
31
- apply plugin : ' kotlin-android'
32
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
33
-
34
31
android {
35
- compileSdkVersion 33
32
+ compileSdkVersion 34
33
+
34
+ compileOptions {
35
+ sourceCompatibility JavaVersion . VERSION_17
36
+ targetCompatibility JavaVersion . VERSION_17
37
+ }
38
+
39
+ kotlinOptions {
40
+ jvmTarget = ' 17'
41
+ }
36
42
37
43
sourceSets {
38
44
main. java. srcDirs + = ' src/main/kotlin'
@@ -45,7 +51,7 @@ android {
45
51
46
52
defaultConfig {
47
53
applicationId " {{reverse_domain}}"
48
- minSdkVersion 23
54
+ minSdkVersion 24
49
55
targetSdkVersion 31
50
56
versionCode flutterVersionCode. toInteger()
51
57
versionName flutterVersionName
@@ -94,7 +100,6 @@ flutter {
94
100
}
95
101
96
102
dependencies {
97
- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
98
103
implementation ' com.google.guava:guava:27.0.1-android'
99
104
implementation ' com.google.firebase:firebase-analytics:17.4.4'
100
105
implementation ' com.google.firebase:firebase-crashlytics:17.1.1'
0 commit comments