From d57b394581e8897d0cd910e86877254a525cc34f Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Fri, 26 Jan 2024 14:47:58 +0100 Subject: [PATCH 1/2] Cut v0.2.1 release --- CHANGELOG.md | 19 +++++++++++++++++++ Cargo.toml | 2 +- Package.swift | 2 +- .../kotlin/ldk-node-android/gradle.properties | 2 +- .../kotlin/ldk-node-jvm/gradle.properties | 2 +- bindings/python/pyproject.toml | 2 +- 6 files changed, 24 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66d2f82de..e92a7c9e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,22 @@ +# 0.2.1 - Jan 26, 2024 + +This is a bugfix release bumping the used LDK and BDK dependencies to the +latest stable versions. + +## Bug Fixes +- Swift bindings now can be built on macOS again. + +## Compatibility Notes +- LDK has been updated to version 0.0.121 (#214, #229) +- BDK has been updated to version 0.29.0 (#229) + +In total, this release features 30 files changed, 1195 insertions, 1238 +deletions in 26 commits from 3 authors, in alphabetical order: + +- Elias Rohrer +- GoodDaisy +- Gursharan Singh + # 0.2.0 - Dec 13, 2023 ## Feature and API updates diff --git a/Cargo.toml b/Cargo.toml index 4c676e213..aadf19fa9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ldk-node" -version = "0.2.0" +version = "0.2.1" authors = ["Elias Rohrer "] homepage = "https://lightningdevkit.org/" license = "MIT OR Apache-2.0" diff --git a/Package.swift b/Package.swift index 4a8e64498..d69660ea8 100644 --- a/Package.swift +++ b/Package.swift @@ -3,7 +3,7 @@ import PackageDescription -let tag = "v0.2.0" +let tag = "v0.2.1" let checksum = "8b03d5e8c4c415e6143d834a24037fc7223d9da712941467777668a42ee93ab1" let url = "https://github.com/lightningdevkit/ldk-node/releases/download/\(tag)/LDKNodeFFI.xcframework.zip" diff --git a/bindings/kotlin/ldk-node-android/gradle.properties b/bindings/kotlin/ldk-node-android/gradle.properties index d4085289e..f4f8cd571 100644 --- a/bindings/kotlin/ldk-node-android/gradle.properties +++ b/bindings/kotlin/ldk-node-android/gradle.properties @@ -2,4 +2,4 @@ org.gradle.jvmargs=-Xmx1536m android.useAndroidX=true android.enableJetifier=true kotlin.code.style=official -libraryVersion=0.2.0 +libraryVersion=0.2.1 diff --git a/bindings/kotlin/ldk-node-jvm/gradle.properties b/bindings/kotlin/ldk-node-jvm/gradle.properties index b2cfd4dd4..46f202595 100644 --- a/bindings/kotlin/ldk-node-jvm/gradle.properties +++ b/bindings/kotlin/ldk-node-jvm/gradle.properties @@ -1,3 +1,3 @@ org.gradle.jvmargs=-Xmx1536m kotlin.code.style=official -libraryVersion=0.2.0 +libraryVersion=0.2.1 diff --git a/bindings/python/pyproject.toml b/bindings/python/pyproject.toml index 030ca01a6..13ad46ce6 100644 --- a/bindings/python/pyproject.toml +++ b/bindings/python/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ldk_node" -version = "0.2" +version = "0.2.1" authors = [ { name="Elias Rohrer", email="dev@tnull.de" }, ] From 1fe855ad34b29d88b6519ba2719ea98153afcded Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Fri, 26 Jan 2024 14:56:35 +0100 Subject: [PATCH 2/2] Update Swift files for v0.2.1 ... including a hotfix for macOS builds. --- Package.swift | 2 +- bindings/swift/Sources/LDKNode/LDKNode.swift | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index d69660ea8..c7d203713 100644 --- a/Package.swift +++ b/Package.swift @@ -4,7 +4,7 @@ import PackageDescription let tag = "v0.2.1" -let checksum = "8b03d5e8c4c415e6143d834a24037fc7223d9da712941467777668a42ee93ab1" +let checksum = "cca3d5f380c3c216c22ac892cb04a792f3982730e570df71d824462f14c1350e" let url = "https://github.com/lightningdevkit/ldk-node/releases/download/\(tag)/LDKNodeFFI.xcframework.zip" let package = Package( diff --git a/bindings/swift/Sources/LDKNode/LDKNode.swift b/bindings/swift/Sources/LDKNode/LDKNode.swift index 226f14e32..18551648c 100644 --- a/bindings/swift/Sources/LDKNode/LDKNode.swift +++ b/bindings/swift/Sources/LDKNode/LDKNode.swift @@ -1,6 +1,7 @@ // This file was autogenerated by some hot garbage in the `uniffi` crate. // Trust me, you don't want to mess with it! import Foundation +import SystemConfiguration // Depending on the consumer's build setup, the low-level FFI code // might be in a separate module, or it might be compiled inline into @@ -2994,6 +2995,7 @@ public func FfiConverterTypeAddress_lower(_ value: Address) -> RustBuffer { } + /** * Typealias from the type name used in the UDL file to the builtin type. This * is needed because the UDL type name is used in function/method signatures. @@ -3027,6 +3029,7 @@ public func FfiConverterTypeBolt11Invoice_lower(_ value: Bolt11Invoice) -> RustB } + /** * Typealias from the type name used in the UDL file to the builtin type. This * is needed because the UDL type name is used in function/method signatures. @@ -3060,6 +3063,7 @@ public func FfiConverterTypeChannelId_lower(_ value: ChannelId) -> RustBuffer { } + /** * Typealias from the type name used in the UDL file to the builtin type. This * is needed because the UDL type name is used in function/method signatures. @@ -3093,6 +3097,7 @@ public func FfiConverterTypeMnemonic_lower(_ value: Mnemonic) -> RustBuffer { } + /** * Typealias from the type name used in the UDL file to the builtin type. This * is needed because the UDL type name is used in function/method signatures. @@ -3126,6 +3131,7 @@ public func FfiConverterTypePaymentHash_lower(_ value: PaymentHash) -> RustBuffe } + /** * Typealias from the type name used in the UDL file to the builtin type. This * is needed because the UDL type name is used in function/method signatures. @@ -3159,6 +3165,7 @@ public func FfiConverterTypePaymentPreimage_lower(_ value: PaymentPreimage) -> R } + /** * Typealias from the type name used in the UDL file to the builtin type. This * is needed because the UDL type name is used in function/method signatures. @@ -3192,6 +3199,7 @@ public func FfiConverterTypePaymentSecret_lower(_ value: PaymentSecret) -> RustB } + /** * Typealias from the type name used in the UDL file to the builtin type. This * is needed because the UDL type name is used in function/method signatures. @@ -3225,6 +3233,7 @@ public func FfiConverterTypePublicKey_lower(_ value: PublicKey) -> RustBuffer { } + /** * Typealias from the type name used in the UDL file to the builtin type. This * is needed because the UDL type name is used in function/method signatures. @@ -3258,6 +3267,7 @@ public func FfiConverterTypeSocketAddress_lower(_ value: SocketAddress) -> RustB } + /** * Typealias from the type name used in the UDL file to the builtin type. This * is needed because the UDL type name is used in function/method signatures. @@ -3291,6 +3301,7 @@ public func FfiConverterTypeTxid_lower(_ value: Txid) -> RustBuffer { } + /** * Typealias from the type name used in the UDL file to the builtin type. This * is needed because the UDL type name is used in function/method signatures. @@ -3323,6 +3334,7 @@ public func FfiConverterTypeUserChannelId_lower(_ value: UserChannelId) -> RustB return FfiConverterTypeUserChannelId.lower(value) } + public func generateEntropyMnemonic() -> Mnemonic { return try! FfiConverterTypeMnemonic.lift( try! rustCall() { @@ -3539,4 +3551,4 @@ private func uniffiEnsureInitialized() { case .apiChecksumMismatch: fatalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project") } -} \ No newline at end of file +}