package eu.friedcutlet.yokan.app actual fun installPlatformCrashLogger(onCrash: (Throwable) -> Unit) { val previous = Thread.getDefaultUncaughtExceptionHandler() Thread.setDefaultUncaughtExceptionHandler { thread, throwable -> onCrash(throwable) previous?.uncaughtException(thread, throwable) } }