Skip to content

1.1.0

Latest

Choose a tag to compare

@skydoves skydoves released this 17 Sep 08:31
32cfc70

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, and SnitcherTraceWindow and snitcherViewController to present the crash
  • SnitcherThemeConfig, which carries the light and dark SnitcherColor, the new SnitcherTypography and SnitcherShapes, and is given to the installer so the bundled screens are themable without replacing them
  • SnitcherStrings, so the texts of the screens can be translated from code
  • SnitcherColor.fromArgb and the defaultX() companions, which Swift needs because Kotlin default arguments do not cross into Objective-C
  • Snitcher.latestException, a typed counterpart of exception.value for Swift, and Snitcher.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.isInstalled always 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
  • compileSdk and targetSdk are 37, and minSdk is 23, which the current Compose libraries require
  • The removed accompanist system ui controller gave way to WindowInsetsControllerCompat and enableEdgeToEdge
  • 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 add import com.skydoves.snitcher.install
  • The texts moved from values/strings.xml to SnitcherStrings, so locale specific values-xx overrides of the snitcher_* strings no longer apply
  • SnitcherException.throwable became SnitcherException.toThrowable(), on Android and desktop
  • SnitcherException is no longer java.io.Serializable, and SnitcherInstaller is gone
  • A crash written by 1.0.x is not read back after the update