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,11 +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- }
13-
1415def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
1516if (flutterVersionCode == null ) {
1617 flutterVersionCode = ' 1'
@@ -21,12 +22,8 @@ if (flutterVersionName == null) {
2122 flutterVersionName = ' 1.0'
2223}
2324
24- apply plugin : ' com.android.application'
25- apply plugin : ' kotlin-android'
26- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27-
2825android {
29- compileSdkVersion 34
26+ compileSdkVersion 35
3027
3128 sourceSets {
3229 main. java. srcDirs + = ' src/main/kotlin'
@@ -38,14 +35,18 @@ android {
3835 }
3936
4037 compileOptions {
41- sourceCompatibility JavaVersion . VERSION_1_8
42- targetCompatibility JavaVersion . VERSION_1_8
38+ sourceCompatibility JavaVersion . VERSION_17
39+ targetCompatibility JavaVersion . VERSION_17
40+ }
41+
42+ kotlinOptions {
43+ jvmTarget = " 17"
4344 }
4445
4546 defaultConfig {
4647 // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4748 applicationId " com.sap.gigya_flutter_plugin_example"
48- minSdkVersion 23
49+ minSdkVersion 24
4950 targetSdkVersion 33
5051 versionCode flutterVersionCode. toInteger()
5152 versionName flutterVersionName
@@ -71,7 +72,6 @@ flutter {
7172}
7273
7374dependencies {
74- implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
7575 implementation " androidx.multidex:multidex:2.0.1"
7676
7777 // Needed when implementing Gigya SDK activity based operations.
0 commit comments