From de6a440df3b6f9ffc25cafa485c53d339f70d16e Mon Sep 17 00:00:00 2001 From: cameronvoell Date: Mon, 24 Jun 2024 21:49:08 -0700 Subject: [PATCH] libxmtp bbf05ea --- LibXMTP.podspec | 4 ++-- Package.swift | 4 ++-- Sources/LibXMTP/libxmtp-version.txt | 4 ++-- Sources/LibXMTP/xmtpv3.swift | 6 ++++++ 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/LibXMTP.podspec b/LibXMTP.podspec index 2573e0e..24e10ae 100644 --- a/LibXMTP.podspec +++ b/LibXMTP.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'LibXMTP' - s.version = '0.5.3-beta1' + s.version = '0.5.3-beta2' 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-1e09690/LibXMTPSwiftFFI.zip", :type => :zip } + s.source = { :http => "https://github.com/xmtp/libxmtp/releases/download/swift-bindings-bbf05ea/LibXMTPSwiftFFI.zip", :type => :zip } s.vendored_frameworks = 'LibXMTPSwiftFFI.xcframework' s.source_files = 'Sources/LibXMTP/**/*' end diff --git a/Package.swift b/Package.swift index 0cd4f8e..f0f58bd 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-1e09690/LibXMTPSwiftFFI.zip", - checksum: "2552273b2c9f61b588f942b530a7e9707265d81c44b0482c40134ad2a2407fb8" + url: "https://github.com/xmtp/libxmtp/releases/download/swift-bindings-bbf05ea/LibXMTPSwiftFFI.zip", + checksum: "b1e5c34294f1c47e183d67a634ac98ba8a174defcbc1087dd7865e7fe516fccb" ), .testTarget(name: "LibXMTPTests", dependencies: ["LibXMTP"]), ] diff --git a/Sources/LibXMTP/libxmtp-version.txt b/Sources/LibXMTP/libxmtp-version.txt index e8e461b..ed9660a 100644 --- a/Sources/LibXMTP/libxmtp-version.txt +++ b/Sources/LibXMTP/libxmtp-version.txt @@ -1,3 +1,3 @@ -Version: 1e096906 +Version: bbf05eac Branch: main -Date: 2024-06-24 17:58:00 +0000 +Date: 2024-06-25 01:50:26 +0000 diff --git a/Sources/LibXMTP/xmtpv3.swift b/Sources/LibXMTP/xmtpv3.swift index fcdf6e4..cdf0357 100644 --- a/Sources/LibXMTP/xmtpv3.swift +++ b/Sources/LibXMTP/xmtpv3.swift @@ -3276,6 +3276,7 @@ extension GenericError: Error {} public enum GroupPermissions { case allMembers case adminOnly + case customPolicy } public struct FfiConverterTypeGroupPermissions: FfiConverterRustBuffer { @@ -3288,6 +3289,8 @@ public struct FfiConverterTypeGroupPermissions: FfiConverterRustBuffer { case 2: return .adminOnly + case 3: return .customPolicy + default: throw UniffiInternalError.unexpectedEnumCase } } @@ -3299,6 +3302,9 @@ public struct FfiConverterTypeGroupPermissions: FfiConverterRustBuffer { case .adminOnly: writeInt(&buf, Int32(2)) + + case .customPolicy: + writeInt(&buf, Int32(3)) } } }