Skip to content

Commit 8760b02

Browse files
authored
Bump uniffi-bindgen-go version to fix Go 1.24 issue (#70)
1 parent a4c2da5 commit 8760b02

File tree

10 files changed

+1901
-1273
lines changed

10 files changed

+1901
-1273
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ edition = "2021"
99
hex = "0.4.3"
1010
rand_core = { "version" = "0.6.4", features = ["getrandom"] }
1111
getrandom = { version = "0.2", features = ["js"] }
12-
uniffi = "0.25.0"
12+
uniffi = "0.28.3"
1313
wasm-bindgen = "0.2.87"
1414

1515
# The `console_error_panic_hook` crate provides better debugging of panics by
@@ -29,7 +29,7 @@ bitcoin-bech32 = "0.13.0"
2929
default = ["uniffi/cli"]
3030

3131
[build-dependencies]
32-
uniffi = { version = "0.25.0", features = [ "build" ] }
32+
uniffi = { version = "0.28.3", features = [ "build" ] }
3333

3434
[lib]
3535
crate-type = ["cdylib", "staticlib"]

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,18 @@ code-gen-kotlin:
2222
sed -i '' 's/package uniffi.lightspark_crypto/package com.lightspark.sdk.crypto.internal/g' lightspark-crypto-kotlin/uniffi/lightspark_crypto/lightspark_crypto.kt
2323

2424
build-darwin-amd64:
25-
# FIXME(mhr): This currently doesn't work because of the compiler flags defined below for Android, so just noop. If you comment out the CC= line instead, this will work.
26-
# cargo build --profile release-smaller --target x86_64-apple-darwin
25+
# Unset Android-specific environment variables for macOS build
26+
unset CC AR CFLAGS && \
27+
cargo build --profile release-smaller --target x86_64-apple-darwin
2728

2829
build-darwin-arm64:
29-
# FIXME(mhr): This currently doesn't work because of the compiler flags defined below for Android, so just noop. If you comment out the CC= line instead, this will work.
30-
# cargo build --profile release-smaller --target aarch64-apple-darwin
30+
# Unset Android-specific environment variables for macOS build
31+
unset CC AR CFLAGS && \
32+
cargo build --profile release-smaller --target aarch64-apple-darwin
3133

3234
code-gen-go:
3335
mkdir -p lightspark-crypto-go/internal
34-
cargo install uniffi-bindgen-go --git https://github.com/NordSecurity/uniffi-bindgen-go --tag v0.2.1+v0.25.0
36+
cargo install uniffi-bindgen-go --git https://github.com/NordSecurity/uniffi-bindgen-go --tag v0.3.0+v0.28.3
3537
uniffi-bindgen-go src/lightspark_crypto.udl --out-dir lightspark-crypto-go
3638
mv lightspark-crypto-go/lightspark_crypto/* lightspark-crypto-go/internal
3739
sed -i '' 's/package lightspark_crypto/package internal/g' lightspark-crypto-go/internal/lightspark_crypto.go

lightspark-crypto-go/internal/lightspark_crypto.c

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)