1+ plugins {
2+ id " com.android.application"
3+ id " kotlin-android"
4+ id " dev.flutter.flutter-gradle-plugin"
5+ }
6+
17def localProperties = new Properties ()
28def localPropertiesFile = rootProject. file(' local.properties' )
39if (localPropertiesFile. exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
612 }
713}
814
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-
1415def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
1516if (flutterVersionCode == null ) {
1617 flutterVersionCode = ' 6'
@@ -21,21 +22,27 @@ if (flutterVersionName == null) {
2122 flutterVersionName = ' 6.0.1'
2223}
2324
24- apply plugin : ' com.android.application'
25- apply plugin : ' kotlin-android'
26- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27-
2825android {
29- compileSdkVersion 33
26+ namespace " dev.fleaflet.flutter_map.example"
27+ compileSdk flutter. compileSdkVersion
28+ ndkVersion flutter. ndkVersion
29+
30+ compileOptions {
31+ sourceCompatibility JavaVersion . VERSION_1_8
32+ targetCompatibility JavaVersion . VERSION_1_8
33+ }
34+
35+ kotlinOptions {
36+ jvmTarget = ' 1.8'
37+ }
3038
3139 sourceSets {
3240 main. java. srcDirs + = ' src/main/kotlin'
3341 }
3442
3543 defaultConfig {
36- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37- applicationId " me.jpryan.flutter_map_example"
38- minSdkVersion 16
44+ applicationId " dev.fleaflet.flutter_map.example"
45+ minSdkVersion flutter. minSdkVersion
3946 targetSdkVersion 31
4047 versionCode flutterVersionCode. toInteger()
4148 versionName flutterVersionName
@@ -48,13 +55,10 @@ android {
4855 signingConfig signingConfigs. debug
4956 }
5057 }
51- namespace ' me.jpryan.flutter_map_example'
5258}
5359
5460flutter {
5561 source ' ../..'
5662}
5763
58- dependencies {
59- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
60- }
64+ dependencies {}
0 commit comments