Skip to content

Commit

Permalink
Merge 6095218 into 7259f12
Browse files Browse the repository at this point in the history
  • Loading branch information
antonis authored Oct 11, 2024
2 parents 7259f12 + 6095218 commit e62bf30
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion RNSentry.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions android/src/main/java/io/sentry/react/RNSentryBreadcrumb.java
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
1 change: 1 addition & 0 deletions ios/RNSentryBreadcrumb.m
Original file line number Diff line number Diff line change
Expand Up @@ -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"]];
Expand Down

0 comments on commit e62bf30

Please sign in to comment.