/
build.gradle.kts
42 lines (36 loc) · 960 Bytes
/
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
import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
plugins {
kotlin("multiplatform") version "1.9.10"
}
repositories {
mavenCentral()
}
kotlin {
val xcf = XCFramework("KotlinLogo")
val targets = listOf(macosX64(), macosArm64())
targets.forEach { target ->
target.binaries.framework {
binaryOption("bundleId", "co.zsmb.KotlinLogos")
baseName = "KotlinLogo"
isStatic = true
xcf.add(this)
}
}
sourceSets {
val nativeMain by creating {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
}
}
val macosX64Main by getting {
dependsOn(nativeMain)
}
val macosArm64Main by getting {
dependsOn(nativeMain)
}
}
}
tasks.wrapper {
gradleVersion = "8.1.1"
distributionType = Wrapper.DistributionType.ALL
}