Skip to content

Commit

Permalink
Update SentryBaseIntegration.m
Browse files Browse the repository at this point in the history
  • Loading branch information
brustolin committed Dec 23, 2024
1 parent 9bf30ed commit 6588600
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions Sources/Sentry/SentryBaseIntegration.m
Original file line number Diff line number Diff line change
Expand Up @@ -148,21 +148,16 @@ - (BOOL)shouldBeEnabledWithOptions:(SentryOptions *)options
[self logWithOptionName:@"attachViewHierarchy"];
return NO;
}

#endif
#if SENTRY_TARGET_REPLAY_SUPPORTED
if (integrationOptions & kIntegrationOptionEnableReplay) {
if (@available(iOS 16.0, tvOS 16.0, *)) {
if (options.sessionReplay.onErrorSampleRate == 0
&& options.sessionReplay.sessionSampleRate == 0) {
[self logWithOptionName:@"sessionReplaySettings"];
return NO;
}
} else {
[self logWithReason:@"Session replay requires iOS 16 or above"];
if (options.sessionReplay.onErrorSampleRate == 0
&& options.sessionReplay.sessionSampleRate == 0) {
[self logWithOptionName:@"sessionReplaySettings"];
return NO;
}
}
#endif

if ((integrationOptions & kIntegrationOptionEnableCrashHandler)
&& !options.enableCrashHandler) {
[self logWithOptionName:@"enableCrashHandler"];
Expand Down

0 comments on commit 6588600

Please sign in to comment.