Skip to content

Commit

Permalink
bump pod and package (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer authored Aug 9, 2024
1 parent e0aa202 commit ee6cacd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ let package = Package(
.package(url: "https://github.com/1024jp/GzipSwift", from: "5.2.0"),
.package(url: "https://github.com/bufbuild/connect-swift", exact: "0.12.0"),
.package(url: "https://github.com/apple/swift-docc-plugin.git", from: "1.0.0"),
.package(url: "https://github.com/xmtp/libxmtp-swift.git", exact: "0.5.7-beta0"),
.package(url: "https://github.com/xmtp/libxmtp-swift.git", exact: "0.5.7-beta1"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down
12 changes: 10 additions & 2 deletions Sources/XMTPiOS/Conversations.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation
import LibXMTP

public enum ConversationError: Error, CustomStringConvertible {
public enum ConversationError: Error, CustomStringConvertible, LocalizedError {
case recipientNotOnNetwork, recipientIsSender, v1NotSupported(String)

public var description: String {
Expand All @@ -14,9 +14,13 @@ public enum ConversationError: Error, CustomStringConvertible {
return "ConversationError.v1NotSupported: V1 does not support: \(str)"
}
}

public var errorDescription: String? {
return description
}
}

public enum GroupError: Error, CustomStringConvertible {
public enum GroupError: Error, CustomStringConvertible, LocalizedError {
case alphaMLSNotEnabled, memberCannotBeSelf, memberNotRegistered([String]), groupsRequireMessagePassed, notSupportedByGroups, streamingFailure

public var description: String {
Expand All @@ -35,6 +39,10 @@ public enum GroupError: Error, CustomStringConvertible {
return "GroupError.streamingFailure a stream has failed"
}
}

public var errorDescription: String? {
return description
}
}

final class GroupStreamCallback: FfiConversationCallback {
Expand Down
4 changes: 2 additions & 2 deletions 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.14.1"
spec.version = "0.14.2"
spec.summary = "XMTP SDK Cocoapod"

# This description is used to generate tags and improve search results.
Expand Down Expand Up @@ -44,5 +44,5 @@ Pod::Spec.new do |spec|
spec.dependency "web3.swift"
spec.dependency "GzipSwift"
spec.dependency "Connect-Swift", "= 0.12.0"
spec.dependency 'LibXMTP', '= 0.5.7-beta0'
spec.dependency 'LibXMTP', '= 0.5.7-beta1'
end
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" : {
"revision" : "65e9a6eed3db394c1afad7d895b89a0c1cae914b",
"version" : "0.5.7-beta0"
"revision" : "c7cec01e9065812c1b604edd85ff72492bfd51b7",
"version" : "0.5.7-beta1"
}
},
{
Expand Down

0 comments on commit ee6cacd

Please sign in to comment.