-
Notifications
You must be signed in to change notification settings - Fork 251
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
Bump to Cocoa library to 6.4.1 #1197
Conversation
873aed6
to
ff106c0
Compare
return [[BugsnagHandledState alloc] initWithSeverityReason:reason | ||
severity:severity | ||
unhandled:unhandled | ||
unhandledOverridden:unhandledOverridden |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes to cocoa internal API required these fixes RN-side (BugsnagEventDeserializer).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving subject to satisfactory answers to my queries inline…
@@ -156,9 +157,11 @@ - (BugsnagHandledState *)deserializeHandledState:(NSDictionary *)payload { | |||
|
|||
BSGSeverity severity = BSGParseSeverity(payload[@"severity"]); | |||
BOOL unhandled = [payload[@"unhandled"] boolValue]; | |||
BOOL unhandledOverridden = [severityReason[@"unhandledOverridden"] boolValue]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the behaviour of this when
a. severityReason
is nil
?
b. severityReason.unhandledOverridden
doesn't exist, or isn't a boolean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Messages to nil objects in ObjC return 0, which is converted to nil, and then the subcall (also to a nil object) is converted to boolean false in this case.
If unhandledOverridden
is a string, number, boolean, or nil, it will return Objective-C's interpretation of that type as a boolean value. If it's any other type, it will throw an exception.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes LGTM. There needs to be a separate PR that adapts the existing React Native E2E tests before we can release the unhandled override work.
Changes: