Skip to content
Merged
Changes from all commits
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
8 changes: 4 additions & 4 deletions ios/RNSentry.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ + (NSRegularExpression *)frameRegex {

RCT_EXPORT_METHOD(startWithDsnString:(NSString * _Nonnull)dsnString)
{
[SentryClient setShared:[[SentryClient alloc] initWithDsnString:[RCTConvert NSString:dsnString]]];
[SentryClient setShared:[[SentryClient alloc] initWithDsnString:dsnString]];
[[SentryClient shared] startCrashHandler];
}

Expand Down Expand Up @@ -111,7 +111,7 @@ + (NSRegularExpression *)frameRegex {

RCT_EXPORT_METHOD(captureMessage:(NSString * _Nonnull)message level:(int)level)
{
[[SentryClient shared] captureMessage:[RCTConvert NSString:message] level:level];
[[SentryClient shared] captureMessage:message level:level];
}

RCT_EXPORT_METHOD(setLogLevel:(int)level)
Expand All @@ -121,12 +121,12 @@ + (NSRegularExpression *)frameRegex {

RCT_EXPORT_METHOD(setExtras:(NSDictionary * _Nonnull)extras)
{
[SentryClient shared].extra = [RCTConvert NSDictionary:extras];
[SentryClient shared].extra = extras;
}

RCT_EXPORT_METHOD(setTags:(NSDictionary * _Nonnull)tags)
{
[SentryClient shared].tags = [self sanitizeDictionary:[RCTConvert NSDictionary:tags]];
[SentryClient shared].tags = [self sanitizeDictionary:tags];
}

RCT_EXPORT_METHOD(setUser:(NSDictionary * _Nonnull)user)
Expand Down