Skip to content

Commit

Permalink
Merge pre libxmtp into main (#223)
Browse files Browse the repository at this point in the history
* Add Key Material Function (#222)

* add ket material field to ios

* bump the podspec

* Update podspec LibXMTP ref

* Update libxmtp-swift refs

* Update libxmtp-swift ref

* Updated libxmtp-swift ref to tagged release

* Update XMTP.podspec version

---------

Co-authored-by: cameronvoell <[email protected]>
  • Loading branch information
2 people authored and kele-leanes committed Jan 31, 2024
1 parent be1eea4 commit 8ed7e47
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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.3.0"),
.package(url: "https://github.com/apple/swift-docc-plugin.git", from: "1.0.0"),
.package(url: "https://github.com/xmtp/libxmtp-swift", revision: "e5d26a4"),
.package(url: "https://github.com/xmtp/libxmtp-swift", revision: "92274fe"),
// .package(path: "../libxmtp-swift")
],
targets: [
Expand Down
9 changes: 9 additions & 0 deletions Sources/XMTPiOS/Conversation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ public enum Conversation: Sendable {
return conversationV2.peerAddress
}
}

public var keyMaterial: Data? {
switch self {
case let .v1(conversationV1):
return nil
case let .v2(conversationV2):
return conversationV2.keyMaterial
}
}

/// An optional string that can specify a different context for a conversation with another account address.
///
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.7.6-alpha0"
spec.version = "0.7.8-alpha0"
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.3.0"
spec.dependency 'LibXMTP', '= 0.0.1-timeout0'
spec.dependency 'LibXMTP', '= 0.4.1-beta0'
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",
"state" : {
"branch" : "e5d26a4",
"revision" : "e5d26a45966f568829e71cd087952de30234de58"
"branch" : "92274fe",
"revision" : "92274fe0dde1fc7f8f716ebcffa3d252813be56d"
}
},
{
Expand Down

0 comments on commit 8ed7e47

Please sign in to comment.