File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11#import " RNSentryStart.h"
2+ #import " RNSentryExperimentalOptions.h"
23#import " RNSentryReplay.h"
34#import " RNSentryVersion.h"
45
@@ -40,7 +41,9 @@ + (SentryOptions *_Nullable)createOptionsWithDictionary:(NSDictionary *_Nonnull)
4041 NSMutableDictionary *mutableOptions = [options mutableCopy ];
4142
4243#if SENTRY_TARGET_REPLAY_SUPPORTED
43- [RNSentryReplay updateOptions: mutableOptions];
44+ BOOL isSessionReplayEnabled = [RNSentryReplay updateOptions: mutableOptions];
45+ #else
46+ BOOL isSessionReplayEnabled = NO ;
4447#endif
4548
4649 SentryOptions *sentryOptions = [SentryOptionsInternal initWithDict: mutableOptions
@@ -96,6 +99,11 @@ + (SentryOptions *_Nullable)createOptionsWithDictionary:(NSDictionary *_Nonnull)
9699 }
97100 }
98101
102+ if (isSessionReplayEnabled) {
103+ [RNSentryExperimentalOptions setEnableSessionReplayInUnreliableEnvironment: YES
104+ sentryOptions: sentryOptions];
105+ }
106+
99107 return sentryOptions;
100108}
101109
You can’t perform that action at this time.
0 commit comments