Skip to content

Commit 3d76fae

Browse files
committed
fix: module access
1 parent d5c8e67 commit 3d76fae

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

RNSentry.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ is_new_arch_enabled = ENV["RCT_NEW_ARCH_ENABLED"] == "1"
1414
is_using_hermes = (ENV['USE_HERMES'] == nil && is_hermes_default) || ENV['USE_HERMES'] == '1'
1515
new_arch_enabled_flag = (is_new_arch_enabled ? folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED" : "")
1616
sentry_profiling_supported_flag = (is_profiling_supported ? " -DSENTRY_PROFILING_SUPPORTED=1" : "")
17-
other_cflags = "$(inherited) -fcxx-modules -fmodules" + new_arch_enabled_flag + sentry_profiling_supported_flag
17+
other_cflags = "$(inherited)" + new_arch_enabled_flag + sentry_profiling_supported_flag
1818

1919
Pod::Spec.new do |s|
2020
s.name = 'RNSentry'

ios/RNSentry.mm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
#import "RNSentryEvents.h"
3838
#import "RNSentryDependencyContainer.h"
39-
#import "RNSentryBreadcrumbConverter.h"
39+
#import "RNSentrySessionReplay.h"
4040

4141
#if SENTRY_HAS_UIKIT
4242
#import "RNSentryRNSScreen.h"
@@ -91,8 +91,7 @@ + (BOOL)requiresMainQueueSetup {
9191

9292
[SentrySDK startWithOptions:sentryOptions];
9393

94-
RNSentryBreadcrumbConverter* breadcrumbConverter = [[RNSentryBreadcrumbConverter alloc] init];
95-
[PrivateSentrySDKOnly configureSessionReplayWith: breadcrumbConverter screenshotProvider: nil];
94+
[RNSentrySessionReplay setup];
9695

9796
#if TARGET_OS_IPHONE || TARGET_OS_MACCATALYST
9897
BOOL appIsActive = [[UIApplication sharedApplication] applicationState] == UIApplicationStateActive;

ios/RNSentrySessionReplay.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
@interface RNSentrySessionReplay : NSObject
3+
4+
+ (void)setup;
5+
6+
@end

ios/RNSentrySessionReplay.m

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#import "RNSentrySessionReplay.h"
2+
#import "RNSentryBreadcrumbConverter.h"
3+
4+
@implementation RNSentrySessionReplay {}
5+
6+
+ (void)setup {
7+
RNSentryBreadcrumbConverter *breadcrumbConverter =
8+
[[RNSentryBreadcrumbConverter alloc] init];
9+
[PrivateSentrySDKOnly configureSessionReplayWith:breadcrumbConverter
10+
screenshotProvider:nil];
11+
}
12+
13+
@end

0 commit comments

Comments
 (0)