Skip to content
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

Add autoNotify API for internal use by bugsnag-unity #1093

Merged
merged 1 commit into from
May 21, 2021

Conversation

fractalwrench
Copy link
Contributor

@fractalwrench fractalwrench commented May 13, 2021

Goal

Alters bugsnag-cocoa so that it is capable of supporting Unity's AutoNotify API, which allows automatic error detection to be enabled/disabled after Bugsnag has initialized. This is not exposed as part of the Cocoa interface and is intended for internal use by Unity only.

Changeset

  • Added autoNotify as a private property of BugsnagClient
  • When autoNotify is updated bsg_kscrash_setHandlingCrashTypes is invoked with the appropriate error types to capture automatically

Testing

Added E2E tests to verify that autoNotify is respected for NSException/Signals, and that error capture behaviour is unaltered if the flag is toggled off then on.

@github-actions
Copy link

github-actions bot commented May 13, 2021

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size increased by 456 bytes from 1,128,272 to 1,128,728

Generated by 🚫 Danger

@fractalwrench fractalwrench force-pushed the PLAT-6474/auto-notify branch 2 times, most recently from 24f1275 to be74510 Compare May 13, 2021 14:00
CHANGELOG.md Outdated Show resolved Hide resolved
@fractalwrench fractalwrench marked this pull request as ready for review May 13, 2021 14:12
@fractalwrench fractalwrench force-pushed the PLAT-6474/auto-notify branch from be74510 to af7eeb6 Compare May 13, 2021 14:23
Copy link
Contributor

@nickdowell nickdowell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new scenarios need to be added to the macOSTestApp Xcode project, too 👍

Bugsnag/Client/BugsnagClient+Private.h Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@fractalwrench fractalwrench force-pushed the PLAT-6474/auto-notify branch 2 times, most recently from f623cb8 to 6c33809 Compare May 13, 2021 16:05
@fractalwrench fractalwrench force-pushed the PLAT-6474/auto-notify branch from 6c33809 to 059a6d3 Compare May 13, 2021 16:08
@fractalwrench
Copy link
Contributor Author

Added scenarios to macOS test fixture and addressed review comments.

@fractalwrench fractalwrench requested a review from nickdowell May 13, 2021 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants