Skip to content

Commit

Permalink
Update bindings (#465)
Browse files Browse the repository at this point in the history
* update bindings

* get all the tests passing
  • Loading branch information
nplasterer authored Feb 8, 2025
1 parent 62632cc commit 2c2ea59
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let package = Package(
.package(url: "https://github.com/bufbuild/connect-swift", exact: "1.0.0"),
.package(url: "https://github.com/apple/swift-docc-plugin.git", from: "1.4.3"),
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", exact: "1.8.3"),
.package(url: "https://github.com/xmtp/libxmtp-swift.git", exact: "3.0.23")
.package(url: "https://github.com/xmtp/libxmtp-swift.git", exact: "3.0.24")
],
targets: [
.target(
Expand Down
10 changes: 5 additions & 5 deletions Tests/XMTPTests/ConversationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ class ConversationTests: XCTestCase {
let convoCountConsent = try await fixtures.boClient.conversations
.syncAllConversations(consentStates: [.allowed])

XCTAssertEqual(convoCount, 2)
XCTAssertEqual(convoCountConsent, 2)
XCTAssertEqual(convoCount, 3)
XCTAssertEqual(convoCountConsent, 3)

try await group.updateConsentState(state: .denied)

Expand All @@ -109,9 +109,9 @@ class ConversationTests: XCTestCase {
let convoCountCombined = try await fixtures.boClient.conversations
.syncAllConversations(consentStates: [.denied, .allowed])

XCTAssertEqual(convoCountAllowed, 1)
XCTAssertEqual(convoCountDenied, 1)
XCTAssertEqual(convoCountCombined, 2)
XCTAssertEqual(convoCountAllowed, 2)
XCTAssertEqual(convoCountDenied, 2)
XCTAssertEqual(convoCountCombined, 3)
}

func testCanListConversationsOrder() async throws {
Expand Down
7 changes: 4 additions & 3 deletions Tests/XMTPTests/GroupTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -945,9 +945,7 @@ class GroupTests: XCTestCase {
XCTAssertEqual(isGroupAllowed, .unknown)
let preparedMessageId = try await alixGroup.prepareMessage(
content: "Test text")
let isGroupAllowed2 = try await fixtures.alixClient.preferences
.conversationState(conversationId: boGroup.id)
XCTAssertEqual(isGroupAllowed2, .allowed)

let messageCount = try await alixGroup.messages().count
XCTAssertEqual(messageCount, 1)
let messageCountPublished = try await alixGroup.messages(
Expand All @@ -961,6 +959,9 @@ class GroupTests: XCTestCase {

_ = try await alixGroup.publishMessages()
try await alixGroup.sync()
let isGroupAllowed2 = try await fixtures.alixClient.preferences
.conversationState(conversationId: boGroup.id)
XCTAssertEqual(isGroupAllowed2, .allowed)

let messageCountPublished2 = try await alixGroup.messages(
deliveryStatus: .published
Expand Down
4 changes: 2 additions & 2 deletions XMTP.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "XMTP"
spec.version = "3.0.27"
spec.version = "3.0.28"

spec.summary = "XMTP SDK Cocoapod"

Expand All @@ -23,7 +23,7 @@ Pod::Spec.new do |spec|

spec.dependency 'CSecp256k1', '~> 0.2'
spec.dependency "Connect-Swift", "= 1.0.0"
spec.dependency 'LibXMTP', '= 3.0.23'
spec.dependency 'LibXMTP', '= 3.0.24'
spec.dependency 'CryptoSwift', '= 1.8.3'
spec.dependency 'SQLCipher', '= 4.5.7'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/xmtp/libxmtp-swift.git",
"state" : {
"revision" : "c9d3bdff9ead5d70a803d290de4eb75c9e9fc4f2",
"version" : "3.0.21"
"revision" : "cdc099645809f6964babeb30ea476a516d2638da",
"version" : "3.0.24"
}
},
{
Expand Down

0 comments on commit 2c2ea59

Please sign in to comment.