From 8091f03d894d7a14b6ecc698923cea8ff081d0ac Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Tue, 2 Jul 2024 07:25:27 -0700 Subject: [PATCH] Make permission policy fields public (#361) * make these fields accessible * make this field public too --- Sources/XMTPiOS/Extensions/String.swift | 2 +- Sources/XMTPiOS/Mls/PermissionPolicySet.swift | 14 +++++++------- XMTP.podspec | 2 +- .../xcshareddata/swiftpm/Package.resolved | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Sources/XMTPiOS/Extensions/String.swift b/Sources/XMTPiOS/Extensions/String.swift index e009b4e2..b6fc6d21 100644 --- a/Sources/XMTPiOS/Extensions/String.swift +++ b/Sources/XMTPiOS/Extensions/String.swift @@ -9,7 +9,7 @@ import Foundation extension String { - var hexToData: Data { + public var hexToData: Data { return Data(self.web3.bytesFromHex ?? []) } } diff --git a/Sources/XMTPiOS/Mls/PermissionPolicySet.swift b/Sources/XMTPiOS/Mls/PermissionPolicySet.swift index 4e19b68f..7e9a819f 100644 --- a/Sources/XMTPiOS/Mls/PermissionPolicySet.swift +++ b/Sources/XMTPiOS/Mls/PermissionPolicySet.swift @@ -60,31 +60,31 @@ public class PermissionPolicySet { self.ffiPermissionPolicySet = ffiPermissionPolicySet } - var addMemberPolicy: PermissionOption { + public var addMemberPolicy: PermissionOption { return PermissionOption.fromFfiPermissionPolicy(ffiPolicy: ffiPermissionPolicySet.addMemberPolicy) } - var removeMemberPolicy: PermissionOption { + public var removeMemberPolicy: PermissionOption { return PermissionOption.fromFfiPermissionPolicy(ffiPolicy: ffiPermissionPolicySet.removeMemberPolicy) } - var addAdminPolicy: PermissionOption { + public var addAdminPolicy: PermissionOption { return PermissionOption.fromFfiPermissionPolicy(ffiPolicy: ffiPermissionPolicySet.addAdminPolicy) } - var removeAdminPolicy: PermissionOption { + public var removeAdminPolicy: PermissionOption { return PermissionOption.fromFfiPermissionPolicy(ffiPolicy: ffiPermissionPolicySet.removeAdminPolicy) } - var updateGroupNamePolicy: PermissionOption { + public var updateGroupNamePolicy: PermissionOption { return PermissionOption.fromFfiPermissionPolicy(ffiPolicy: ffiPermissionPolicySet.updateGroupNamePolicy) } - var updateGroupDescriptionPolicy: PermissionOption { + public var updateGroupDescriptionPolicy: PermissionOption { return PermissionOption.fromFfiPermissionPolicy(ffiPolicy: ffiPermissionPolicySet.updateGroupDescriptionPolicy) } - var updateGroupImagePolicy: PermissionOption { + public var updateGroupImagePolicy: PermissionOption { return PermissionOption.fromFfiPermissionPolicy(ffiPolicy: ffiPermissionPolicySet.updateGroupImageUrlSquarePolicy) } } diff --git a/XMTP.podspec b/XMTP.podspec index c8f69b47..a4f10edc 100644 --- a/XMTP.podspec +++ b/XMTP.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |spec| # spec.name = "XMTP" - spec.version = "0.13.1" + spec.version = "0.13.2" spec.summary = "XMTP SDK Cocoapod" # This description is used to generate tags and improve search results. diff --git a/XMTPiOSExample/XMTPiOSExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/XMTPiOSExample/XMTPiOSExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 73cc64c0..ca2b9aff 100644 --- a/XMTPiOSExample/XMTPiOSExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/XMTPiOSExample/XMTPiOSExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -59,8 +59,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/xmtp/libxmtp-swift.git", "state" : { - "branch" : "main", - "revision" : "f5ab5a79821870375b52869d2125badca754a62b" + "revision" : "577a61e568cb5aaff10486172b1ef055faeff5b9", + "version" : "0.5.4-beta1" } }, {