1
+ plugins {
2
+ id " com.android.application"
3
+ id " kotlin-android"
4
+ id " dev.flutter.flutter-gradle-plugin"
5
+ }
6
+
1
7
def localProperties = new Properties ()
2
8
def localPropertiesFile = rootProject. file(' local.properties' )
3
9
if (localPropertiesFile. exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
6
12
}
7
13
}
8
14
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
-
14
15
def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
15
16
if (flutterVersionCode == null ) {
16
17
flutterVersionCode = ' 1'
@@ -21,16 +22,12 @@ if (flutterVersionName == null) {
21
22
flutterVersionName = ' 1.0'
22
23
}
23
24
24
- apply plugin : ' com.android.application'
25
- apply plugin : ' kotlin-android'
26
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27
-
28
25
android {
29
26
packagingOptions {
30
27
exclude ' META-INF/DEPENDENCIES'
31
28
}
32
29
33
- compileSdkVersion 33
30
+ compileSdkVersion 34
34
31
35
32
sourceSets {
36
33
main. java. srcDirs + = ' src/main/kotlin'
@@ -44,7 +41,7 @@ android {
44
41
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
45
42
applicationId " com.woosignal.android"
46
43
minSdkVersion 21
47
- targetSdkVersion 33
44
+ targetSdkVersion 34
48
45
versionCode flutterVersionCode. toInteger()
49
46
versionName flutterVersionName
50
47
multiDexEnabled true
@@ -63,7 +60,4 @@ flutter {
63
60
source ' ../..'
64
61
}
65
62
66
- dependencies {
67
- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
68
- implementation " androidx.multidex:multidex:2.0.1"
69
- }
63
+ dependencies {}
0 commit comments