Skip to content

Commit d0c66e7

Browse files
committed
chore: update bindings
1 parent c1649e5 commit d0c66e7

6 files changed

Lines changed: 8 additions & 3 deletions

File tree

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import PackageDescription
55

66
let tag = "v0.7.0-rc.31"
7-
let checksum = "66543b5e89f3c5a1ebb72dea0db458d6ec402e4b98f551c2167ded6ef4a0b831"
7+
let checksum = "a8884844026fe082fd99dd6702a625429880a1c0c12741c989da930dd7bfeba3"
88
let url = "https://github.com/synonymdev/ldk-node/releases/download/\(tag)/LDKNodeFFI.xcframework.zip"
99

1010
let package = Package(
Binary file not shown.
Binary file not shown.
Binary file not shown.

scripts/uniffi_bindgen_generate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export CMAKE_IOS_DEPLOYMENT_TARGET=$IPHONEOS_DEPLOYMENT_TARGET
1313
unset SDKROOT
1414
unset BINDGEN_EXTRA_CLANG_ARGS
1515

16-
source ./scripts/uniffi_bindgen_generate_python.sh || exit 1
1716
source ./scripts/uniffi_bindgen_generate_kotlin.sh || exit 1
18-
source ./scripts/uniffi_bindgen_generate_kotlin_android.sh || exit 1
17+
source ./scripts/uniffi_bindgen_generate_python.sh || exit 1
1918
source ./scripts/uniffi_bindgen_generate_swift.sh || exit 1
19+
source ./scripts/uniffi_bindgen_generate_kotlin_android.sh || exit 1

scripts/uniffi_bindgen_generate_kotlin_android.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ cargo ndk \
6363
-t x86_64 \
6464
build --profile release-smaller --features uniffi || exit 1
6565

66+
# Clean up exported flags so they don't leak into subsequent scripts
67+
# (e.g. the -z linker flags are Linux-only and break macOS builds)
68+
unset RUSTFLAGS
69+
unset CFLAGS
70+
6671
# Generate Kotlin bindings
6772
echo "Generating Kotlin bindings..."
6873
$UNIFFI_BINDGEN_BIN bindings/ldk_node.udl --lib-file $TARGET_DIR/aarch64-linux-android/release-smaller/libldk_node.so --config uniffi-android.toml -o "$ANDROID_LIB_DIR/lib/src" || exit 1

0 commit comments

Comments
 (0)