File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#import " RNSentrySDK.h"
22#import " RNSentryStart.h"
3+ #import < Sentry/PrivateSentrySDKOnly.h>
34#import < Sentry/Sentry.h>
4- #import < Sentry/SentryOptionsInternal.h>
55
66static NSString *SENTRY_OPTIONS_RESOURCE_NAME = @" sentry.options" ;
77static 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 );
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments