1
+ plugins {
2
+ id " com.android.application"
3
+ id " kotlin-android"
4
+ id " dev.flutter.flutter-gradle-plugin"
5
+ }
6
+
1
7
def keystorePropertiesFile = rootProject. file(" key.properties" )
2
8
def keystoreProperties = new Properties ()
3
9
keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
@@ -10,11 +16,6 @@ if (localPropertiesFile.exists()) {
10
16
}
11
17
}
12
18
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
-
18
19
def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
19
20
if (flutterVersionCode == null ) {
20
21
flutterVersionCode = ' 1'
@@ -25,17 +26,8 @@ if (flutterVersionName == null) {
25
26
flutterVersionName = ' 1.0'
26
27
}
27
28
28
- apply plugin : ' com.android.application'
29
- apply plugin : ' kotlin-android'
30
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
31
-
32
29
android {
33
- compileSdkVersion 34
34
-
35
- compileOptions {
36
- sourceCompatibility JavaVersion . VERSION_1_8
37
- targetCompatibility JavaVersion . VERSION_1_8
38
- }
30
+ compileSdkVersion 35
39
31
40
32
kotlinOptions {
41
33
jvmTarget = ' 1.8'
@@ -65,6 +57,8 @@ android {
65
57
66
58
buildTypes {
67
59
release {
60
+ minifyEnabled false
61
+ shrinkResources false
68
62
signingConfig signingConfigs. release
69
63
}
70
64
}
@@ -74,10 +68,6 @@ flutter {
74
68
source ' ../..'
75
69
}
76
70
77
- dependencies {
78
- implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
79
- }
80
-
81
71
[
82
72
Debug : null ,
83
73
Profile : ' --release' ,
0 commit comments