1+ plugins {
2+ id " com.android.application"
3+ id " kotlin-android"
4+ id " dev.flutter.flutter-gradle-plugin"
5+ }
6+
17def localProperties = new Properties ()
28def localPropertiesFile = rootProject. file(' local.properties' )
39if (localPropertiesFile. exists()) {
@@ -6,10 +12,6 @@ if (localPropertiesFile.exists()) {
612 }
713}
814
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- }
1315
1416def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
1517if (flutterVersionCode == null ) {
@@ -21,12 +23,9 @@ if (flutterVersionName == null) {
2123 flutterVersionName = ' 1.0'
2224}
2325
24- apply plugin : ' com.android.application'
25- apply plugin : ' kotlin-android'
26- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27-
2826android {
29- compileSdkVersion 29
27+ namespace " com.connectycube.flutter.connectycube_flutter_call_kit_example"
28+ compileSdkVersion 34
3029
3130 sourceSets {
3231 main. java. srcDirs + = ' src/main/kotlin'
@@ -39,8 +38,8 @@ android {
3938 defaultConfig {
4039 // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4140 applicationId " com.connectycube.flutter.connectycube_flutter_call_kit_example"
42- minSdkVersion 21
43- targetSdkVersion 29
41+ minSdkVersion 24
42+ targetSdkVersion 34
4443 versionCode flutterVersionCode. toInteger()
4544 versionName flutterVersionName
4645 }
@@ -52,12 +51,12 @@ android {
5251 signingConfig signingConfigs. debug
5352 }
5453 }
54+ compileOptions {
55+ sourceCompatibility JavaVersion . VERSION_17
56+ targetCompatibility JavaVersion . VERSION_17
57+ }
5558}
5659
5760flutter {
5861 source ' ../..'
59- }
60-
61- dependencies {
62- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
63- }
62+ }
0 commit comments