Skip to content

Commit de163ed

Browse files
authored
Make setSentryUnhandledExceptionHook public (#208)
* Make api public * Update CHANGELOG
1 parent bfd39fe commit de163ed

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Enhancements
6+
7+
- Make `setSentryUnhandledExceptionHook` public ([#208](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/208))
8+
59
### Dependencies
610

711
- Bump Java SDK from v7.4.0 to v7.8.0 ([#205](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/205), [#206](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/206))

sentry-kotlin-multiplatform/src/appleMain/kotlin/io/sentry/kotlin/multiplatform/nsexception/SentryUnhandledExceptions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ internal fun dropKotlinCrashEvent(event: SentryEvent?): SentryEvent? {
4949
* Note: once the exception is logged the program will be terminated.
5050
* @see wrapUnhandledExceptionHook
5151
*/
52-
internal fun setSentryUnhandledExceptionHook(): Unit = wrapUnhandledExceptionHook { throwable ->
52+
public fun setSentryUnhandledExceptionHook(): Unit = wrapUnhandledExceptionHook { throwable ->
5353
val envelope = throwable.asSentryEnvelope()
5454
// The envelope will be persisted, so we can safely terminate afterwards.
5555
// https://github.com/getsentry/sentry-cocoa/blob/678172142ac1d10f5ed7978f69d16ab03e801057/Sources/Sentry/SentryClient.m#L409

0 commit comments

Comments
 (0)