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,11 +23,10 @@ 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"
26
+
27
27
28
28
android {
29
+ namespace ' com.linecorp.linesdk.sample'
29
30
compileSdk 33
30
31
31
32
sourceSets {
@@ -46,6 +47,15 @@ android {
46
47
multiDexEnabled true
47
48
}
48
49
50
+ compileOptions {
51
+ sourceCompatibility JavaVersion . VERSION_17
52
+ targetCompatibility JavaVersion . VERSION_17
53
+ }
54
+
55
+ kotlinOptions {
56
+ jvmTarget = ' 17'
57
+ }
58
+
49
59
buildTypes {
50
60
debug {
51
61
// for proguard verification
@@ -63,7 +73,6 @@ flutter {
63
73
}
64
74
65
75
dependencies {
66
- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
67
76
testImplementation ' junit:junit:4.12'
68
77
androidTestImplementation ' androidx.test.ext:junit:1.1.1'
69
78
androidTestImplementation ' androidx.test.espresso:espresso-core:3.1.0'
0 commit comments