-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
55 lines (42 loc) · 1.2 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import org.jetbrains.kotlin.gradle.tasks.FatFrameworkTask
plugins {
kotlin("multiplatform") version "1.3.60"
id("guru.stefma.kotlin.multiplatform.publish")
}
val frameworkName = "SomeFrameworkName"
version = "1.0.1"
group = "guru.stefma.kotlin.multiplatform"
repositories {
mavenCentral()
}
kotlin {
jvm()
iosArm64 {
binaries.framework {
baseName = frameworkName
}
}
iosX64 {
binaries.framework {
baseName = frameworkName
}
}
macosX64()
}
val jvmMainImplementation by configurations
val jvmTestImplementation by configurations
dependencies {
commonMainImplementation(kotlin("stdlib-common"))
commonTestImplementation(kotlin("test-common"))
commonTestImplementation(kotlin("test-annotations-common"))
jvmMainImplementation(kotlin("stdlib-jdk8"))
jvmTestImplementation(kotlin("test:1.3.60"))
jvmTestImplementation(kotlin("test-junit:1.3.60"))
}
val fatFrameworkTask = tasks.register("releaseFatFramework", FatFrameworkTask::class) {
baseName = frameworkName
from(
kotlin.iosArm64().binaries.getFramework("RELEASE"),
kotlin.iosX64().binaries.getFramework("RELEASE")
)
}