-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
44 lines (38 loc) · 1.12 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
plugins {
kotlin("multiplatform") version "1.4.30"
`maven-publish`
}
group = "org.demo.crypto"
version = "1.0"
repositories {
mavenCentral()
}
kotlin {
jvm()
ios {
val platform = when (name) {
"iosX64" -> "iphonesimulator"
"iosArm64" -> "iphoneos"
else -> error("Unsupported target $name")
}
compilations.getByName("main") {
cinterops.create("SwiftChachaPoly") {
val interopTask = tasks[interopProcessingTaskName]
interopTask.dependsOn(":SwiftChachaPoly:build${platform.capitalize()}")
includeDirs.headerFilterOnly("$rootDir/SwiftChachaPoly/build/Release-$platform/include")
}
}
}
sourceSets {
getByName("commonTest").dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
getByName("jvmTest").dependencies {
implementation(kotlin("test-junit"))
}
all {
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
}
}
}