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 API for deliberately crashing an app #1842

Merged
merged 14 commits into from
Aug 6, 2022
Merged

Add API for deliberately crashing an app #1842

merged 14 commits into from
Aug 6, 2022

Conversation

mattjohnsonpint
Copy link
Contributor

This adds a new public API, SentrySdk.CauseCrash(CrashType), and several crash types - some of which are platform specific. This makes demonstrating how Sentry handles such crashes much easier.

The main Sentry library for the net6.0-android target will now include some Java and C code that was previously used in the Android sample. The code and build scripts have been cleaned up a bit. We will still keep the binaries checked in so contributors don't necessarily need to re-build these dependencies. However we will rebuild them in CI to make sure the ones we are always clean and secure.

For the net6.0-ios target, we already have code in the Sentry Cocoa SDK that will cause a native crash, so we just call that.

@mattjohnsonpint mattjohnsonpint marked this pull request as ready for review August 6, 2022 00:55
@mattjohnsonpint mattjohnsonpint merged commit f474f07 into main Aug 6, 2022
@mattjohnsonpint mattjohnsonpint deleted the cause-crash branch August 6, 2022 02:22
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