diff --git a/CHANGELOG.md b/CHANGELOG.md index 88edc6e3ed..12926baf7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Fixes +- Adds breadcrumb origin field to prevent exception capture context from being overwritten by native scope sync ([#4124](https://github.com/getsentry/sentry-react-native/pull/4124)) - Handles error with string cause ([#4163](https://github.com/getsentry/sentry-react-native/pull/4163)) - Use `appLaunchedInForeground` to determine invalid app start data on Android ([#4146](https://github.com/getsentry/sentry-react-native/pull/4146)) - Upload source maps for all release variants on Android (not only the last found) ([#4125](https://github.com/getsentry/sentry-react-native/pull/4125)) diff --git a/RNSentry.podspec b/RNSentry.podspec index 1c902a7c2f..beca2ba0cf 100644 --- a/RNSentry.podspec +++ b/RNSentry.podspec @@ -37,7 +37,7 @@ Pod::Spec.new do |s| s.compiler_flags = other_cflags - s.dependency 'Sentry/HybridSDK', '8.37.0' + s.dependency 'Sentry/HybridSDK', '8.38.0-beta.1' if defined? install_modules_dependencies # Default React Native dependencies for 0.71 and above (new and legacy architecture) diff --git a/android/src/main/java/io/sentry/react/RNSentryBreadcrumb.java b/android/src/main/java/io/sentry/react/RNSentryBreadcrumb.java index 3fcfffcf83..2c7db0be0d 100644 --- a/android/src/main/java/io/sentry/react/RNSentryBreadcrumb.java +++ b/android/src/main/java/io/sentry/react/RNSentryBreadcrumb.java @@ -48,6 +48,10 @@ public static Breadcrumb fromMap(ReadableMap from) { breadcrumb.setCategory(from.getString("category")); } + if (from.hasKey("origin")) { + breadcrumb.setOrigin(from.getString("origin")); + } + if (from.hasKey("level")) { switch (from.getString("level")) { case "fatal": diff --git a/ios/RNSentryBreadcrumb.m b/ios/RNSentryBreadcrumb.m index e900ba4833..4d0b094eb6 100644 --- a/ios/RNSentryBreadcrumb.m +++ b/ios/RNSentryBreadcrumb.m @@ -23,6 +23,7 @@ +(SentryBreadcrumb*) from: (NSDictionary *) dict [crumb setLevel:sentryLevel]; [crumb setCategory:dict[@"category"]]; + [crumb setOrigin:dict[@"origin"]]; [crumb setType:dict[@"type"]]; [crumb setMessage:dict[@"message"]]; [crumb setData:dict[@"data"]];