Skip to content

[Docs] Flag: Swift SDK rewritten in pure Swift (powersync-swift#130)#419

Closed
mintlify[bot] wants to merge 1 commit intomainfrom
mintlify/swift-pure-rewrite-flag-1777881074
Closed

[Docs] Flag: Swift SDK rewritten in pure Swift (powersync-swift#130)#419
mintlify[bot] wants to merge 1 commit intomainfrom
mintlify/swift-pure-rewrite-flag-1777881074

Conversation

@mintlify
Copy link
Copy Markdown
Contributor

@mintlify mintlify Bot commented May 4, 2026

Auto-generated docs-update tracker. The Mintlify agent could not create a GitHub Issue (write API blocked outside the provided tooling), so this PR adds a tracker file under .github/docs-update-tracker/ instead. Please convert to a real Issue or address directly, then close this PR / delete the file.

Suggested assignees: @benitav, @simolus3

What shipped: The PowerSync Swift SDK has been fully rewritten in native Swift, removing its internal dependency on the PowerSync Kotlin SDK and SKIE. The SDK now implements SqlCursor, the connection pool, sync client, schema serialization, and CRUD transactions directly in Swift using CSQLite, and loads the core extension via a direct function call instead of sqlite3_load_extension.

Why this needs docs: Major architecture change with user-facing breaking changes (CrudBatch, CrudEntry, and CrudTransaction are now concrete structs instead of protocols, internal withSession API removed, new typed opDataTyped / previousValuesTyped APIs on CrudEntry). It also directly contradicts current docs which describe the Swift SDK as being built on top of the Kotlin SDK via SKIE.

Likely affected pages/sections:

  • client-sdks/reference/swift.mdx — "Kotlin -> Swift SDK" section (lines ~28-30) is now incorrect; remove or rewrite to reflect pure-Swift implementation.
  • client-sdks/reference/swift.mdx — review CRUD samples (CrudBatch / CrudTransaction / CrudEntry) for the protocol-to-struct change; mention new typed accessors opDataTyped and previousValuesTyped.
  • client-sdks/usage-examples.mdx — Swift CRUD upload example (~line 621, getCrudBatch()) should be reviewed.
  • intro/setup-guide.mdx — Swift backend connector example (~line 943, getNextCrudTransaction()) should be reviewed.
  • handling-writes/custom-conflict-resolution.mdx — verify Swift-specific CrudEntry snippets still apply with typed accessors.
  • Any prerequisites/installation notes mentioning the Kotlin XCFramework dependency should be removed.

Source PR: powersync-ja/powersync-swift#130

@mintlify
Copy link
Copy Markdown
Contributor Author

mintlify Bot commented May 4, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
powersync 🟢 Ready View Preview May 4, 2026, 7:53 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant