-
-
Notifications
You must be signed in to change notification settings - Fork 352
Removes temporary flags after Cocoa Bump #5038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: deps/scripts/update-cocoa.sh
Are you sure you want to change the base?
Changes from 19 commits
6b7aad8
83f91bb
8ae835d
702b2fc
ed6a296
1d95a86
54af75e
c59bb69
a67956f
d6c0afc
ef4dd63
eed4e18
8956b09
3d17397
4ea0cda
4f3abd3
584af1e
dcd3b15
5124b3c
4b795ed
29f79b9
c3af0db
61df9c3
5dc8855
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
@interface SentryNativeInitialiser : NSObject | ||
|
||
+ (void)initializeSentry; | ||
|
||
@end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#import "SentryNativeInitialiser.h" | ||
@import Sentry; | ||
|
||
@implementation SentryNativeInitialiser | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A minor thing: probably it needs to be called There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well done! I wouldn't have noticed that nit There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
+ (void)initializeSentry | ||
{ | ||
[SentrySDK startWithConfigureOptions:^(SentryOptions *options) { | ||
// Only options set here will apply to the iOS SDK | ||
// Options from JS are not passed to the iOS SDK when initialized manually | ||
options.dsn = @"https://1df17bd4e543fdb31351dee1768bb679@o447951.ingest.sentry.io/5428561"; | ||
options.debug = YES; // Enabled debug when first installing is always helpful | ||
|
||
options.beforeSend = ^SentryEvent *(SentryEvent *event) | ||
{ | ||
// We don't want to send an event after startup that came from a Unhandled JS Exception | ||
// of react native Because we sent it already before the app crashed. | ||
if (nil != event.exceptions.firstObject.type && | ||
[event.exceptions.firstObject.type rangeOfString:@"Unhandled JS Exception"].location | ||
!= NSNotFound) { | ||
NSLog(@"Unhandled JS Exception"); | ||
return nil; | ||
} | ||
|
||
return event; | ||
}; | ||
|
||
// Enable the App start and Frames tracking measurements | ||
// If this is disabled the app start and frames tracking | ||
// won't be passed from native to JS transactions | ||
PrivateSentrySDKOnly.appStartMeasurementHybridSDKMode = true; | ||
#if TARGET_OS_IPHONE || TARGET_OS_MACCATALYST | ||
PrivateSentrySDKOnly.framesTrackingMeasurementHybridSDKMode = true; | ||
#endif | ||
}]; | ||
} | ||
|
||
@end |
Uh oh!
There was an error while loading. Please reload this page.