Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions package-dev/Plugins/iOS/SentryNativeBridge.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#import <Sentry/SentryOptions+HybridSDKs.h>
#import <Sentry/PrivateSentrySDKOnly.h>
#import <Sentry/Sentry.h>

Expand Down Expand Up @@ -33,11 +34,12 @@ void SentryNativeBridgeOptionsSetInt(const void *options, const char *name, int3
void SentryNativeBridgeStartWithOptions(const void *options)
{
NSMutableDictionary *dictOptions = (__bridge_transfer NSMutableDictionary *)options;
id sentryOptions = [[SentryOptions alloc]
performSelector:@selector(initWithDict:didFailWithError:)
withObject:dictOptions withObject:nil];

[SentrySDK performSelector:@selector(startWithOptions:) withObject:sentryOptions];
NSError *error = nil;
SentryOptions *sentryOptions = [[SentryOptions alloc] initWithDict:dictOptions didFailWithError:&error];

if (sentryOptions) {
[SentrySDK startWithOptions:sentryOptions];
}
}

int SentryNativeBridgeCrashedLastRun() { return [SentrySDK crashedLastRun] ? 1 : 0; }
Expand Down
Loading