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 = ' 1'
@@ -21,11 +22,9 @@ if (flutterVersionName == null) {
2122 flutterVersionName = ' 1.0'
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 {
26+
27+ namespace " com.example.flagship_qa"
2928 compileSdk 34
3029
3130 sourceSets {
@@ -36,7 +35,7 @@ android {
3635 // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3736 applicationId " com.example.flagship_qa"
3837 minSdkVersion flutter. minSdkVersion
39- targetSdkVersion 30
38+ targetSdkVersion 34
4039 versionCode flutterVersionCode. toInteger()
4140 versionName flutterVersionName
4241 }
@@ -48,12 +47,17 @@ android {
4847 signingConfig signingConfigs. debug
4948 }
5049 }
50+
51+ compileOptions {
52+ sourceCompatibility JavaVersion . VERSION_17
53+ targetCompatibility JavaVersion . VERSION_17
54+ }
5155}
5256
5357flutter {
5458 source ' ../..'
5559}
5660
5761dependencies {
58- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
59- }
62+ // implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
63+ }
0 commit comments