Skip to content

Commit 5721b55

Browse files
committed
Prepare 0.4.9 release
1 parent 3578975 commit 5721b55

File tree

9 files changed

+29
-17
lines changed

9 files changed

+29
-17
lines changed

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.8"
31+
version = "0.4.9"
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.8"
15+
version = "0.4.9"
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.8"
5+
"version": "0.4.9"
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.8", path = "../sqlite_nostd" }
18+
powersync_sqlite_nostd = { version = "=0.4.9", 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"

crates/core/build.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
use std::process::Command;
22
fn main() {
3-
// note: add error checking yourself.
4-
let output = Command::new("git")
3+
let mut git_hash = Command::new("git")
54
.args(&["rev-parse", "HEAD"])
65
.output()
7-
.unwrap();
8-
let git_hash = String::from_utf8(output.stdout).unwrap();
6+
.ok()
7+
.and_then(|output| String::from_utf8(output.stdout).ok())
8+
.unwrap_or_default();
9+
10+
if git_hash.is_empty() {
11+
// We can't compute the git hash for versions pushed to crates.io. That's fine, we'll use a
12+
// separate designator for that instead. The designator needs to be 8 chars in length since
13+
// that's the substring used in version numbers.
14+
git_hash = "cratesio".to_owned();
15+
}
16+
917
println!("cargo:rustc-env=GIT_HASH={}", git_hash);
1018
}

crates/core/src/constants.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ pub const MIN_SQLITE_VERSION_NUMBER: c_int = 3044000;
1212
pub const SUBTYPE_JSON: u32 = 'J' as u32;
1313

1414
pub fn short_git_hash() -> &'static str {
15-
&FULL_GIT_HASH[..8]
15+
if FULL_GIT_HASH.len() >= 8 {
16+
&FULL_GIT_HASH[..8]
17+
} else {
18+
"no-git-unknown"
19+
}
1620
}

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.8'
3+
s.version = '0.4.9'
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
@@ -25,7 +25,7 @@ TARGETS=(
2525
aarch64-apple-tvos-sim
2626
x86_64-apple-tvos
2727
)
28-
VERSION=0.4.8
28+
VERSION=0.4.9
2929

3030
function generatePlist() {
3131
min_os_version=0

0 commit comments

Comments
 (0)