Skip to content

Commit

Permalink
Merge branch 'main' into feat/maxCacheItems
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto authored Mar 4, 2022
2 parents 8ad0ca9 + 42a4e82 commit 1f6de32
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Changelog

- feat: Support setting maxCacheItems #2102
## Unreleased

- feat: Support enableNativeCrashHandling for iOS #2101
- Bump: Sentry Cocoa 7.10.0 #2100
- feat: Support setting maxCacheItems #2102

## 3.2.14-beta.2

Expand Down
11 changes: 11 additions & 0 deletions ios/RNSentry.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ + (BOOL)requiresMainQueueSetup {
reject(@"SentryReactNative", error.localizedDescription, error);
return;
}

if ([mutableOptions valueForKey:@"enableNativeCrashHandling"] != nil) {
BOOL enableNativeCrashHandling = (BOOL)[mutableOptions valueForKey:@"enableNativeCrashHandling"];

if (!enableNativeCrashHandling) {
NSMutableArray *integrations = sentryOptions.integrations.mutableCopy;
[integrations removeObject:@"SentryCrashIntegration"];
sentryOptions.integrations = integrations;
}
}

[SentrySDK startWithOptionsObject:sentryOptions];

// If the app is active/in foreground, and we have not sent the SentryHybridSdkDidBecomeActive notification, send it.
Expand Down

0 comments on commit 1f6de32

Please sign in to comment.