From 79f62a90490d66e58ef4aa044d5fb1917f73208e Mon Sep 17 00:00:00 2001 From: cameronvoell Date: Wed, 14 Aug 2024 14:52:02 -0700 Subject: [PATCH 1/2] only add native logs if it contains the string libxmtp --- ios/XMTPModule.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/XMTPModule.swift b/ios/XMTPModule.swift index cfb98b133..12b87768d 100644 --- a/ios/XMTPModule.swift +++ b/ios/XMTPModule.swift @@ -1490,7 +1490,7 @@ public class XMTPModule: Module { let entries = try logStore.getEntries(at: position) for entry in entries { - if let logEntry = entry as? OSLogEntryLog { + if let logEntry = entry as? OSLogEntryLog, logEntry.composedMessage.contains("libxmtp") { logOutput.append("\(logEntry.date): \(logEntry.composedMessage)\n") } } From d62bbbc8c8bd60eaa7a6e839774994190d343626 Mon Sep 17 00:00:00 2001 From: cameronvoell Date: Thu, 15 Aug 2024 16:51:51 -0700 Subject: [PATCH 2/2] fix: show libxmtp logs on iOS --- example/src/LaunchScreen.tsx | 2 +- ios/XMTPReactNative.podspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/src/LaunchScreen.tsx b/example/src/LaunchScreen.tsx index 48d8f7ab3..91332479d 100644 --- a/example/src/LaunchScreen.tsx +++ b/example/src/LaunchScreen.tsx @@ -106,7 +106,7 @@ export default function LaunchScreen( const networkOptions = [ { key: 0, label: 'dev' }, { key: 1, label: 'local' }, - // { key: 2, label: 'production' }, + { key: 2, label: 'production' }, ] const groupOptions = [ diff --git a/ios/XMTPReactNative.podspec b/ios/XMTPReactNative.podspec index 0121f9abc..2da5c6df7 100644 --- a/ios/XMTPReactNative.podspec +++ b/ios/XMTPReactNative.podspec @@ -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.14.1" + s.dependency "XMTP", "= 0.14.3" end