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,10 +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
15
14
16
def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
15
17
if (flutterVersionCode == null ) {
@@ -21,12 +23,9 @@ if (flutterVersionName == null) {
21
23
flutterVersionName = ' 1.0'
22
24
}
23
25
24
- apply plugin : ' com.android.application'
25
- apply plugin : ' kotlin-android'
26
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27
-
28
26
android {
29
- compileSdkVersion 29
27
+ namespace " com.connectycube.flutter.connectycube_flutter_call_kit_example"
28
+ compileSdkVersion 34
30
29
31
30
sourceSets {
32
31
main. java. srcDirs + = ' src/main/kotlin'
@@ -39,8 +38,8 @@ android {
39
38
defaultConfig {
40
39
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41
40
applicationId " com.connectycube.flutter.connectycube_flutter_call_kit_example"
42
- minSdkVersion 21
43
- targetSdkVersion 29
41
+ minSdkVersion 24
42
+ targetSdkVersion 34
44
43
versionCode flutterVersionCode. toInteger()
45
44
versionName flutterVersionName
46
45
}
@@ -52,12 +51,12 @@ android {
52
51
signingConfig signingConfigs. debug
53
52
}
54
53
}
54
+ compileOptions {
55
+ sourceCompatibility JavaVersion . VERSION_17
56
+ targetCompatibility JavaVersion . VERSION_17
57
+ }
55
58
}
56
59
57
60
flutter {
58
61
source ' ../..'
59
- }
60
-
61
- dependencies {
62
- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
63
- }
62
+ }
0 commit comments