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,15 +22,15 @@ 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 {
29- compileSdkVersion 33
30- ndkVersion flutter. ndkVersion
26+ namespace ' com.webreinvent.vaahflutter'
27+
28+ compileSdkVersion 34
29+ ndkVersion " 26.1.10909125"
3130
3231 compileOptions {
32+ // TODO: coreLibraryDesugaringEnabled true is required for local notification
33+ coreLibraryDesugaringEnabled true
3334 sourceCompatibility JavaVersion . VERSION_1_8
3435 targetCompatibility JavaVersion . VERSION_1_8
3536 }
@@ -47,10 +48,11 @@ android {
4748 applicationId " com.webreinvent.vaahflutter"
4849 // You can update the following values to match your application needs.
4950 // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
50- minSdkVersion 19
51+ minSdkVersion flutter . minSdkVersion
5152 targetSdkVersion flutter. targetSdkVersion
5253 versionCode flutterVersionCode. toInteger()
5354 versionName flutterVersionName
55+ multiDexEnabled true
5456 }
5557
5658 buildTypes {
@@ -67,5 +69,6 @@ flutter {
6769}
6870
6971dependencies {
70- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
72+ implementation " androidx.multidex:multidex:2.0.1"
73+ coreLibraryDesugaring ' com.android.tools:desugar_jdk_libs:1.2.2'
7174}
0 commit comments