@@ -4,7 +4,14 @@ plugins {
4
4
}
5
5
6
6
kotlin {
7
- android()
7
+ android {
8
+ compilations.all {
9
+ kotlinOptions {
10
+ jvmTarget = " 1.8"
11
+ }
12
+ }
13
+ }
14
+
8
15
listOf (
9
16
iosX64(),
10
17
iosArm64(),
@@ -16,6 +23,8 @@ kotlin {
16
23
}
17
24
18
25
sourceSets {
26
+ targetHierarchy.default()
27
+
19
28
val commonMain by getting
20
29
val commonTest by getting {
21
30
dependencies {
@@ -27,21 +36,11 @@ kotlin {
27
36
val iosX64Main by getting
28
37
val iosArm64Main by getting
29
38
val iosSimulatorArm64Main by getting
30
- val iosMain by creating {
31
- dependsOn(commonMain)
32
- iosX64Main.dependsOn(this )
33
- iosArm64Main.dependsOn(this )
34
- iosSimulatorArm64Main.dependsOn(this )
35
- }
39
+ val iosMain by getting
36
40
val iosX64Test by getting
37
41
val iosArm64Test by getting
38
42
val iosSimulatorArm64Test by getting
39
- val iosTest by creating {
40
- dependsOn(commonTest)
41
- iosX64Test.dependsOn(this )
42
- iosArm64Test.dependsOn(this )
43
- iosSimulatorArm64Test.dependsOn(this )
44
- }
43
+ val iosTest by getting
45
44
}
46
45
}
47
46
@@ -50,6 +49,10 @@ android {
50
49
sourceSets[" main" ].manifest.srcFile(" src/androidMain/AndroidManifest.xml" )
51
50
defaultConfig {
52
51
minSdk = 21
53
- targetSdk = 32
54
52
}
53
+ compileOptions {
54
+ sourceCompatibility = JavaVersion .VERSION_1_8
55
+ targetCompatibility = JavaVersion .VERSION_1_8
56
+ }
57
+ namespace = " com.jetbrains.handson.android"
55
58
}
0 commit comments