Bluesky app fork with some witchin' additions 💫

Temporary Sentry hack patch for iOS 18 (#5400)

authored by hailey.at and committed by

GitHub 8d560de4 67895f7f

+31 -15
+31
patches/@sentry+react-native+5.32.0.patch
··· 1 + diff --git a/node_modules/@sentry/react-native/dist/js/utils/ignorerequirecyclelogs.js b/node_modules/@sentry/react-native/dist/js/utils/ignorerequirecyclelogs.js 2 + index 7e0b4cd..177454c 100644 3 + --- a/node_modules/@sentry/react-native/dist/js/utils/ignorerequirecyclelogs.js 4 + +++ b/node_modules/@sentry/react-native/dist/js/utils/ignorerequirecyclelogs.js 5 + @@ -3,6 +3,8 @@ import { LogBox } from 'react-native'; 6 + * This is a workaround for using fetch on RN, this is a known issue in react-native and only generates a warning. 7 + */ 8 + export function ignoreRequireCycleLogs() { 9 + - LogBox.ignoreLogs(['Require cycle:']); 10 + + try { 11 + + LogBox.ignoreLogs(['Require cycle:']); 12 + + } catch (e) {} 13 + } 14 + //# sourceMappingURL=ignorerequirecyclelogs.js.map 15 + \ No newline at end of file 16 + diff --git a/node_modules/@sentry/react-native/ios/RNSentry.mm b/node_modules/@sentry/react-native/ios/RNSentry.mm 17 + index 392869c..29bcd8b 100644 18 + --- a/node_modules/@sentry/react-native/ios/RNSentry.mm 19 + +++ b/node_modules/@sentry/react-native/ios/RNSentry.mm 20 + @@ -452,6 +452,11 @@ - (NSDictionary*) fetchNativeStackFramesBy: (NSArray<NSNumber*>*)instructionsAdd 21 + resolve:(RCTPromiseResolveBlock)resolve 22 + rejecter:(RCTPromiseRejectBlock)reject) 23 + { 24 + + if ([rawBytes isKindOfClass:[NSArray class]]) { 25 + + resolve(@YES); 26 + + return; 27 + + } 28 + + 29 + NSData *data = [[NSData alloc] initWithBase64EncodedString:rawBytes options:0]; 30 + 31 + SentryEnvelope *envelope = [PrivateSentrySDKOnly envelopeWithData:data];
-15
patches/@sentry+react-native+5.5.0.patch
··· 1 - diff --git a/node_modules/@sentry/react-native/dist/js/utils/ignorerequirecyclelogs.js b/node_modules/@sentry/react-native/dist/js/utils/ignorerequirecyclelogs.js 2 - index 7e0b4cd..177454c 100644 3 - --- a/node_modules/@sentry/react-native/dist/js/utils/ignorerequirecyclelogs.js 4 - +++ b/node_modules/@sentry/react-native/dist/js/utils/ignorerequirecyclelogs.js 5 - @@ -3,6 +3,8 @@ import { LogBox } from 'react-native'; 6 - * This is a workaround for using fetch on RN, this is a known issue in react-native and only generates a warning. 7 - */ 8 - export function ignoreRequireCycleLogs() { 9 - - LogBox.ignoreLogs(['Require cycle:']); 10 - + try { 11 - + LogBox.ignoreLogs(['Require cycle:']); 12 - + } catch (e) {} 13 - } 14 - //# sourceMappingURL=ignorerequirecyclelogs.js.map 15 - \ No newline at end of file