-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle.kts
34 lines (31 loc) · 909 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
plugins {
@Suppress("DSL_SCOPE_VIOLATION")
alias(libs.plugins.kotlin.multiplatform)
`nsexception-kt-publish`
}
kotlin {
explicitApi()
jvmToolchain(11)
listOf(
macosX64(), macosArm64(),
iosArm64(), iosX64(), iosSimulatorArm64(),
watchosArm32(), watchosArm64(), watchosX64(), watchosSimulatorArm64(), watchosDeviceArm64(),
tvosArm64(), tvosX64(), tvosSimulatorArm64()
).forEach {
it.compilations.getByName("main") {
cinterops.create("NSExceptionKtCoreObjC") {
includeDirs("$projectDir/../NSExceptionKtCoreObjC")
}
}
}
sourceSets {
all {
languageSettings.optIn("com.rickclephas.kmp.nsexceptionkt.core.InternalNSExceptionKtApi")
}
commonTest {
dependencies {
implementation(kotlin("test"))
}
}
}
}