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'
@@ -28,13 +29,9 @@ if (keystorePropertiesFile.exists()) {
2829 keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
2930}
3031
31- apply plugin : ' com.android.application'
32- apply plugin : ' kotlin-android'
33- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
34-
3532android {
3633 namespace " in.ac.iitr.mdg.appetizer"
37- compileSdkVersion 34
34+ compileSdkVersion 36
3835 ndkVersion flutter. ndkVersion
3936
4037 compileOptions {
@@ -52,7 +49,7 @@ android {
5249
5350 defaultConfig {
5451 applicationId " in.ac.iitr.mdg.appetizer"
55- minSdkVersion 21
52+ minSdkVersion flutter . minSdkVersion
5653 targetSdkVersion 34
5754 versionCode flutterVersionCode. toInteger()
5855 versionName flutterVersionName
0 commit comments