-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathbuild.gradle.kts
40 lines (36 loc) · 1.02 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
import com.squareup.workflow1.buildsrc.iosWithSimulatorArm64
plugins {
id("kotlin-multiplatform")
id("published")
// TODO add android target so we can auto-save Parcelables from SaveableStateRegistry.
// id("com.android.library")
id("org.jetbrains.compose") version "1.6.11"
}
kotlin {
val targets = project.findProperty("workflow.targets") ?: "kmp"
if (targets == "kmp" || targets == "ios") {
iosWithSimulatorArm64()
}
if (targets == "kmp" || targets == "jvm") {
jvm {}
}
if (targets == "kmp" || targets == "js") {
js(IR) { browser() }
}
// if (targets == "kmp" || targets == "android") {
// androidTarget()
// }
sourceSets {
getByName("commonMain") {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
}
}
}
}
dependencies {
commonMainApi(project(":workflow-core"))
commonMainApi(libs.kotlinx.coroutines.core)
commonTestImplementation(libs.kotlinx.coroutines.test.common)
commonTestImplementation(libs.kotlin.test.jdk)
}