Skip to content

Commit

Permalink
Merge pull request #39 from xmtp/cv/fix-invalid-policy-error
Browse files Browse the repository at this point in the history
Fix for invalid policy errors
  • Loading branch information
cameronvoell authored Jun 25, 2024
2 parents e7df1b0 + de6a440 commit 957945a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions LibXMTP.podspec
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"]),
]
Expand Down
4 changes: 2 additions & 2 deletions Sources/LibXMTP/libxmtp-version.txt
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions Sources/LibXMTP/xmtpv3.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3276,6 +3276,7 @@ extension GenericError: Error {}
public enum GroupPermissions {
case allMembers
case adminOnly
case customPolicy
}

public struct FfiConverterTypeGroupPermissions: FfiConverterRustBuffer {
Expand All @@ -3288,6 +3289,8 @@ public struct FfiConverterTypeGroupPermissions: FfiConverterRustBuffer {

case 2: return .adminOnly

case 3: return .customPolicy

default: throw UniffiInternalError.unexpectedEnumCase
}
}
Expand All @@ -3299,6 +3302,9 @@ public struct FfiConverterTypeGroupPermissions: FfiConverterRustBuffer {

case .adminOnly:
writeInt(&buf, Int32(2))

case .customPolicy:
writeInt(&buf, Int32(3))
}
}
}
Expand Down

0 comments on commit 957945a

Please sign in to comment.