Skip to content

Commit 19203e6

Browse files
committed
Fix build issue
1 parent 37aab94 commit 19203e6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/core/ios/RNSentrySDK.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#import "RNSentrySDK.h"
22
#import "RNSentryStart.h"
3+
#import <Sentry/PrivateSentrySDKOnly.h>
34
#import <Sentry/Sentry.h>
4-
#import <Sentry/SentryOptionsInternal.h>
55

66
static NSString *SENTRY_OPTIONS_RESOURCE_NAME = @"sentry.options";
77
static NSString *SENTRY_OPTIONS_RESOURCE_TYPE = @"json";
@@ -60,7 +60,7 @@ + (void)start:(NSString *)path configureOptions:(void (^)(SentryOptions *options
6060
if (options == nil) {
6161
// Fallback in case that options file could not be parsed.
6262
NSError *fallbackError = nil;
63-
options = [SentryOptionsInternal initWithDict:@{} didFailWithError:&fallbackError];
63+
options = [PrivateSentrySDKOnly optionsWithDictionary:@{} didFailWithError:&fallbackError];
6464
if (fallbackError != nil) {
6565
NSLog(@"[RNSentry] Failed to create fallback options with error: %@",
6666
fallbackError.localizedDescription);

packages/core/ios/RNSentryStart.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ + (SentryOptions *_Nullable)createOptionsWithDictionary:(NSDictionary *_Nonnull)
4646
BOOL isSessionReplayEnabled = NO;
4747
#endif
4848

49-
SentryOptions *sentryOptions = [SentryOptionsInternal initWithDict:mutableOptions
50-
didFailWithError:errorPointer];
49+
SentryOptions *sentryOptions = [PrivateSentrySDKOnly optionsWithDictionary:mutableOptions
50+
didFailWithError:errorPointer];
5151
if (*errorPointer != nil) {
5252
return nil;
5353
}

0 commit comments

Comments
 (0)