Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ let package = Package(
products: [
.library(
name: packageName,
targets: [packageName]
targets: ["\(packageName)Wrapper"]
),
Comment on lines 12 to 15
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The library product now exposes only the PowerSyncSQLiteCoreWrapper target. This changes the set of modules clients can import: import PowerSyncSQLiteCore will no longer be satisfied by this product (only PowerSyncSQLiteCoreWrapper is exported), which is a breaking change for any consumers that import the module directly. Consider restructuring so the exported module name remains PowerSyncSQLiteCore (e.g., make the wrapper target the one named PowerSyncSQLiteCore and rename the binary target, with the wrapper re-exporting/forwarding as needed), or otherwise ensure clients can still depend on the product and import the same module as before.

Copilot uses AI. Check for mistakes.
],
targets: [
.target(
name: "\(packageName)Wrapper",
dependencies: [.target(name: packageName)],
path: "Sources/PowerSyncSQLiteCoreWrapper",
publicHeadersPath: "include"
),
.binaryTarget(
name: packageName,
url: "https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0.4.12/powersync-sqlite-core.xcframework.zip",
checksum: "d5e334814337a64fb895f67ef8ee3916ef5a51e9d7e090e3491f58e20ba2cb4e"
)
),
]
)
1 change: 1 addition & 0 deletions Sources/PowerSyncSQLiteCoreWrapper/dummy.m
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// This file exists only so SPM has a valid source target.
2 changes: 2 additions & 0 deletions Sources/PowerSyncSQLiteCoreWrapper/include/dummy.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// This header exists only so SPM has a valid source target.
// The actual API is provided by the PowerSyncSQLiteCore xcframework.
Loading