Skip to content

Commit

Permalink
Bump to latest rust for streaming improvements (#270)
Browse files Browse the repository at this point in the history
* fix up streaming issues

* bump the pod

* add additional test
  • Loading branch information
nplasterer authored Mar 1, 2024
1 parent ca76d64 commit 990f4af
Show file tree
Hide file tree
Showing 4 changed files with 18 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.3.0"),
.package(url: "https://github.com/apple/swift-docc-plugin.git", from: "1.0.0"),
.package(url: "https://github.com/xmtp/libxmtp-swift", exact: "0.4.2-beta4"),
.package(url: "https://github.com/xmtp/libxmtp-swift", exact: "0.4.2-beta5"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down
15 changes: 13 additions & 2 deletions Tests/XMTPTests/GroupTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ class GroupTests: XCTestCase {
let fixtures = try await localFixtures()

let expectation1 = expectation(description: "got a conversation")
expectation1.expectedFulfillmentCount = 2
expectation1.expectedFulfillmentCount = 4
let convo = try await fixtures.bobClient.conversations.newConversation(with: fixtures.alice.address)
let group = try await fixtures.bobClient.conversations.newGroup(with: [fixtures.alice.address])
try await fixtures.aliceClient.conversations.sync()
Expand All @@ -444,6 +444,11 @@ class GroupTests: XCTestCase {

_ = try await group.send(content: "hi")
_ = try await convo.send(content: "hi")
let group2 = try await fixtures.fredClient.conversations.newGroup(with: [fixtures.alice.address])
let convo2 = try await fixtures.fredClient.conversations.newConversation(with: fixtures.alice.address)

_ = try await group2.send(content: "hi")
_ = try await convo2.send(content: "hi")

await waitForExpectations(timeout: 3)
}
Expand All @@ -452,7 +457,7 @@ class GroupTests: XCTestCase {
let fixtures = try await localFixtures()

let expectation1 = expectation(description: "got a conversation")
expectation1.expectedFulfillmentCount = 2
expectation1.expectedFulfillmentCount = 4
let convo = try await fixtures.bobClient.conversations.newConversation(with: fixtures.alice.address)
let group = try await fixtures.bobClient.conversations.newGroup(with: [fixtures.alice.address])
try await fixtures.aliceClient.conversations.sync()
Expand All @@ -464,6 +469,12 @@ class GroupTests: XCTestCase {

_ = try await group.send(content: "hi")
_ = try await convo.send(content: "hi")

let group2 = try await fixtures.fredClient.conversations.newGroup(with: [fixtures.alice.address])
let convo2 = try await fixtures.fredClient.conversations.newConversation(with: fixtures.alice.address)

_ = try await group2.send(content: "hi")
_ = try await convo2.send(content: "hi")

await waitForExpectations(timeout: 3)
}
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.8.14"
spec.version = "0.8.15"
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.4.2-beta3'
spec.dependency 'LibXMTP', '= 0.4.2-beta5'
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" : {
"revision" : "28ee27a4ded8b996a74850e366247e9fe51d782a",
"version" : "0.4.2-beta4"
"revision" : "a4111b1bb5485e7cd0d1606d8e6fde1a4b6a1783",
"version" : "0.4.2-beta5"
}
},
{
Expand Down

0 comments on commit 990f4af

Please sign in to comment.