Skip to content

Commit d553558

Browse files
authored
Merge branch 'main' into alwx/improvement/core-0.80
2 parents bd74d45 + 2104bb9 commit d553558

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/core/RNSentryCocoaTester/RNSentryCocoaTesterTests/RNSentryTests.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ - (void)testCreateOptionsWithDictionaryNativeCrashHandlingDisabled
133133
error:&error];
134134
XCTAssertNotNil(actualOptions, @"Did not create sentry options");
135135
XCTAssertNil(error, @"Should not pass no error");
136-
XCTAssertEqual([actualOptions.integrations containsObject:@"SentryCrashIntegration"], false,
137-
@"Did not disable native crash handling");
136+
XCTAssertFalse(actualOptions.enableCrashHandler, @"Did not disable native crash handling");
138137
}
139138

140139
- (void)testCreateOptionsWithDictionaryAutoPerformanceTracingDisabled

packages/core/ios/RNSentry.mm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,7 @@ - (SentryOptions *_Nullable)createOptionsWithDictionary:(NSDictionary *_Nonnull)
264264
BOOL enableNativeCrashHandling = [mutableOptions[@"enableNativeCrashHandling"] boolValue];
265265

266266
if (!enableNativeCrashHandling) {
267-
NSMutableArray *integrations = sentryOptions.integrations.mutableCopy;
268-
[integrations removeObject:@"SentryCrashIntegration"];
269-
sentryOptions.integrations = integrations;
267+
sentryOptions.enableCrashHandler = NO;
270268
}
271269
}
272270

0 commit comments

Comments
 (0)