1+ plugins {
2+ id " com.android.application"
3+ id " kotlin-android"
4+ id " dev.flutter.flutter-gradle-plugin"
5+ }
6+
17def keystorePropertiesFile = rootProject. file(" key.properties" )
28def keystoreProperties = new Properties ()
39keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
@@ -10,11 +16,6 @@ if (localPropertiesFile.exists()) {
1016 }
1117}
1218
13- def flutterRoot = localProperties. getProperty(' flutter.sdk' )
14- if (flutterRoot == null ) {
15- throw new GradleException (" Flutter SDK not found. Define location with flutter.sdk in the local.properties file." )
16- }
17-
1819def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
1920if (flutterVersionCode == null ) {
2021 flutterVersionCode = ' 1'
@@ -25,17 +26,8 @@ if (flutterVersionName == null) {
2526 flutterVersionName = ' 1.0'
2627}
2728
28- apply plugin : ' com.android.application'
29- apply plugin : ' kotlin-android'
30- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
31-
3229android {
33- compileSdkVersion 34
34-
35- compileOptions {
36- sourceCompatibility JavaVersion . VERSION_1_8
37- targetCompatibility JavaVersion . VERSION_1_8
38- }
30+ compileSdkVersion 35
3931
4032 kotlinOptions {
4133 jvmTarget = ' 1.8'
@@ -65,6 +57,8 @@ android {
6557
6658 buildTypes {
6759 release {
60+ minifyEnabled false
61+ shrinkResources false
6862 signingConfig signingConfigs. release
6963 }
7064 }
@@ -74,10 +68,6 @@ flutter {
7468 source ' ../..'
7569}
7670
77- dependencies {
78- implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
79- }
80-
8171[
8272 Debug : null ,
8373 Profile : ' --release' ,
0 commit comments