1
+ plugins {
2
+ id " com.android.application"
3
+ id " kotlin-android"
4
+ id " dev.flutter.flutter-gradle-plugin"
5
+ id " com.google.protobuf"
6
+ }
7
+
1
8
def localProperties = new Properties ()
2
9
def localPropertiesFile = rootProject. file(' local.properties' )
3
10
if (localPropertiesFile. exists()) {
@@ -6,10 +13,7 @@ if (localPropertiesFile.exists()) {
6
13
}
7
14
}
8
15
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
- }
16
+
13
17
14
18
def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
15
19
if (flutterVersionCode == null ) {
@@ -21,10 +25,7 @@ if (flutterVersionName == null) {
21
25
flutterVersionName = ' 1.0'
22
26
}
23
27
24
- apply plugin : ' com.android.application'
25
- apply plugin : ' kotlin-android'
26
- apply plugin : ' com.google.protobuf'
27
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
28
+
28
29
29
30
30
31
// signing
@@ -37,7 +38,7 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
37
38
38
39
39
40
android {
40
- compileSdkVersion 33
41
+ compileSdkVersion 34
41
42
ndkVersion flutter. ndkVersion
42
43
43
44
compileOptions {
@@ -91,8 +92,8 @@ flutter {
91
92
source ' ../..'
92
93
}
93
94
94
- dependencies {
95
- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
95
+ // dependencies {
96
+ // implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
96
97
97
- }
98
+ // }
98
99
0 commit comments