Skip to content

Commit 58c2746

Browse files
committed
Prepare 0.4.14 release
1 parent 96a1de4 commit 58c2746

9 files changed

Lines changed: 47 additions & 12 deletions

File tree

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ inherits = "release"
2828
inherits = "wasm"
2929

3030
[workspace.package]
31-
version = "0.4.13"
31+
version = "0.4.14"
3232
edition = "2024"
3333
authors = ["JourneyApps"]
3434
keywords = ["sqlite", "powersync"]

android/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugins {
1212
}
1313

1414
group = "com.powersync"
15-
version = "0.4.13"
15+
version = "0.4.14"
1616
description = "PowerSync Core SQLite Extension"
1717

1818
val localRepo = uri("build/repository/")

android/src/prefab/prefab.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"name": "powersync_sqlite_core",
33
"schema_version": 2,
44
"dependencies": [],
5-
"version": "0.4.13"
5+
"version": "0.4.14"
66
}

crates/core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ name = "powersync_core"
1515
crate-type = ["rlib"]
1616

1717
[dependencies]
18-
powersync_sqlite_nostd = { version = "=0.4.13", path = "../sqlite_nostd" }
18+
powersync_sqlite_nostd = { version = "=0.4.14", path = "../sqlite_nostd" }
1919
bytes = { version = "1.4", default-features = false }
2020
num-traits = { version = "0.2.15", default-features = false }
2121
num-derive = "0.3"
File renamed without changes.

docs/built_libraries.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Built core extension libraries
2+
3+
This document describes how builds of the PowerSync SQLite core extension are consumed in different PowerSync SDKs.
4+
5+
## Native
6+
7+
- [Native SDK](https://github.com/powersync-ja/powersync-native): Compiled from source (as a regular Rust dependency).
8+
- [Dart SDK](https://github.com/powersync-ja/powersync.dart/): Uses build hooks to link dynamic libraries attached to releases.
9+
- [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).
10+
- [Kotlin SDK](https://github.com/powersync-ja/powersync-kotlin):
11+
- On Android, we use cargo-ndk builds published to Maven Central (see the `android/` directory for more).
12+
- On the JVM, we download dynamic libraries attached to releases.
13+
- For Kotlin/Native:
14+
- Older versions only support Apple targets and expect a framework path to be present. Users are responsible for bundling the extension,
15+
we suggest a SwiftPM dependency through the intermediate repository.
16+
- We are migrating towards a setup where we can also support Linux and Windows by linking the core extension staticaly through cinterops.
17+
- [dotnet SDK](https://github.com/powersync-ja/powersync-dotnet):
18+
- On maui/Android, we download the Maven Central asset and extract individual libraries.
19+
- On maui/iOS and maui/macCatalyst: We use the XCFramework downloaded directly from GitHub releases.
20+
- On Desktop platforms, we download a dynamic library attached to releases.
21+
- [JavaScript SDKs](https://github.com/powersync-ja/powersync-js):
22+
- Capacitor: Same as React Native.
23+
- Node: Downloads dynamic libraries attached to releases. We also upload these libraries to npm as part of the package to avoid postinstall scripts.
24+
- React Native:
25+
- Android: Gradle dependency to builds published to Maven Central.
26+
- iOS: We use a CocoaPod dependency downloading the XCFramework.
27+
- Tauri: Depends on the native SDK, building the core extension from source as part of the app.
28+
29+
## Web
30+
31+
- Dart: We build the core extension as a static [WebAssembly object file](https://github.com/WebAssembly/tool-conventions/blob/main/Linking.md).
32+
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.
33+
- JavaScript: We have a fork of `wa-sqlite` that statically links the core extension object file and exports `powersync_init_static`.
34+
The web SDK calls `powersync_init_static` before connections are opened.
35+
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.

powersync-sqlite-core.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'powersync-sqlite-core'
3-
s.version = '0.4.13'
3+
s.version = '0.4.14'
44
s.summary = 'PowerSync SQLite Extension'
55
s.description = <<-DESC
66
PowerSync extension for SQLite.

tool/build_xcframework.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ TARGETS=(
2929
aarch64-apple-tvos-sim
3030
x86_64-apple-tvos
3131
)
32-
VERSION=0.4.13
32+
VERSION=0.4.14
3333

3434
function generatePlist() {
3535
min_os_version=0

0 commit comments

Comments
 (0)