Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion packages/core/ios/RNSentryStart.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#import "RNSentryStart.h"
#import "RNSentryExperimentalOptions.h"
#import "RNSentryReplay.h"
#import "RNSentryVersion.h"

Expand Down Expand Up @@ -40,7 +41,9 @@ + (SentryOptions *_Nullable)createOptionsWithDictionary:(NSDictionary *_Nonnull)
NSMutableDictionary *mutableOptions = [options mutableCopy];

#if SENTRY_TARGET_REPLAY_SUPPORTED
[RNSentryReplay updateOptions:mutableOptions];
BOOL isSessionReplayEnabled = [RNSentryReplay updateOptions:mutableOptions];
#else
BOOL isSessionReplayEnabled = NO;
#endif

SentryOptions *sentryOptions = [SentryOptionsInternal initWithDict:mutableOptions
Expand Down Expand Up @@ -96,6 +99,11 @@ + (SentryOptions *_Nullable)createOptionsWithDictionary:(NSDictionary *_Nonnull)
}
}

if (isSessionReplayEnabled) {
[RNSentryExperimentalOptions setEnableSessionReplayInUnreliableEnvironment:YES
sentryOptions:sentryOptions];
}

return sentryOptions;
}

Expand Down
Loading