File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed
plugins/sonatype/src/main/kotlin/com/powersync/plugins/utils Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ kotlin {
16
16
iosSimulatorArm64(),
17
17
macosArm64(),
18
18
macosX64(),
19
+ watchosDeviceArm64(),
20
+ watchosArm32(),
21
+ watchosArm64(),
22
+ watchosSimulatorArm64(),
23
+ watchosX64(),
19
24
).forEach {
20
25
it.binaries.framework {
21
26
baseName = " PowerSyncKotlin"
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ plugins {
12
12
}
13
13
14
14
kotlin {
15
- powersyncTargets()
15
+ // The Supabase KMP project does not support arm64 watchOS builds
16
+ powersyncTargets(watchOS = false )
16
17
targets.withType<KotlinNativeTarget > {
17
18
compilations.named(" main" ) {
18
19
compileTaskProvider {
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ public fun KotlinTargetContainerWithPresetFunctions.powersyncTargets(
8
8
native : Boolean = true,
9
9
jvm : Boolean = true,
10
10
includeTargetsWithoutComposeSupport : Boolean = true,
11
+ watchOS : Boolean = true,
11
12
) {
12
13
if (jvm) {
13
14
androidTarget {
@@ -37,6 +38,15 @@ public fun KotlinTargetContainerWithPresetFunctions.powersyncTargets(
37
38
if (includeTargetsWithoutComposeSupport) {
38
39
macosX64()
39
40
macosArm64()
41
+
42
+ if (watchOS) {
43
+ watchosDeviceArm64() // aarch64-apple-watchos
44
+ watchosArm32() // armv7k-apple-watchos
45
+ watchosArm64() // arm64_32-apple-watchos
46
+
47
+ watchosSimulatorArm64() // aarch64-apple-watchos-simulator
48
+ watchosX64() // x86_64-apple-watchos-simulator
49
+ }
40
50
}
41
51
}
42
52
}
You can’t perform that action at this time.
0 commit comments