|
36 | 36 |
|
37 | 37 | #import "RNSentryEvents.h" |
38 | 38 | #import "RNSentryDependencyContainer.h" |
39 | | -#import "RNSentryBreadcrumbConverter.h" |
| 39 | +#import "RNSentrySessionReplay.h" |
40 | 40 |
|
41 | 41 | #if SENTRY_HAS_UIKIT |
42 | 42 | #import "RNSentryRNSScreen.h" |
@@ -91,8 +91,7 @@ + (BOOL)requiresMainQueueSetup { |
91 | 91 |
|
92 | 92 | [SentrySDK startWithOptions:sentryOptions]; |
93 | 93 |
|
94 | | - RNSentryBreadcrumbConverter* breadcrumbConverter = [[RNSentryBreadcrumbConverter alloc] init]; |
95 | | - [PrivateSentrySDKOnly configureSessionReplayWith: breadcrumbConverter screenshotProvider: nil]; |
| 94 | + [RNSentrySessionReplay setup]; |
96 | 95 |
|
97 | 96 | #if TARGET_OS_IPHONE || TARGET_OS_MACCATALYST |
98 | 97 | BOOL appIsActive = [[UIApplication sharedApplication] applicationState] == UIApplicationStateActive; |
@@ -585,19 +584,19 @@ - (NSDictionary*) fetchNativeStackFramesBy: (NSArray<NSNumber*>*)instructionsAdd |
585 | 584 | SentryBreadcrumb* breadcrumbInstance = [[SentryBreadcrumb alloc] init]; |
586 | 585 |
|
587 | 586 | NSString * levelString = breadcrumb[@"level"]; |
588 | | - SentryLevel sentryLevel; |
589 | | - if ([levelString isEqualToString:@"fatal"]) { |
590 | | - sentryLevel = kSentryLevelFatal; |
591 | | - } else if ([levelString isEqualToString:@"warning"]) { |
592 | | - sentryLevel = kSentryLevelWarning; |
593 | | - } else if ([levelString isEqualToString:@"error"]) { |
594 | | - sentryLevel = kSentryLevelError; |
595 | | - } else if ([levelString isEqualToString:@"debug"]) { |
596 | | - sentryLevel = kSentryLevelDebug; |
597 | | - } else { |
598 | | - sentryLevel = kSentryLevelInfo; |
599 | | - } |
600 | | - [breadcrumbInstance setLevel:sentryLevel]; |
| 587 | + // SentryLevel sentryLevel; |
| 588 | + // if ([levelString isEqualToString:@"fatal"]) { |
| 589 | + // sentryLevel = kSentryLevelFatal; |
| 590 | + // } else if ([levelString isEqualToString:@"warning"]) { |
| 591 | + // sentryLevel = kSentryLevelWarning; |
| 592 | + // } else if ([levelString isEqualToString:@"error"]) { |
| 593 | + // sentryLevel = kSentryLevelError; |
| 594 | + // } else if ([levelString isEqualToString:@"debug"]) { |
| 595 | + // sentryLevel = kSentryLevelDebug; |
| 596 | + // } else { |
| 597 | + // sentryLevel = kSentryLevelInfo; |
| 598 | + // } |
| 599 | + // [breadcrumbInstance setLevel:sentryLevel]; |
601 | 600 |
|
602 | 601 | [breadcrumbInstance setCategory:breadcrumb[@"category"]]; |
603 | 602 |
|
|
0 commit comments