Skip to content

Commit 0a98811

Browse files
authored
Merge pull request #7 from piashcse/fixing-all-platform-support
feat: Expand multiplatform support
2 parents c521e8d + c86e506 commit 0a98811

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

zodkmp/build.gradle.kts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,50 @@ kotlin {
1313
}
1414
}
1515

16+
jvm("desktop")
17+
18+
js {
19+
browser()
20+
nodejs()
21+
}
22+
23+
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl::class)
24+
wasmJs {
25+
browser()
26+
}
27+
1628
listOf(
1729
iosArm64(),
30+
iosX64(), // Adding iosX64 target
1831
iosSimulatorArm64()
1932
).forEach { iosTarget ->
2033
iosTarget.binaries.framework {
2134
baseName = "ZodKmp"
2235
isStatic = true
2336
}
2437
}
38+
39+
// Add macOS targets
40+
macosX64()
41+
macosArm64()
42+
43+
// Add tvOS targets
44+
tvosArm64()
45+
tvosX64()
46+
tvosSimulatorArm64()
47+
48+
// Add watchOS targets
49+
watchosArm32()
50+
watchosArm64()
51+
watchosX64()
52+
watchosSimulatorArm64()
53+
54+
// Add Linux targets
55+
linuxX64()
56+
linuxArm64()
57+
58+
// Add Windows targets
59+
mingwX64()
2560

2661
sourceSets {
2762
commonMain.dependencies {

0 commit comments

Comments
 (0)