Skip to content

Commit

Permalink
Make permission policy fields public (#361)
Browse files Browse the repository at this point in the history
* make these fields accessible

* make this field public too
  • Loading branch information
nplasterer authored Jul 2, 2024
1 parent 77735dc commit 8091f03
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Sources/XMTPiOS/Extensions/String.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation


extension String {
var hexToData: Data {
public var hexToData: Data {
return Data(self.web3.bytesFromHex ?? [])
}
}
Expand Down
14 changes: 7 additions & 7 deletions Sources/XMTPiOS/Mls/PermissionPolicySet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
2 changes: 1 addition & 1 deletion XMTP.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand Down

0 comments on commit 8091f03

Please sign in to comment.