about summary refs log tree commit diff
path: root/patches
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-09-18 03:25:32 -0700
committerGitHub <noreply@github.com>2024-09-18 11:25:32 +0100
commit8d560de44b8fd4b69cd23ed234b43729c28f191b (patch)
tree4001267006abf14a4d67a45c48bc2be750592345 /patches
parent67895f7f99e7bf4e7542d7b2b0f5832080de936e (diff)
downloadvoidsky-8d560de44b8fd4b69cd23ed234b43729c28f191b.tar.zst
Temporary Sentry hack patch for iOS 18 (#5400)
Diffstat (limited to 'patches')
-rw-r--r--patches/@sentry+react-native+5.32.0.patch (renamed from patches/@sentry+react-native+5.5.0.patch)16
1 files changed, 16 insertions, 0 deletions
diff --git a/patches/@sentry+react-native+5.5.0.patch b/patches/@sentry+react-native+5.32.0.patch
index 2962aa44c..056b187bf 100644
--- a/patches/@sentry+react-native+5.5.0.patch
+++ b/patches/@sentry+react-native+5.32.0.patch
@@ -13,3 +13,19 @@ index 7e0b4cd..177454c 100644
  }
  //# sourceMappingURL=ignorerequirecyclelogs.js.map
 \ No newline at end of file
+diff --git a/node_modules/@sentry/react-native/ios/RNSentry.mm b/node_modules/@sentry/react-native/ios/RNSentry.mm
+index 392869c..29bcd8b 100644
+--- a/node_modules/@sentry/react-native/ios/RNSentry.mm
++++ b/node_modules/@sentry/react-native/ios/RNSentry.mm
+@@ -452,6 +452,11 @@ - (NSDictionary*) fetchNativeStackFramesBy: (NSArray<NSNumber*>*)instructionsAdd
+                   resolve:(RCTPromiseResolveBlock)resolve
+                   rejecter:(RCTPromiseRejectBlock)reject)
+ {
++    if ([rawBytes isKindOfClass:[NSArray class]]) {
++      resolve(@YES);
++      return;
++    }
++  
+     NSData *data = [[NSData alloc] initWithBase64EncodedString:rawBytes options:0];
+ 
+     SentryEnvelope *envelope = [PrivateSentrySDKOnly envelopeWithData:data];