Releases: getsentry/sentry-kotlin-multiplatform
Releases Β· getsentry/sentry-kotlin-multiplatform
0.14.0
0.13.0
0.12.0
Feature
- Move replay options out of experimental (#367)
- You can now access the replay options via
options.sessionReplay
- You can now access the replay options via
Fixes
- Do not throw if exec operation fails (#360)
initWithPlatformsnot sending events ifbeforeSendis not set on iOS (#366)
Miscellaneous
- Update native android sdk name to
sentry.native.android.kmp(#353)
Dependencies
0.11.0
0.10.0
Features
- Add experimental session replay options to common code (#275)
Sentry.init { options ->
// Adjust these values for production
options.experimental.sessionReplay.onErrorSampleRate = 1.0
options.experimental.sessionReplay.sessionSampleRate = 1.0
}- Add
Sentry.isEnabled()API to common code (#273) - Add
enableWatchdogTerminationTrackingin common options (#281) - Add
diagnosticLevelin common options (#287)
Dependencies
0.9.0
0.8.0
Features
- New Sentry KMP Gradle plugin (#230)
- Install via
plugins { id("io.sentry.kotlin.multiplatform.gradle") version "{version}" } - Enables auto installing of the KMP SDK to
commonMain(if all targets are supported)- This also automatically installs the Sentry Android SDK
- Enables auto installing of the required Sentry Cocoa SDK with Cocoapods (if Cocoapods plugin is enabled)
- Configures linking for SPM (needed if you want to compile a dynamic framework with
isStatic = false) - Configure via the
sentryKmpconfiguration block in your build file
- Install via
// Example configuration in build.gradle.kts
sentryKmp {
// Disable auto installing the KMP SDK to commonMain
autoInstall.commonMain.enabled = false
} Dependencies
0.8.0-beta.1
Features
- New Sentry KMP Gradle plugin (#230)
- Install via
plugins { id("io.sentry.kotlin.multiplatform.gradle") version "{version}" } - Enables auto installing of the KMP SDK to commonMain (if all targets are supported)
- Enables auto installing of the required Sentry Cocoa SDK with Cocoapods (if Cocoapods plugin is enabled)
- Configures linking for SPM (needed if you want to compile a dynamic framework and fix tests not compiling)
- Configure via the
sentryKmpconfiguration block in your build file
- Install via
Dependencies
0.7.1
0.7.0
Features
- Allow initializing the KMP SDK with native options (#221)
- This allows you to initialize the SDK with platform-specific options that may not be available in the common code of the KMP SDK yet.
Usage:
// build.gradle.kts
kotlin {
sourceSets {
all {
languageSettings.optIn("kotlinx.cinterop.ExperimentalForeignApi")
}
}
}
// commonMain
fun init() {
Sentry.initWithPlatformOptions(platformOptionsConfiguration())
}
expect fun platformOptionsConfiguration(): PlatformOptionsConfiguration
// iOS
actual fun platformOptionsConfiguration(): PlatformOptionsConfiguration = {
dsn = "your_dsn"
release = "1.0.0"
// ...
}
// Android
actual fun platformOptionsConfiguration(): PlatformOptionsConfiguration = {
dsn = "your_dsn"
release = "1.0.0"
// ...
}