Skip to content

Commit 093a11f

Browse files
authored
Merge 8832cf9 into 29a9b67
2 parents 29a9b67 + 8832cf9 commit 093a11f

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Fixes
66

7+
- 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))
78
- TimetoTisplay correctly warns about not supporting the new React Native architecture ([#4160](https://github.com/getsentry/sentry-react-native/pull/4160))
89
- Native Wrapper method `setContext` ensures only values convertible to NativeMap are passed ([#4168](https://github.com/getsentry/sentry-react-native/pull/4168))
910
- Native Wrapper method `setExtra` ensures only stringified values are passed ([#4168](https://github.com/getsentry/sentry-react-native/pull/4168))

packages/core/RNSentry.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Pod::Spec.new do |s|
3737

3838
s.compiler_flags = other_cflags
3939

40-
s.dependency 'Sentry/HybridSDK', '8.37.0'
40+
s.dependency 'Sentry/HybridSDK', '8.38.0-beta.1'
4141

4242
if defined? install_modules_dependencies
4343
# Default React Native dependencies for 0.71 and above (new and legacy architecture)

packages/core/android/src/main/java/io/sentry/react/RNSentryBreadcrumb.java

+4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ public static Breadcrumb fromMap(ReadableMap from) {
4747
breadcrumb.setCategory(from.getString("category"));
4848
}
4949

50+
if (from.hasKey("origin")) {
51+
breadcrumb.setOrigin(from.getString("origin"));
52+
}
53+
5054
if (from.hasKey("level")) {
5155
switch (from.getString("level")) {
5256
case "fatal":

packages/core/ios/RNSentryBreadcrumb.m

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ +(SentryBreadcrumb*) from: (NSDictionary *) dict
2323

2424
[crumb setLevel:sentryLevel];
2525
[crumb setCategory:dict[@"category"]];
26+
[crumb setOrigin:dict[@"origin"]];
2627
[crumb setType:dict[@"type"]];
2728
[crumb setMessage:dict[@"message"]];
2829
[crumb setData:dict[@"data"]];

0 commit comments

Comments
 (0)