Skip to content

Commit bb3ae79

Browse files
committed
fixes exportNativeLogs on iOS
1 parent 4cff9d7 commit bb3ae79

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ PODS:
454454
- CSecp256k1 (~> 0.2)
455455
- LibXMTP (= 3.0.20)
456456
- SQLCipher (= 4.5.7)
457-
- XMTPReactNative (3.1.7):
457+
- XMTPReactNative (3.1.8):
458458
- CSecp256k1 (~> 0.2)
459459
- ExpoModulesCore
460460
- MessagePacker
@@ -763,7 +763,7 @@ SPEC CHECKSUMS:
763763
SQLCipher: 5e6bfb47323635c8b657b1b27d25c5f1baf63bf5
764764
SwiftProtobuf: 4dbaffec76a39a8dc5da23b40af1a5dc01a4c02d
765765
XMTP: 3d82fe8598fe043a67ad93276084ab46a30a1fa3
766-
XMTPReactNative: cd9144370b01abf420c74dd773a82ca0c1a8633b
766+
XMTPReactNative: f0b7d6a9314de5ba377cc5d3d89ecd896cd564d5
767767
Yoga: e71803b4c1fff832ccf9b92541e00f9b873119b9
768768

769769
PODFILE CHECKSUM: 0e6fe50018f34e575d38dc6a1fdf1f99c9596cdd

example/src/tests/groupTests.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ function test(name: string, perform: () => Promise<boolean>) {
2525
groupTests.push({ name: String(counter++) + '. ' + name, run: perform })
2626
}
2727

28+
test('verify exportNativeLogs', async () => {
29+
await createClients(2)
30+
const logs = await Client.exportNativeLogs()
31+
assert(
32+
logs.includes('Created XMTP client for inbox_id'),
33+
'Logs should contain Initialized identity inbox_id='
34+
)
35+
return true
36+
})
37+
2838
test('can create a group with inbox ids default permissions', async () => {
2939
const [alix, bo, caro] = await createClients(3)
3040

ios/XMTPModule.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,9 +1934,7 @@ public class XMTPModule: Module {
19341934
let entries = try logStore.getEntries(at: position)
19351935

19361936
for entry in entries {
1937-
if let logEntry = entry as? OSLogEntryLog,
1938-
logEntry.composedMessage.contains("libxmtp")
1939-
{
1937+
if let logEntry = entry as? OSLogEntryLog {
19401938
logOutput.append(
19411939
"\(logEntry.date): \(logEntry.composedMessage)\n"
19421940
)

0 commit comments

Comments
 (0)