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:
- Session Replay records user sessions on Android and iOS.
- Size Analysis analyzes app builds for size regressions.
- Snapshots compares UI images across changes.
ANR and App Hang detection
reports unresponsive apps on Android and supported Apple platforms.Release Health
tracks crash-free sessions and users across releases.
The table below lists supported platforms and their corresponding presets.
| Target Platform | Target Preset |
|---|---|
| Android |
|
| Kotlin/JVM |
|
| iOS |
|
| macOS |
|
| watchOS |
|
| tvOS |
|
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 Platform | Target preset |
|---|---|
| JS |
|
| Wasm JS |
|
| Linux |
|
| Windows |
|
| watchOS (32-bit) |
|
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.
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").