1+ plugins {
2+ id " com.android.application"
3+ id " kotlin-android"
4+ id " dev.flutter.flutter-gradle-plugin"
5+ id " com.google.gms.google-services"
6+ }
7+
18def localProperties = new Properties ()
29def localPropertiesFile = rootProject. file(' local.properties' )
310if (localPropertiesFile. exists()) {
@@ -6,11 +13,6 @@ if (localPropertiesFile.exists()) {
613 }
714}
815
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-
1416def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
1517if (flutterVersionCode == null ) {
1618 flutterVersionCode = ' 1'
@@ -21,25 +23,18 @@ if (flutterVersionName == null) {
2123 flutterVersionName = ' 1.0'
2224}
2325
24- apply plugin : ' com.android.application'
25- // START: FlutterFire Configuration
26- apply plugin : ' com.google.gms.google-services'
27- // END: FlutterFire Configuration
28- apply plugin : ' kotlin-android'
29- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
30-
3126android {
3227 namespace ' io.flutter.plugins.firebase_ui_example'
3328 compileSdkVersion flutter. compileSdkVersion
3429 ndkVersion flutter. ndkVersion
3530
3631 compileOptions {
37- sourceCompatibility JavaVersion . VERSION_1_8
38- targetCompatibility JavaVersion . VERSION_1_8
32+ sourceCompatibility JavaVersion . VERSION_17
33+ targetCompatibility JavaVersion . VERSION_17
3934 }
4035
4136 kotlinOptions {
42- jvmTarget = ' 1.8 '
37+ jvmTarget = ' 17 '
4338 }
4439
4540 sourceSets {
@@ -66,7 +61,3 @@ android {
6661flutter {
6762 source ' ../..'
6863}
69-
70- dependencies {
71- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
72- }
0 commit comments