Releases: getsentry/sentry-kotlin-multiplatform
Releases Β· getsentry/sentry-kotlin-multiplatform
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"
// ...
}Dependencies
0.6.0
Note: This release includes a bump to Sentry Cocoa v8.25.0.
Please use at least version 8.25.0 of the Sentry Cocoa SDK starting from this release.
If you are using the Cocoapods gradle plugin you need to adjust your configuration:
pod("Sentry") {
version = "8.25.0"
// These extra options are required
extraOpts += listOf("-compiler-option", "-fmodules")
}Fixes
- Don't crash app when
applicationContextis not available (#217)
Enhancements
- Make
setSentryUnhandledExceptionHookpublic (#208)
Dependencies
0.5.0
Features
- Add App Hang Tracking / ANR options (#187)
- Use
isAnrEnabledandanrTimeoutIntervalMillisto configure ANR tracking for Android - Use
enableAppHangTrackingandappHangTimeoutIntervalMillisto configure App Hang tracking for iOS - Both options are enabled by default
- Use
- Add isCrashedLastRun (#186)
- You can use it with
Sentry.isCrashedLastRun()
- You can use it with