Repository navigation
Snitcher is now a Kotlin Multiplatform library. The screens, the theme, the texts and the captured crash live in common code and are drawn with Compose Multiplatform, and each platform installs the crash capture its runtime allows.
Platforms
| Android | Desktop (JVM) | iOS | |
|---|---|---|---|
| Uncaught JVM exceptions | yes | yes | not applicable |
| Unhandled Kotlin exceptions | yes | yes | yes |
Uncaught NSException |
not applicable | not applicable | yes |
| When the screen is shown | right after the crash | right after the crash | on the next launch |
Unix signals, such as a Swift runtime trap or a memory error, are never captured and belong to a crash reporter.
Added
Snitcher.install(..)for desktop and iOS, next to the Android one, andSnitcherTraceWindowandsnitcherViewControllerto present the crashSnitcherThemeConfig, which carries the light and darkSnitcherColor, the newSnitcherTypographyandSnitcherShapes, and is given to the installer so the bundled screens are themable without replacing themSnitcherStrings, so the texts of the screens can be translated from codeSnitcherColor.fromArgband thedefaultX()companions, which Swift needs because Kotlin default arguments do not cross into Objective-CSnitcher.latestException, a typed counterpart ofexception.valuefor Swift, andSnitcher.clear()
Fixed
- The light palette painted white text on a white background, so the exception message, the device info, the stack trace and the whole restore screen were invisible in light mode
Snitcher.isInstalledalways returned false- The copy button copied the exception message instead of the stack trace
- A null launcher crashed inside the datastore collector
- The trace screen background stopped at the content height, and captured frames dropped the file name
- A crash without a foreground Activity was dropped instead of being recorded
- The crash file is written through a temporary file, so a process killed mid write cannot leave it corrupt, and a file that cannot be decoded is removed instead of failing every launch
- Restoring the app clears the stored crash, which used to come back on every launch
Changed
- Dependencies moved to the current toolchain: AGP 9.4.0, Gradle 9.7.1, Kotlin 2.4.20 and Compose BOM 2026.09.00
compileSdkandtargetSdkare 37, andminSdkis 23, which the current Compose libraries require- The removed accompanist system ui controller gave way to
WindowInsetsControllerCompatandenableEdgeToEdge - The crash is stored in a plain file instead of DataStore, because a suspending write does not flush while a process is being torn down
- Publishing moved to the Central Portal
Migrating from 1.0.x
Snitcher.install(..)is a platform extension now, so addimport com.skydoves.snitcher.install- The texts moved from
values/strings.xmltoSnitcherStrings, so locale specificvalues-xxoverrides of thesnitcher_*strings no longer apply SnitcherException.throwablebecameSnitcherException.toThrowable(), on Android and desktopSnitcherExceptionis no longerjava.io.Serializable, andSnitcherInstalleris gone- A crash written by 1.0.x is not read back after the update