11plugins {
22 id " com.android.application"
3- id " kotlin- android"
3+ id " org.jetbrains. kotlin. android"
44 id " dev.flutter.flutter-gradle-plugin"
55}
6+
67def localProperties = new Properties ()
78def localPropertiesFile = rootProject. file(' local.properties' )
89if (localPropertiesFile. exists()) {
910 localPropertiesFile. withReader(' UTF-8' ) { reader ->
1011 localProperties. load(reader)
1112 }
1213}
14+
1315def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
1416if (flutterVersionCode == null ) {
1517 flutterVersionCode = ' 1'
@@ -20,12 +22,9 @@ if (flutterVersionName == null) {
2022 flutterVersionName = ' 1.0'
2123}
2224
23- // apply plugin: 'com.android.application'
24- // apply plugin: 'kotlin-android'
25- // apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
26-
2725android {
28- compileSdkVersion flutter. compileSdkVersion
26+ compileSdkVersion 34
27+ namespace " com.example.super_tooltip_example"
2928
3029 sourceSets {
3130 main. java. srcDirs + = ' src/main/kotlin'
@@ -39,7 +38,7 @@ android {
3938 // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4039 applicationId " com.example.super_tooltip_example"
4140 minSdkVersion flutter. minSdkVersion
42- targetSdkVersion 28
41+ targetSdkVersion 34
4342 versionCode flutterVersionCode. toInteger()
4443 versionName flutterVersionName
4544 }
@@ -51,12 +50,17 @@ android {
5150 signingConfig signingConfigs. debug
5251 }
5352 }
53+
54+ kotlinOptions {
55+ jvmTarget = " 1.8"
56+ }
57+
58+ compileOptions {
59+ sourceCompatibility = JavaVersion . VERSION_1_8
60+ targetCompatibility = JavaVersion . VERSION_1_8
61+ }
5462}
5563
5664flutter {
5765 source ' ../..'
58- }
59-
60- dependencies {
61- // implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
6266}
0 commit comments