Skip to content

Commit

Permalink
bump the pod and fix up the test
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Feb 29, 2024
1 parent 0215e4b commit ef86836
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ PODS:
- GenericJSON (~> 2.0)
- Logging (~> 1.0.0)
- secp256k1.swift (~> 0.1)
- XMTP (0.8.13):
- XMTP (0.8.14):
- Connect-Swift (= 0.3.0)
- GzipSwift
- LibXMTP (= 0.4.2-beta3)
Expand All @@ -455,7 +455,7 @@ PODS:
- ExpoModulesCore
- MessagePacker
- secp256k1.swift
- XMTP (= 0.8.13)
- XMTP (= 0.8.14)
- Yoga (1.14.0)

DEPENDENCIES:
Expand Down Expand Up @@ -756,8 +756,8 @@ SPEC CHECKSUMS:
secp256k1.swift: a7e7a214f6db6ce5db32cc6b2b45e5c4dd633634
SwiftProtobuf: b02b5075dcf60c9f5f403000b3b0c202a11b6ae1
web3.swift: 2263d1e12e121b2c42ffb63a5a7beb1acaf33959
XMTP: 0424f5521008373eaa0a8cdba9d4244ba13700f2
XMTPReactNative: cba9ca301d6ae82f649702e5befb3551f98d679f
XMTP: f716708390140ef0542425898888e2346e04174e
XMTPReactNative: 145687cf515815fcc26f89e4347c44814708981b
Yoga: e71803b4c1fff832ccf9b92541e00f9b873119b9

PODFILE CHECKSUM: 95d6ace79946933ecf80684613842ee553dd76a2
Expand Down
8 changes: 6 additions & 2 deletions example/src/tests/groupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ test('can make a MLS V3 client', async () => {
})

test('can delete a local database', async () => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const client = await Client.createRandom({
let client = await Client.createRandom({
env: 'local',
appVersion: 'Testing/0.0.0',
enableAlphaMls: true,
Expand All @@ -49,6 +48,11 @@ test('can delete a local database', async () => {
)

await client.deleteLocalDatabase()
client = await Client.createRandom({
env: 'local',
appVersion: 'Testing/0.0.0',
enableAlphaMls: true,
})
await client.conversations.syncGroups()
assert(
(await client.conversations.listGroups()).length === 0,
Expand Down
2 changes: 1 addition & 1 deletion ios/XMTPModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class XMTPModule: Module {
guard let client = await clientsManager.getClient(key: clientAddress) else {
throw Error.noClient
}
client.deleteLocalDatabase()
try client.deleteLocalDatabase()
}

//
Expand Down
2 changes: 1 addition & 1 deletion ios/XMTPReactNative.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ Pod::Spec.new do |s|
s.source_files = "**/*.{h,m,swift}"
s.dependency 'secp256k1.swift'
s.dependency "MessagePacker"
s.dependency "XMTP", "= 0.8.13"
s.dependency "XMTP", "= 0.8.14"
end

0 comments on commit ef86836

Please sign in to comment.