Skip to content

Commit e13ce8e

Browse files
authored
Merge branch 'main' into feat/add-replay
2 parents 019bbce + b1d03a2 commit e13ce8e

File tree

15 files changed

+58
-61
lines changed

15 files changed

+58
-61
lines changed

.github/workflows/format.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@
55
### Features
66

77
- Add experimental session replay options to common code ([#275](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/275))
8+
```kotlin
9+
Sentry.init { options ->
10+
// Adjust these values for production
11+
options.experimental.sessionReplay.onErrorSampleRate = 1.0
12+
options.experimental.sessionReplay.sessionSampleRate = 1.0
13+
}
14+
```
15+
- Add `Sentry.isEnabled()` API to common code ([#273](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/273))
16+
17+
### Dependencies
18+
19+
- Bump Cocoa SDK from v8.36.0 to v8.37.0 ([#279](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/279))
20+
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8370)
21+
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.36.0...8.37.0)
822

923
## 0.9.0
1024

buildSrc/src/main/java/Config.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ object Config {
3636
val sentryAndroid = "io.sentry:sentry-android:$sentryJavaVersion"
3737
val sentryJava = "io.sentry:sentry:$sentryJavaVersion"
3838

39-
val sentryCocoaVersion = "8.36.0"
39+
val sentryCocoaVersion = "8.37.0"
4040
val sentryCocoa = "Sentry"
4141

4242
object Samples {

scripts/commit-formatted-code.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

sentry-kotlin-multiplatform-gradle-plugin/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ id=io.sentry.kotlin.multiplatform.gradle
22
implementationClass=io.sentry.kotlin.multiplatform.gradle.SentryPlugin
33
versionName=0.9.0
44
group=io.sentry
5-
sentryCocoaVersion=8.36.0
5+
sentryCocoaVersion=8.37.0
66

77
# publication pom properties
88
POM_NAME=Sentry Kotlin Multiplatform Gradle Plugin

sentry-kotlin-multiplatform/api/android/sentry-kotlin-multiplatform.api

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public final class io/sentry/kotlin/multiplatform/Sentry {
8686
public final fun init (Lkotlin/jvm/functions/Function1;)V
8787
public final fun initWithPlatformOptions (Lkotlin/jvm/functions/Function1;)V
8888
public final fun isCrashedLastRun ()Z
89+
public final fun isEnabled ()Z
8990
public final fun setUser (Lio/sentry/kotlin/multiplatform/protocol/User;)V
9091
}
9192

sentry-kotlin-multiplatform/api/jvm/sentry-kotlin-multiplatform.api

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public final class io/sentry/kotlin/multiplatform/Sentry {
8383
public final fun init (Lkotlin/jvm/functions/Function1;)V
8484
public final fun initWithPlatformOptions (Lkotlin/jvm/functions/Function1;)V
8585
public final fun isCrashedLastRun ()Z
86+
public final fun isEnabled ()Z
8687
public final fun setUser (Lio/sentry/kotlin/multiplatform/protocol/User;)V
8788
}
8889

sentry-kotlin-multiplatform/sentry_kotlin_multiplatform.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Pod::Spec.new do |spec|
1212
spec.osx.deployment_target = '10.13'
1313
spec.tvos.deployment_target = '11.0'
1414
spec.watchos.deployment_target = '4.0'
15-
spec.dependency 'Sentry', '8.36.0'
15+
spec.dependency 'Sentry', '8.37.0'
1616

1717
if !Dir.exist?('build/cocoapods/framework/sentry_kotlin_multiplatform.framework') || Dir.empty?('build/cocoapods/framework/sentry_kotlin_multiplatform.framework')
1818
raise "

sentry-kotlin-multiplatform/src/appleMain/kotlin/io/sentry/kotlin/multiplatform/SentryBridge.apple.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ internal actual class SentryBridge actual constructor(private val sentryInstance
108108
return SentrySDK.crashedLastRun()
109109
}
110110

111+
actual fun isEnabled(): Boolean {
112+
return SentrySDK.isEnabled()
113+
}
114+
111115
actual fun close() {
112116
SentrySDK.close()
113117
}

sentry-kotlin-multiplatform/src/commonJvmMain/kotlin/io/sentry/kotlin/multiplatform/SentryBridge.commonJvm.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ internal actual class SentryBridge actual constructor(private val sentryInstance
7171
return Sentry.isCrashedLastRun() ?: false
7272
}
7373

74+
actual fun isEnabled(): Boolean {
75+
return Sentry.isEnabled()
76+
}
77+
7478
actual fun close() {
7579
Sentry.close()
7680
}

0 commit comments

Comments
 (0)