Skip to content
Merged
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
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ inherits = "release"
inherits = "wasm"

[workspace.package]
version = "0.4.13"
version = "0.4.14"
edition = "2024"
authors = ["JourneyApps"]
keywords = ["sqlite", "powersync"]
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
}

group = "com.powersync"
version = "0.4.13"
version = "0.4.14"
description = "PowerSync Core SQLite Extension"

val localRepo = uri("build/repository/")
Expand Down
2 changes: 1 addition & 1 deletion android/src/prefab/prefab.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"name": "powersync_sqlite_core",
"schema_version": 2,
"dependencies": [],
"version": "0.4.13"
"version": "0.4.14"
}
2 changes: 1 addition & 1 deletion crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ name = "powersync_core"
crate-type = ["rlib"]

[dependencies]
powersync_sqlite_nostd = { version = "=0.4.13", path = "../sqlite_nostd" }
powersync_sqlite_nostd = { version = "=0.4.14", path = "../sqlite_nostd" }
bytes = { version = "1.4", default-features = false }
num-traits = { version = "0.2.15", default-features = false }
num-derive = "0.3"
Expand Down
File renamed without changes.
35 changes: 35 additions & 0 deletions docs/built_libraries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Built core extension libraries

This document describes how builds of the PowerSync SQLite core extension are consumed in different PowerSync SDKs.

## Native

- [Native SDK](https://github.com/powersync-ja/powersync-native): Compiled from source (as a regular Rust dependency).
- [Dart SDK](https://github.com/powersync-ja/powersync.dart/): Uses build hooks to link dynamic libraries attached to releases.
- [Swift SDK](https://github.com/powersync-ja/powersync-swift): Uses an XCFramework via SwiftPM and this [intermediate repository](https://github.com/powersync-ja/powersync-sqlite-core-swift).
- [Kotlin SDK](https://github.com/powersync-ja/powersync-kotlin):
- On Android, we use cargo-ndk builds published to Maven Central (see the `android/` directory for more).
- On the JVM, we download dynamic libraries attached to releases.
- For Kotlin/Native:
- Older versions only support Apple targets and expect a framework path to be present. Users are responsible for bundling the extension,
we suggest a SwiftPM dependency through the intermediate repository.
- We are migrating towards a setup where we can also support Linux and Windows by linking the core extension statically through cinterops.
- [dotnet SDK](https://github.com/powersync-ja/powersync-dotnet):
- On maui/Android, we download the Maven Central asset and extract individual libraries.
- On maui/iOS and maui/macCatalyst: We use the XCFramework downloaded directly from GitHub releases.
- On Desktop platforms, we download a dynamic library attached to releases.
- [JavaScript SDKs](https://github.com/powersync-ja/powersync-js):
- Capacitor: Same as React Native.
- Node: Downloads dynamic libraries attached to releases. We also upload these libraries to npm as part of the package to avoid postinstall scripts.
- React Native:
- Android: Gradle dependency to builds published to Maven Central.
- iOS: We use a CocoaPod dependency downloading the XCFramework.
- Tauri: Depends on the native SDK, building the core extension from source as part of the app.

## Web

- Dart: We build the core extension as a static [WebAssembly object file](https://github.com/WebAssembly/tool-conventions/blob/main/Linking.md).
A script in the Dart SDK builds `sqlite3.wasm` and `sqlite3mc.wasm` by linking this file and patching `sqlite3_os_init` to auto-load the extension.
- JavaScript: We have a fork of `wa-sqlite` that statically links the core extension object file and exports `powersync_init_static`.
The web SDK calls `powersync_init_static` before connections are opened.
We also build the core extension for [Emscripten dynamic linking](https://emscripten.org/docs/compiling/Dynamic-Linking.html), but this mode is not currently used.
2 changes: 1 addition & 1 deletion powersync-sqlite-core.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'powersync-sqlite-core'
s.version = '0.4.13'
s.version = '0.4.14'
s.summary = 'PowerSync SQLite Extension'
s.description = <<-DESC
PowerSync extension for SQLite.
Expand Down
2 changes: 1 addition & 1 deletion tool/build_xcframework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ TARGETS=(
aarch64-apple-tvos-sim
x86_64-apple-tvos
)
VERSION=0.4.13
VERSION=0.4.14

function generatePlist() {
min_os_version=0
Expand Down
Loading