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,11 +23,10 @@ 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"
26+
2727
2828android {
29+ namespace ' com.linecorp.linesdk.sample'
2930 compileSdk 33
3031
3132 sourceSets {
@@ -46,6 +47,15 @@ android {
4647 multiDexEnabled true
4748 }
4849
50+ compileOptions {
51+ sourceCompatibility JavaVersion . VERSION_17
52+ targetCompatibility JavaVersion . VERSION_17
53+ }
54+
55+ kotlinOptions {
56+ jvmTarget = ' 17'
57+ }
58+
4959 buildTypes {
5060 debug {
5161 // for proguard verification
@@ -63,7 +73,6 @@ flutter {
6373}
6474
6575dependencies {
66- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
6776 testImplementation ' junit:junit:4.12'
6877 androidTestImplementation ' androidx.test.ext:junit:1.1.1'
6978 androidTestImplementation ' androidx.test.espresso:espresso-core:3.1.0'
0 commit comments