From 36eb3d0d8c51d96b197d80b63560b832f8073543 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Wed, 18 Dec 2024 22:16:58 -0800 Subject: [PATCH] bump all the bindings --- LibXMTP.podspec | 4 ++-- Package.swift | 4 ++-- Sources/LibXMTP/libxmtp-version.txt | 4 ++-- Sources/LibXMTP/xmtpv3.swift | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/LibXMTP.podspec b/LibXMTP.podspec index 25007cf..78f465c 100644 --- a/LibXMTP.podspec +++ b/LibXMTP.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'LibXMTP' - s.version = '3.0.13' + s.version = '3.0.14' s.summary = 'XMTP shared Rust code that powers cross-platform SDKs' s.homepage = 'https://github.com/xmtp/libxmtp-swift' @@ -10,7 +10,7 @@ Pod::Spec.new do |s| s.platform = :ios, '14.0', :macos, '11.0' s.swift_version = '5.3' - s.source = { :http => "https://github.com/xmtp/libxmtp/releases/download/swift-bindings-b5f3237/LibXMTPSwiftFFI.zip", :type => :zip } + s.source = { :http => "https://github.com/xmtp/libxmtp/releases/download/swift-bindings-eccce06/LibXMTPSwiftFFI.zip", :type => :zip } s.vendored_frameworks = 'LibXMTPSwiftFFI.xcframework' s.source_files = 'Sources/LibXMTP/**/*' end diff --git a/Package.swift b/Package.swift index 27ce1e2..380c392 100644 --- a/Package.swift +++ b/Package.swift @@ -27,8 +27,8 @@ let package = Package( ), .binaryTarget( name: "LibXMTPSwiftFFI", - url: "https://github.com/xmtp/libxmtp/releases/download/swift-bindings-b5f3237/LibXMTPSwiftFFI.zip", - checksum: "37e0e19de8b2226f43efbf1e7b86a48753ad860270552ad297d1604fabe38224" + url: "https://github.com/xmtp/libxmtp/releases/download/swift-bindings-eccce06/LibXMTPSwiftFFI.zip", + checksum: "50aa2f37ac40182d7c6ea1847a6a89c9eca72275552d932b11f022a2cd2882cd" ), .testTarget(name: "LibXMTPTests", dependencies: ["LibXMTP"]), ] diff --git a/Sources/LibXMTP/libxmtp-version.txt b/Sources/LibXMTP/libxmtp-version.txt index b9f8cd5..153a32f 100644 --- a/Sources/LibXMTP/libxmtp-version.txt +++ b/Sources/LibXMTP/libxmtp-version.txt @@ -1,3 +1,3 @@ -Version: b5f32373 +Version: eccce061 Branch: main -Date: 2024-12-17 19:57:56 +0000 +Date: 2024-12-18 17:39:46 +0000 diff --git a/Sources/LibXMTP/xmtpv3.swift b/Sources/LibXMTP/xmtpv3.swift index 06e5a2e..284d230 100644 --- a/Sources/LibXMTP/xmtpv3.swift +++ b/Sources/LibXMTP/xmtpv3.swift @@ -7494,11 +7494,11 @@ public func generatePrivatePreferencesTopicIdentifier(privateKey: Data) throws - }) } -public func getInboxIdForAddress(host: String, isSecure: Bool, accountAddress: String) async throws -> String? { +public func getInboxIdForAddress(api: XmtpApiClient, accountAddress: String) async throws -> String? { return try await uniffiRustCallAsync( rustFutureFunc: { - uniffi_xmtpv3_fn_func_get_inbox_id_for_address(FfiConverterString.lower(host), FfiConverterBool.lower(isSecure), FfiConverterString.lower(accountAddress)) + uniffi_xmtpv3_fn_func_get_inbox_id_for_address(FfiConverterTypeXmtpApiClient.lower(api), FfiConverterString.lower(accountAddress)) }, pollFunc: ffi_xmtpv3_rust_future_poll_rust_buffer, completeFunc: ffi_xmtpv3_rust_future_complete_rust_buffer, @@ -7631,7 +7631,7 @@ private var initializationResult: InitializationResult = { if uniffi_xmtpv3_checksum_func_generate_private_preferences_topic_identifier() != 59124 { return InitializationResult.apiChecksumMismatch } - if uniffi_xmtpv3_checksum_func_get_inbox_id_for_address() != 35414 { + if uniffi_xmtpv3_checksum_func_get_inbox_id_for_address() != 19849 { return InitializationResult.apiChecksumMismatch } if uniffi_xmtpv3_checksum_func_get_version_info() != 29277 {