Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main => beta #447

Closed
wants to merge 164 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
3129752
Removed ethers from test
Jun 18, 2024
5852319
Merge pull request #423 from xmtp/ar/remove-ethers-test
alexrisch Jun 18, 2024
f246dc2
feat: update the v2 to all be backed by rust
nplasterer Jul 1, 2024
9ea3f6d
fix up the coroutine
nplasterer Jul 1, 2024
eb3a9e2
bump the ios version
nplasterer Jul 1, 2024
90c6eae
fix up swift
nplasterer Jul 1, 2024
87e0503
bump to a working android version
nplasterer Jul 1, 2024
ac0e0ad
Merge pull request #432 from xmtp/np/update-v2-streaming
nplasterer Jul 1, 2024
69c1764
Merge branch 'beta' into np/merge-beta
nplasterer Jul 10, 2024
4ae83d9
fix up the test
nplasterer Jul 10, 2024
8519e52
Merge branch 'beta' into np/merge-beta
nplasterer Jul 10, 2024
b8b3d51
feat: group chat
nplasterer Jul 10, 2024
92e2f79
Merge branch 'beta' of https://github.com/xmtp/xmtp-react-native into…
nplasterer Jul 22, 2024
10e7e73
get all 99 tests passing
nplasterer Jul 23, 2024
abc3d51
get all tests passing on both platforms
nplasterer Jul 23, 2024
d9563cd
Merge pull request #440 from xmtp/np/merge-beta
nplasterer Jul 23, 2024
20950f3
fix: remove all runblockings from the code
nplasterer Jul 24, 2024
d352e53
adds newGroupCustomPermissions function
cameronvoell Jul 24, 2024
44e224c
lint fixes
cameronvoell Jul 24, 2024
7e46566
feat: added ability to set custom permissions on group creation
cameronvoell Jul 24, 2024
52b1540
Merge pull request #445 from xmtp/cv/permission-creation-options
cameronvoell Jul 24, 2024
e436b7c
Merge pull request #444 from xmtp/np/fix-more-async-issues
nplasterer Jul 24, 2024
dbe52fe
fix: publish intents correctly
nplasterer Jul 25, 2024
e4381d8
fix up the test
nplasterer Jul 25, 2024
425529f
Merge pull request #446 from xmtp/np/bug-fixes
nplasterer Jul 25, 2024
39a2106
fix: better logging
nplasterer Jul 26, 2024
125379d
Merge pull request #448 from xmtp/np/better-error-messaging
nplasterer Jul 26, 2024
36c39ac
chore: correction typo packaging_notes.md
osrm Jul 28, 2024
5ee8048
chore: correction typo README.md
osrm Jul 28, 2024
cfc40ac
fix: no change errors
nplasterer Jul 30, 2024
ffc79f1
Merge pull request #450 from xmtp/np/no-change-fix
nplasterer Jul 30, 2024
c4b6621
add extra fields to group wrapper
nplasterer Jul 31, 2024
5d43d3b
add static function for getting or creating an inbox id
nplasterer Jul 31, 2024
643ac07
add iOS functions
nplasterer Jul 31, 2024
eb0d094
Adds pre auth to inbox callback
cameronvoell Jul 31, 2024
2719f23
add swift code for preCreateIdentityCallback
cameronvoell Aug 1, 2024
d5eb986
update android library version
cameronvoell Aug 1, 2024
87a1cb6
add the react native side for it
nplasterer Aug 1, 2024
bf4710c
fix: add additional client improvements
nplasterer Aug 1, 2024
9c662f0
Merge pull request #454 from xmtp/np/group-improvements
nplasterer Aug 1, 2024
4f91dcb
start some basic performance testing
nplasterer Aug 1, 2024
87ddca4
Merge branch 'main' of https://github.com/xmtp/xmtp-react-native into…
nplasterer Aug 1, 2024
3ebb376
Merge branch 'main' into cv/pre-auth-inbox-callback
cameronvoell Aug 1, 2024
cf6fd2a
base for perf
nplasterer Aug 1, 2024
8b97ffe
Update ios podspec
cameronvoell Aug 1, 2024
ad77903
feat: adds preAuthenticateToInboxCallback before signature request
cameronvoell Aug 1, 2024
e6aa77b
Merge pull request #455 from xmtp/cv/pre-auth-inbox-callback
nmalzieu Aug 1, 2024
4b559d4
happy path test
nplasterer Aug 2, 2024
71d3104
more testing that seems to be happy
nplasterer Aug 2, 2024
92b5aed
min repro of the missing messages
nplasterer Aug 2, 2024
e370f2d
committing this for history
nplasterer Aug 3, 2024
5a03514
Add a test for members inconsistencies when creating new installations
nmalzieu Aug 5, 2024
af11ec6
fix: do not set pinnedframeurl when initializing group object
cameronvoell Aug 5, 2024
94867b1
Merge pull request #459 from xmtp/cv/mutable-metadata-error-groups-cr…
cameronvoell Aug 5, 2024
f808d51
fix: Group is Active
Aug 5, 2024
9975fe5
Fix Typescript errors
Aug 5, 2024
4d0adbf
Merge pull request #461 from xmtp/ar/fix-isactive-initial
alexrisch Aug 5, 2024
8c597e9
fix: encode groups and conversations sequentially instead of as many …
cameronvoell Aug 5, 2024
913a6a0
removing created at tests from UI since order is not reliable
cameronvoell Aug 5, 2024
b7f91b7
add test showing large listGroups without ios pool error
cameronvoell Aug 5, 2024
be21834
lint fix
cameronvoell Aug 5, 2024
37478c8
Merge pull request #462 from xmtp/cv/fix-ios-pool-error
cameronvoell Aug 5, 2024
55bc6ab
Update .swiftformat
nplasterer Aug 6, 2024
5566015
Update tsconfig.json
nplasterer Aug 6, 2024
40638c0
Merge pull request #464 from xmtp/nplasterer-patch-1-1
nplasterer Aug 6, 2024
0da6e9e
fix: epoch issues and membership list consistency
nplasterer Aug 7, 2024
5b9374c
Merge branch 'noe/members-inconsistence-test' of https://github.com/x…
nplasterer Aug 7, 2024
9eb4fc7
bump the test to use find group instead
nplasterer Aug 7, 2024
9246b82
fix: podfile update
nplasterer Aug 7, 2024
954f4fd
Merge pull request #458 from xmtp/noe/members-inconsistence-test
nplasterer Aug 7, 2024
97952f6
fix: forked group and default history sync url
nplasterer Aug 7, 2024
8f98de7
fix up android history url
nplasterer Aug 7, 2024
209c859
bump to the latest ios
nplasterer Aug 7, 2024
61c5293
Merge branch 'np/more-fork-fixes' of https://github.com/xmtp/xmtp-rea…
nplasterer Aug 7, 2024
59e1d45
revamp the tests a bit
nplasterer Aug 8, 2024
323982b
update lock file
nplasterer Aug 8, 2024
cde9b4a
Merge pull request #465 from xmtp/np/more-fork-fixes
nplasterer Aug 8, 2024
52e2982
Merge branch 'main' of https://github.com/xmtp/xmtp-react-native into…
nplasterer Aug 8, 2024
afef58b
Merge pull request #449 from osrm/main
nplasterer Aug 8, 2024
5cea556
feat: adds ability to export libxmtp logs from native to react native
cameronvoell Aug 8, 2024
9f70804
missing curly brace
cameronvoell Aug 9, 2024
815617b
capture 5 min of ios logs
cameronvoell Aug 9, 2024
bf90e25
Merge pull request #466 from xmtp/cv/libxmtp-logs-in-RN
cameronvoell Aug 9, 2024
3da8fc1
Drop / reconnect database connections when app becomes backgrounded /…
nmalzieu Aug 9, 2024
58d57ba
Fix spacing
nmalzieu Aug 9, 2024
dba2472
Fix spacing
nmalzieu Aug 9, 2024
65af5a9
feat: enable automated database disconnection on the native thread
nmalzieu Aug 9, 2024
dd9fb5d
Verify that the client is v3 enabled first
nmalzieu Aug 9, 2024
950976a
spacing
nmalzieu Aug 9, 2024
beea3e1
Remove duplicated code
nmalzieu Aug 9, 2024
daea446
Merge pull request #467 from xmtp/noe/ios-db-disconnect
cameronvoell Aug 9, 2024
823e744
test repro crash
nplasterer Aug 9, 2024
a41bd2b
fix: catch code unsupported ios 14 and above
cameronvoell Aug 9, 2024
f6d2b2e
Merge pull request #468 from xmtp/cv/support-ios14
cameronvoell Aug 9, 2024
ed6c494
fix up test
nplasterer Aug 9, 2024
3f51ecc
min repro in RN
nplasterer Aug 9, 2024
608332c
push up a test
nplasterer Aug 9, 2024
79f62a9
only add native logs if it contains the string libxmtp
cameronvoell Aug 14, 2024
51acbaf
Add a test to stress test SDK parallelism
nmalzieu Aug 15, 2024
68f8c13
Simplifying first test, adding a second one
nmalzieu Aug 15, 2024
e21205b
Add a test showing the thread is locked even for other features
nmalzieu Aug 15, 2024
d62bbbc
fix: show libxmtp logs on iOS
cameronvoell Aug 15, 2024
4ccd25e
Merge pull request #471 from xmtp/cv/fix-ios-logs
cameronvoell Aug 16, 2024
0c74d53
fix: show libxmtp log message on iOS
cameronvoell Aug 16, 2024
d7defb7
Merge branch 'main' of https://github.com/xmtp/xmtp-react-native into…
nplasterer Aug 16, 2024
b22fabd
Merge pull request #472 from xmtp/cv/libxmtp-logs-public-two
cameronvoell Aug 16, 2024
bf717f6
fix: prevents invalid key packages, and fixes empty intents
cameronvoell Aug 16, 2024
2c5c9ba
Merge pull request #473 from xmtp/cv/libxmtp-657d696-2024-08-16
cameronvoell Aug 16, 2024
fc6d792
Merge branch 'main' of https://github.com/xmtp/xmtp-react-native into…
nplasterer Aug 19, 2024
fb050c6
fix: fix the pool errors and get the tests passing
nplasterer Aug 19, 2024
7f685ef
fix up the test
nplasterer Aug 19, 2024
ed2fa97
add support for getting members from the group and not loading again
nplasterer Aug 19, 2024
7186792
get all the tests passing
nplasterer Aug 19, 2024
80cae17
Merge pull request #470 from xmtp/noe/rn-thread-blocked
nplasterer Aug 19, 2024
3448312
fix: update to latest open mls
nplasterer Aug 20, 2024
a4a23f8
update lock file
nplasterer Aug 20, 2024
0c4a634
fix up the test
nplasterer Aug 21, 2024
a83ffb0
Merge pull request #477 from xmtp/np/max-epochs-fix
nplasterer Aug 21, 2024
ff03652
add the android modules part
nplasterer Aug 22, 2024
c404bd3
add sync all groups methods to conversations
nplasterer Aug 22, 2024
183133f
add inbox state to client
nplasterer Aug 22, 2024
e0a697d
fix up the comments
nplasterer Aug 22, 2024
e97ceaf
add tests for it
nplasterer Aug 22, 2024
9fc41c7
do the iOS side
nplasterer Aug 22, 2024
42e4b88
tweak the code a bit
nplasterer Aug 22, 2024
0b92c52
fix sync all groups test
cameronvoell Aug 22, 2024
6468654
fix json parse error
nplasterer Aug 22, 2024
d676e9d
fix the android json error
nplasterer Aug 22, 2024
10cf325
remove the inbox state and revoke installations code
nplasterer Aug 22, 2024
0db7558
fix: all groups syncing
nplasterer Aug 22, 2024
8ac886b
Merge pull request #479 from xmtp/np/sync-all-groups
nplasterer Aug 22, 2024
6157e8f
Revert "remove the inbox state and revoke installations code"
cameronvoell Aug 22, 2024
7c129b8
re-add inbox state imports
cameronvoell Aug 22, 2024
60c2374
fix: adds ability to revoke all other installation keys
cameronvoell Aug 23, 2024
603cdc7
re-enable group tests
cameronvoell Aug 23, 2024
7c8ff70
lint fix
cameronvoell Aug 23, 2024
a29597e
Merge pull request #480 from xmtp/cv/revoke-installations
nmalzieu Aug 23, 2024
8575b68
fix: syncAllGroups returns num of groups synced. possible fork fixes
cameronvoell Aug 26, 2024
27af2f0
lint fixes
cameronvoell Aug 26, 2024
89cf5d4
Merge pull request #482 from xmtp/cv/fork-prevention-sync-all-improve…
cameronvoell Aug 26, 2024
795f14e
feat: added static function for clearing a client for a given inboxId…
cameronvoell Aug 28, 2024
af332ef
test for dropClient function
cameronvoell Aug 28, 2024
9e9a235
Merge pull request #485 from xmtp/cv/drop-client-for-inboxId
cameronvoell Aug 28, 2024
bc28ef3
bump the libraries
nplasterer Aug 30, 2024
59588e7
fix: group retry errors
nplasterer Aug 30, 2024
4b126a6
Merge pull request #486 from xmtp/np/retry-disconnect-errors
nplasterer Aug 30, 2024
4199c02
test for streaming weirdness
nplasterer Aug 30, 2024
d47485e
Bump to working iOS version
nplasterer Sep 3, 2024
6473562
fix: streams all messages can be canceled
nplasterer Sep 3, 2024
72c8284
get all the tests passing
nplasterer Sep 3, 2024
ba1f330
Merge pull request #487 from xmtp/np/streaming-reproduction-test
nmalzieu Sep 3, 2024
9a52d96
Update CODEOWNERS
nplasterer Sep 5, 2024
c0fd2f3
Merge pull request #488 from xmtp/nplasterer-patch-2
nplasterer Sep 6, 2024
609e0b0
Merge branch 'main' of https://github.com/xmtp/xmtp-react-native into…
nplasterer Sep 10, 2024
855850c
update the performance tests
nplasterer Sep 10, 2024
16bec44
add additional performance test
nplasterer Sep 10, 2024
ca5eba6
make assert statements
nplasterer Sep 10, 2024
9bcba0c
get all the tests passing with the current performance
nplasterer Sep 10, 2024
f678906
fix: streaming improvements from libxmtp update
cameronvoell Sep 10, 2024
045ce5b
Merge pull request #489 from xmtp/cv/stream-improvements-libxmtp
cameronvoell Sep 10, 2024
5a0c1ca
Merge pull request #457 from xmtp/np/performance-benchmarking
nplasterer Sep 11, 2024
d4a7539
bump the versions
nplasterer Sep 13, 2024
b2d158d
fix: update pod
nplasterer Sep 13, 2024
1c22f7e
Merge pull request #492 from xmtp/np/plaintext-headers
nplasterer Sep 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Global rule:
* @xmtp/mobile
*.md @fabriguespe
* @xmtp/protocol-sdk
*.md @xmtp/documentation
1 change: 1 addition & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
--indent tab
--elseposition same-line
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ repositories {
dependencies {
implementation project(':expo-modules-core')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
implementation "org.xmtp:android:0.14.8"
implementation "org.xmtp:android:0.15.9"
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"
// xmtp-android local testing setup below (comment org.xmtp:android above)
// implementation files('<PATH TO XMTP-ANDROID>/xmtp-android/library/build/outputs/aar/library-debug.aar')
// implementation files('<PATH_TO_LIBRARY>/xmtp-android/library/build/outputs/aar/library-debug.aar')
// implementation 'com.google.crypto.tink:tink-android:1.8.0'
// implementation 'io.grpc:grpc-kotlin-stub:1.4.1'
// implementation 'io.grpc:grpc-okhttp:1.62.2'
Expand Down
354 changes: 232 additions & 122 deletions android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ class ClientWrapper {
return mapOf(
"inboxId" to client.inboxId,
"address" to client.address,
"installationId" to client.installationId
"installationId" to client.installationId,
"dbPath" to client.dbPath
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ class GroupWrapper {
"clientAddress" to client.address,
"id" to group.id,
"createdAt" to group.createdAt.time,
"peerInboxIds" to group.peerInboxIds(),
"members" to group.members().map { MemberWrapper.encode(it) },
"version" to "GROUP",
"topic" to group.topic,
"creatorInboxId" to group.creatorInboxId(),
"isActive" to group.isActive(),
"addedByInboxId" to group.addedByInboxId(),
"name" to group.name,
"imageUrlSquare" to group.imageUrlSquare,
"description" to group.description
// "pinnedFrameUrl" to group.pinnedFrameUrl
)
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package expo.modules.xmtpreactnativesdk.wrappers

import com.google.gson.GsonBuilder
import uniffi.xmtpv3.org.xmtp.android.library.libxmtp.InboxState

class InboxStateWrapper {
companion object {
fun encodeToObj(inboxState: InboxState): Map<String, Any> {
return mapOf(
"inboxId" to inboxState.inboxId,
"addresses" to inboxState.addresses,
"installationIds" to inboxState.installationIds,
"recoveryAddress" to inboxState.recoveryAddress
)
}

fun encode(inboxState: InboxState): String {
val gson = GsonBuilder().create()
val obj = encodeToObj(inboxState)
return gson.toJson(obj)
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package expo.modules.xmtpreactnativesdk.wrappers

import com.google.gson.GsonBuilder
import com.google.gson.JsonParser
import uniffi.xmtpv3.org.xmtp.android.library.libxmtp.PermissionOption
import uniffi.xmtpv3.org.xmtp.android.library.libxmtp.PermissionPolicySet

Expand All @@ -16,6 +17,16 @@ class PermissionPolicySetWrapper {
PermissionOption.Unknown -> "unknown"
}
}

fun createPermissionOptionFromString(permissionOptionString: String): PermissionOption {
return when (permissionOptionString) {
"allow" -> PermissionOption.Allow
"deny" -> PermissionOption.Deny
"admin" -> PermissionOption.Admin
"superAdmin" -> PermissionOption.SuperAdmin
else -> PermissionOption.Unknown
}
}
fun encodeToObj(policySet: PermissionPolicySet): Map<String, Any> {
return mapOf(
"addMemberPolicy" to fromPermissionOption(policySet.addMemberPolicy),
Expand All @@ -29,6 +40,20 @@ class PermissionPolicySetWrapper {
)
}

fun createPermissionPolicySetFromJson(permissionPolicySetJson: String): PermissionPolicySet {
val jsonObj = JsonParser.parseString(permissionPolicySetJson).asJsonObject
return PermissionPolicySet(
addMemberPolicy = createPermissionOptionFromString(jsonObj.get("addMemberPolicy").asString),
removeMemberPolicy = createPermissionOptionFromString(jsonObj.get("removeMemberPolicy").asString),
addAdminPolicy = createPermissionOptionFromString(jsonObj.get("addAdminPolicy").asString),
removeAdminPolicy = createPermissionOptionFromString(jsonObj.get("removeAdminPolicy").asString),
updateGroupNamePolicy = createPermissionOptionFromString(jsonObj.get("updateGroupNamePolicy").asString),
updateGroupDescriptionPolicy = createPermissionOptionFromString(jsonObj.get("updateGroupDescriptionPolicy").asString),
updateGroupImagePolicy = createPermissionOptionFromString(jsonObj.get("updateGroupImagePolicy").asString),
updateGroupPinnedFrameUrlPolicy = createPermissionOptionFromString(jsonObj.get("updateGroupPinnedFrameUrlPolicy").asString)
)
}

fun encodeToJsonString(policySet: PermissionPolicySet): String {
val gson = GsonBuilder().create()
val obj = encodeToObj(policySet)
Expand Down
4 changes: 2 additions & 2 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ First create a free account and download your client id from https://thirdweb.co
cd example
cp EXAMPLE.env .env
```
Finally, insert yout Thirdweb client id in specified location of `example/.env` file:
Finally, insert your Thirdweb client id in specified location of `example/.env` file:
```
THIRD_WEB_CLIENT_ID=INSERT_CLIENT_ID_HERE
```
Expand Down Expand Up @@ -53,4 +53,4 @@ Running tests locally is useful when updating GitHub actions, or locally testing
5. You can stop the XMTP server with the following command:
```bash
docker-compose -p xmtp -f dev/local/docker-compose.yml down
```
```
6 changes: 3 additions & 3 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties
ENV['RCT_NEW_ARCH_ENABLED'] = podfile_properties['newArchEnabled'] == 'true' ? '1' : '0'
ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] = '1' if podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR'] == 'true'

platform :ios, '16.0'
platform :ios, '14.0'
install! 'cocoapods',
:deterministic_uuids => false

Expand Down Expand Up @@ -85,11 +85,11 @@ target 'xmtpreactnativesdkexample' do
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '16.0'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
end
end
project.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '16.0'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
end
end
end
Expand Down
26 changes: 13 additions & 13 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ PODS:
- hermes-engine/Pre-built (= 0.71.14)
- hermes-engine/Pre-built (0.71.14)
- libevent (2.1.12)
- LibXMTP (0.5.6-beta0)
- LibXMTP (0.5.8-beta5)
- Logging (1.0.0)
- MessagePacker (0.4.7)
- MMKV (1.3.7):
- MMKVCore (~> 1.3.7)
- MMKVCore (1.3.7)
- MMKV (1.3.9):
- MMKVCore (~> 1.3.9)
- MMKVCore (1.3.9)
- OpenSSL-Universal (1.1.2200)
- RCT-Folly (2021.07.22.00):
- boost
Expand Down Expand Up @@ -449,16 +449,16 @@ PODS:
- GenericJSON (~> 2.0)
- Logging (~> 1.0.0)
- secp256k1.swift (~> 0.1)
- XMTP (0.13.7):
- XMTP (0.14.13):
- Connect-Swift (= 0.12.0)
- GzipSwift
- LibXMTP (= 0.5.6-beta0)
- LibXMTP (= 0.5.8-beta5)
- web3.swift
- XMTPReactNative (0.1.0):
- ExpoModulesCore
- MessagePacker
- secp256k1.swift
- XMTP (= 0.13.7)
- XMTP (= 0.14.13)
- Yoga (1.14.0)

DEPENDENCIES:
Expand Down Expand Up @@ -711,11 +711,11 @@ SPEC CHECKSUMS:
GzipSwift: 893f3e48e597a1a4f62fafcb6514220fcf8287fa
hermes-engine: d7cc127932c89c53374452d6f93473f1970d8e88
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
LibXMTP: e7682dedb10e18343c011280d494a8e4a43d9eb7
LibXMTP: ee1591fdb51bc6cc690c1a9ba10792ccc2104328
Logging: 9ef4ecb546ad3169398d5a723bc9bea1c46bef26
MessagePacker: ab2fe250e86ea7aedd1a9ee47a37083edd41fd02
MMKV: 36a22a9ec84c9bb960613a089ddf6f48be9312b0
MMKVCore: 158e61c8516401a9fac730288acb29e6fc19bbf9
MMKV: 817ba1eea17421547e01e087285606eb270a8dcb
MMKVCore: af055b00e27d88cd92fad301c5fecd1ff9b26dd9
OpenSSL-Universal: 6e1ae0555546e604dbc632a2b9a24a9c46c41ef6
RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1
RCTRequired: e9df143e880d0e879e7a498dc06923d728809c79
Expand Down Expand Up @@ -763,10 +763,10 @@ SPEC CHECKSUMS:
secp256k1.swift: a7e7a214f6db6ce5db32cc6b2b45e5c4dd633634
SwiftProtobuf: 407a385e97fd206c4fbe880cc84123989167e0d1
web3.swift: 2263d1e12e121b2c42ffb63a5a7beb1acaf33959
XMTP: 16bd630ff61081d3a325619a26ea176ed256d419
XMTPReactNative: 4716836807cb33c72bde0846ac46b3fe923a3625
XMTP: a9e7382ec5b57eeda3df7b177f034d061e3c9b61
XMTPReactNative: c4c859a489af84b225508567a16f7cf977f85c8a
Yoga: e71803b4c1fff832ccf9b92541e00f9b873119b9

PODFILE CHECKSUM: 95d6ace79946933ecf80684613842ee553dd76a2
PODFILE CHECKSUM: 0e6fe50018f34e575d38dc6a1fdf1f99c9596cdd

COCOAPODS: 1.15.2
9 changes: 8 additions & 1 deletion example/src/LaunchScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,14 @@ export default function LaunchScreen(
console.log('Pre Enable Identity Callback')
}

const preAuthenticateToInboxCallback = async () => {
console.log('Pre Authenticate To Inbox Callback')
}

const networkOptions = [
{ key: 0, label: 'dev' },
{ key: 1, label: 'local' },
// { key: 2, label: 'production' },
{ key: 2, label: 'production' },
]

const groupOptions = [
Expand Down Expand Up @@ -222,8 +226,10 @@ export default function LaunchScreen(
XMTP.Client.create(signer, {
env: selectedNetwork,
appVersion,
codecs: supportedCodecs,
preCreateIdentityCallback,
preEnableIdentityCallback,
preAuthenticateToInboxCallback,
enableV3: enableGroups === 'true',
dbEncryptionKey,
})
Expand Down Expand Up @@ -258,6 +264,7 @@ export default function LaunchScreen(
codecs: supportedCodecs,
preCreateIdentityCallback,
preEnableIdentityCallback,
preAuthenticateToInboxCallback,
enableV3: enableGroups === 'true',
dbEncryptionKey,
})
Expand Down
14 changes: 7 additions & 7 deletions example/src/TestScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useRoute } from '@react-navigation/native'
import React, { useEffect, useState } from 'react'
import { View, Text, Button, ScrollView } from 'react-native'

import { createdAtTests } from './tests/createdAtTests'
import { groupPerformanceTests } from './tests/groupPerformanceTests'
import { groupPermissionsTests } from './tests/groupPermissionsTests'
import { groupTests } from './tests/groupTests'
import { restartStreamTests } from './tests/restartStreamsTests'
Expand Down Expand Up @@ -107,9 +107,9 @@ export enum TestCategory {
all = 'all',
tests = 'tests',
group = 'group',
createdAt = 'createdAt',
restartStreans = 'restartStreams',
groupPermissions = 'groupPermissions',
groupPerformance = 'groupPerformance',
}

export default function TestScreen(): JSX.Element {
Expand All @@ -121,9 +121,9 @@ export default function TestScreen(): JSX.Element {
const allTests = [
...tests,
...groupTests,
...createdAtTests,
...restartStreamTests,
...groupPermissionsTests,
...groupPerformanceTests,
]
let activeTests, title
switch (params.testSelection) {
Expand All @@ -139,10 +139,6 @@ export default function TestScreen(): JSX.Element {
activeTests = groupTests
title = 'Group Unit Tests'
break
case TestCategory.createdAt:
activeTests = createdAtTests
title = 'Created At Unit Tests'
break
case TestCategory.restartStreans:
activeTests = restartStreamTests
title = 'Restart Streams Unit Tests'
Expand All @@ -151,6 +147,10 @@ export default function TestScreen(): JSX.Element {
activeTests = groupPermissionsTests
title = 'Group Permissions Unit Tests'
break
case TestCategory.groupPerformance:
activeTests = groupPerformanceTests
title = 'Group Performance Unit Tests'
break
}

return (
Expand Down
Loading
Loading