Skip to content

Releases: getsentry/sentry-kotlin-multiplatform

0.8.0

28 Aug 13:03
Compare
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
Compare
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
Compare
Choose a tag to compare

Fixes

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

0.7.0

17 May 12:45
Compare
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

0.6.0

07 May 12:34
Compare
Choose a tag to compare

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 applicationContext is not available (#217)

Enhancements

  • Make setSentryUnhandledExceptionHook public (#208)

Dependencies

0.5.0

28 Feb 09:49
Compare
Choose a tag to compare

Features

  • Add App Hang Tracking / ANR options (#187)
    • Use isAnrEnabled and anrTimeoutIntervalMillis to configure ANR tracking for Android
    • Use enableAppHangTracking and appHangTimeoutIntervalMillis to configure App Hang tracking for iOS
    • Both options are enabled by default
  • Add isCrashedLastRun (#186)
    • You can use it with Sentry.isCrashedLastRun()

Dependencies

0.4.0

20 Dec 15:32
Compare
Choose a tag to compare

Dependencies

0.3.0

10 Nov 13:41
Compare
Choose a tag to compare

Features

  • Add sample & trace rate configuration (#144)
  • Remove need for context in Sentry.init for Android (#117)

Dependencies

0.2.1

24 Jul 11:40
Compare
Choose a tag to compare

Fixes

  • fix: beforeBreadcrumb discarding if hook is not set (#105)

0.2.0

19 May 08:00
Compare
Choose a tag to compare

Features

  • feat: automatically disable io.sentry.auto-init (#93)

Fixes

  • fix: NSNumber to Kotlin Long crash during SentryException conversion (#92)

Improvements

  • ref: improve samples & add SPM docs (#82)