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,13 +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 {
2926 namespace " dev.danvickmiller.flutterformbuilder.example"
30- compileSdkVersion 33
27+ compileSdkVersion 34
3128 ndkVersion flutter. ndkVersion
3229
3330 compileOptions {
@@ -48,8 +45,8 @@ android {
4845 applicationId " dev.danvickmiller.flutterformbuilder.example"
4946 // You can update the following values to match your application needs.
5047 // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
51- minSdkVersion 16
52- targetSdkVersion 33
48+ minSdkVersion flutter . minSdkVersion
49+ targetSdkVersion 34
5350 versionCode flutterVersionCode. toInteger()
5451 versionName flutterVersionName
5552 }
@@ -66,7 +63,3 @@ android {
6663flutter {
6764 source ' ../..'
6865}
69-
70- dependencies {
71- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
72- }
0 commit comments