File tree Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 13
13
- Bump JavaScript SDK from v8.54.0 to v8.55.0 ([ #4981 ] ( https://github.com/getsentry/sentry-react-native/pull/4981 ) )
14
14
- [ changelog] ( https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#8550 )
15
15
- [ diff] ( https://github.com/getsentry/sentry-javascript/compare/8.54.0...8.55.0 )
16
+ - Bump Cocoa SDK from v8.53.1 to v8.53.2 ([ #4986 ] ( https://github.com/getsentry/sentry-react-native/pull/4986 ) )
17
+ - [ changelog] ( https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8532 )
18
+ - [ diff] ( https://github.com/getsentry/sentry-cocoa/compare/8.53.1...8.53.2 )
16
19
17
20
## 6.17.0
18
21
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ Pod::Spec.new do |s|
44
44
45
45
s . compiler_flags = other_cflags
46
46
47
- s . dependency 'Sentry/HybridSDK' , '8.53.1 '
47
+ s . dependency 'Sentry/HybridSDK' , '8.53.2 '
48
48
49
49
if defined? install_modules_dependencies
50
50
# Default React Native dependencies for 0.71 and above (new and legacy architecture)
Original file line number Diff line number Diff line change @@ -50,10 +50,23 @@ - (instancetype _Nonnull)init
50
50
SentryRRWebEvent *nativeBreadcrumb = [self ->defaultConverter convertFrom: breadcrumb];
51
51
52
52
// ignore native navigation breadcrumbs
53
- if (nativeBreadcrumb && nativeBreadcrumb.data && nativeBreadcrumb.data [@" payload" ]
54
- && nativeBreadcrumb.data [@" payload" ][@" category" ] &&
55
- [nativeBreadcrumb.data[@" payload" ][@" category" ] isEqualToString: @" navigation" ]) {
56
- return nil ;
53
+ if (nativeBreadcrumb) {
54
+ @try {
55
+ id data = [nativeBreadcrumb valueForKey: @" data" ];
56
+ if (data && [data isKindOfClass: [NSDictionary class ]]) {
57
+ NSDictionary *dataDict = (NSDictionary *)data;
58
+ id payload = dataDict[@" payload" ];
59
+ if (payload && [payload isKindOfClass: [NSDictionary class ]]) {
60
+ NSDictionary *payloadDict = (NSDictionary *)payload;
61
+ NSString *category = payloadDict[@" category" ];
62
+ if ([category isEqualToString: @" navigation" ]) {
63
+ return nil ;
64
+ }
65
+ }
66
+ }
67
+ } @catch (NSException *exception) {
68
+ // Just continue without ignoring native navigation breadcrumbs
69
+ }
57
70
}
58
71
59
72
return nativeBreadcrumb;
You can’t perform that action at this time.
0 commit comments