Skip to main content

Crashlytics

Setup

You first need to configure Crashlytics and CrashKiOS initialization. See the CrashKiOS Crashlytics Tutorial Doc.

Add the dependency

commonMain {
dependencies {
implementation("co.touchlab:kermit-crashlytics:2.0.3")
}
}

Add the log writer

Logger.setLogWriters(CrashlyticsLogWriter())

Custom Values

You can add custom values to Crashlytics, but not through Kermit. Call CrashKiOS directly.

CrashlyticsKotlin.setCustomValue("someKey", "someValue")

Touchlab KMP Insiders Newsletter

Subscribe