sentry-native
sentry-native copied to clipboard
New API to delliberately crash the application
In some Sentry SDKs there is an API to cause a crash - this is useful for testing, whether in other SDKs integrating that particular API or in user code when they want to make sure their integration works as expected.
Samples:
- https://github.com/getsentry/sentry-cocoa/blob/2401cbdc59f55ef7b2a5199d93569fe6a6e894ad/Sources/Sentry/Public/SentrySDK.h#L277-L284
- https://github.com/getsentry/sentry-dotnet/blob/f473889d2d2647145a2f897359c367cb66d1cce4/src/Sentry/SentrySdk.cs#L604-L648
Specifically for the .NET SDK, it would simplify the code and CI if we could have this functionality available in sentry-native and reuse it from there. As is, we are creating a custom library, than a jar file and than bundle that to an android package, just to be able to support this from Android (mostly for internal tests).
In response to: https://github.com/getsentry/sentry-dotnet/pull/2887#discussion_r1408103895_