Skip to content

Releases: getsentry/sentry-kotlin-multiplatform

0.14.0

10 Jul 13:14

Choose a tag to compare

Dependencies

0.13.0

30 Jun 09:21

Choose a tag to compare

Features

  • Add sendDefaultPii option (#377)

Fixes

  • beforeSend overriding default release and dist even if it was not set explicitly (#376)

Dependencies

0.12.0

22 Apr 14:56

Choose a tag to compare

Feature

  • Move replay options out of experimental (#367)
    • You can now access the replay options via options.sessionReplay

Fixes

  • Do not throw if exec operation fails (#360)
  • initWithPlatforms not sending events if beforeSend is not set on iOS (#366)

Miscellaneous

  • Update native android sdk name to sentry.native.android.kmp (#353)

Dependencies

0.11.0

11 Feb 12:41

Choose a tag to compare

Fixes

  • [Gradle Plugin]: Architecture folder name missmatch when using SPM and framework path searching (#320)
  • [Gradle Plugin]: Check exit value when executing xcodebuild command (#326)

Dependencies

0.10.0

24 Oct 12:25

Choose a tag to compare

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 enableWatchdogTerminationTracking in common options (#281)
  • Add diagnosticLevel in common options (#287)

Dependencies

0.9.0

16 Sep 07:50

Choose a tag to compare

Improvements

  • Improve interop with objc headers (#265)
  • Plugin: dont use latest.release as default for the KMP dependency (#262)

Dependencies

  • Gradle Plugin: Bump default Cocoa SDK from v8.26.0 to v8.36.0 (#261)

0.8.0

28 Aug 13:03

Choose a tag to compare

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 sentryKmp configuration block in your build file
// 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

09 Aug 09:36

Choose a tag to compare

0.8.0-beta.1 Pre-release
Pre-release

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 sentryKmp configuration block in your build file

Dependencies

0.7.1

17 May 15:09

Choose a tag to compare

Fixes

  • Symbol multiply defined when trying to run cocoa targets (#226)

0.7.0

17 May 12:45

Choose a tag to compare

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