Skip to content

Commit

Permalink
Merge pull request #599 from xmtp/np/update-bindings
Browse files Browse the repository at this point in the history
Update bindings
  • Loading branch information
nplasterer authored Feb 8, 2025
2 parents ef976b0 + 8d9c42f commit 2e4eaca
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 19 deletions.
5 changes: 5 additions & 0 deletions .changeset/hungry-badgers-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@xmtp/react-native-sdk": patch
---

Fix streaming issue
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ repositories {
dependencies {
implementation project(':expo-modules-core')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
implementation "org.xmtp:android:3.0.24"
implementation "org.xmtp:android:3.0.25"
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.facebook.react:react-native:0.71.3'
implementation "com.daveanthonythomas.moshipack:moshipack:1.0.1"
Expand Down
16 changes: 8 additions & 8 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ PODS:
- hermes-engine/Pre-built (= 0.71.14)
- hermes-engine/Pre-built (0.71.14)
- libevent (2.1.12)
- LibXMTP (3.0.23)
- LibXMTP (3.0.24)
- MessagePacker (0.4.7)
- MMKV (2.0.2):
- MMKVCore (~> 2.0.2)
Expand Down Expand Up @@ -448,18 +448,18 @@ PODS:
- SQLCipher/standard (4.5.7):
- SQLCipher/common
- SwiftProtobuf (1.28.2)
- XMTP (3.0.27):
- XMTP (3.0.28):
- Connect-Swift (= 1.0.0)
- CryptoSwift (= 1.8.3)
- CSecp256k1 (~> 0.2)
- LibXMTP (= 3.0.23)
- LibXMTP (= 3.0.24)
- SQLCipher (= 4.5.7)
- XMTPReactNative (3.1.10):
- XMTPReactNative (3.1.11):
- CSecp256k1 (~> 0.2)
- ExpoModulesCore
- MessagePacker
- SQLCipher (= 4.5.7)
- XMTP (= 3.0.27)
- XMTP (= 3.0.28)
- Yoga (1.14.0)

DEPENDENCIES:
Expand Down Expand Up @@ -711,7 +711,7 @@ SPEC CHECKSUMS:
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
hermes-engine: d7cc127932c89c53374452d6f93473f1970d8e88
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
LibXMTP: 104197abdeb8651480a6663eedb5f3011cec25b7
LibXMTP: e4e1c00d52e8e52599a26859d0bbaba2ffe21e77
MessagePacker: ab2fe250e86ea7aedd1a9ee47a37083edd41fd02
MMKV: 3eacda84cd1c4fc95cf848d3ecb69d85ed56006c
MMKVCore: 508b4d3a8ce031f1b5c8bd235f0517fb3f4c73a9
Expand Down Expand Up @@ -762,8 +762,8 @@ SPEC CHECKSUMS:
RNSVG: d00c8f91c3cbf6d476451313a18f04d220d4f396
SQLCipher: 5e6bfb47323635c8b657b1b27d25c5f1baf63bf5
SwiftProtobuf: 4dbaffec76a39a8dc5da23b40af1a5dc01a4c02d
XMTP: 226c2cb3ba800e1b0632a2c7223d9f518149ea34
XMTPReactNative: 9eef0d6306599864bcb84341e107767d98fce34d
XMTP: 569955fba75477fe6fa1dadbc33e097e425f03ce
XMTPReactNative: aa9f398f42d888439ff58c1fab653d0c42bdd27c
Yoga: e71803b4c1fff832ccf9b92541e00f9b873119b9

PODFILE CHECKSUM: 0e6fe50018f34e575d38dc6a1fdf1f99c9596cdd
Expand Down
2 changes: 1 addition & 1 deletion example/src/tests/groupPermissionsTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ test('can create a group with custom permissions', async () => {
}

// Bo creates a group with Alix and Caro with custom permissions
const boGroup = await bo.conversations.newGroupCustomPermissions(
await bo.conversations.newGroupCustomPermissions(
[alix.address, caro.address],
customPermissionsPolicySet
)
Expand Down
16 changes: 8 additions & 8 deletions example/src/tests/groupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -707,14 +707,6 @@ test('unpublished messages handling', async () => {
// Prepare a message in the group
const preparedMessageId = await alixGroup.prepareMessage('Test text')

// Check if the group is allowed after preparing the message
const isGroupAllowed = await alixClient.preferences.conversationConsentState(
boGroup.id
)
if (isGroupAllowed !== 'allowed') {
throw new Error('Group should be allowed after preparing a message')
}

// Verify the message count in the group
let messageCount = (await alixGroup.messages()).length
if (messageCount !== 1) {
Expand All @@ -731,6 +723,14 @@ test('unpublished messages handling', async () => {
throw new Error(`Message count should be 1, but it is ${messageCount}`)
}

// Check if the group is allowed after preparing the message
const isGroupAllowed = await alixClient.preferences.conversationConsentState(
boGroup.id
)
if (isGroupAllowed !== 'allowed') {
throw new Error('Group should be allowed after preparing a message')
}

// Retrieve all messages and verify the prepared message ID
const messages = await alixGroup.messages()
if (preparedMessageId !== messages[0].id) {
Expand Down
2 changes: 1 addition & 1 deletion ios/XMTPReactNative.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Pod::Spec.new do |s|
s.source_files = "**/*.{h,m,swift}"

s.dependency "MessagePacker"
s.dependency "XMTP", "= 3.0.27"
s.dependency "XMTP", "= 3.0.28"
s.dependency 'CSecp256k1', '~> 0.2'
s.dependency "SQLCipher", "= 4.5.7"
end

0 comments on commit 2e4eaca

Please sign in to comment.