Features for Kotlin Multiplatform

Learn about the features of Sentry's Kotlin Multiplatform SDK.

Sentry's Kotlin Multiplatform SDK enables automatic reporting of errors and exceptions. Because the SDK provides a unified API for all supported platforms directly leveraging the native SDKs for each platform, it also supports the same features as the native SDKs. Click on a link below to see relevant features for your platform:

Some functionality may not be available in the shared Kotlin Multiplatform layer yet. You may have to use the native SDKs directly, or write your own platform-specific code.

To access the native SDK init options, use the Native Platform Options initialization.

The following guides cover features available for Kotlin Multiplatform apps:

The table below lists supported platforms and their corresponding presets.

Target PlatformTarget Preset
Android
  • androidTarget
Kotlin/JVM
  • jvm
iOS
  • iosArm64
  • iosX64
  • iosSimulatorArm64
macOS
  • macosArm64
  • macosX64
watchOS
  • watchosArm64
  • watchosX64
  • watchosSimulatorArm64
tvOS
  • tvosArm64
  • tvosX64
  • tvosSimulatorArm64

Starting with version 0.28.0, Apple targets require iOS 15, tvOS 15, macOS 12, or watchOS 9 or newer.

You can add these targets to your project and they will compile and satisfy the API surface, but do nothing at runtime.

Target PlatformTarget preset
JS
  • js
Wasm JS
  • wasmJs
Linux
  • linuxx64
  • linuxarm64
Windows
  • mingwx64
watchOS (32-bit)
  • watchosArm32

Starting with version 0.28.0, watchosArm32 is a no-op target because the Sentry Cocoa SDK no longer ships an armv7k slice. Builds for this target still succeed, but Sentry doesn't capture events, crashes, or logs on it.

Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").