Skip to content

Commit fb911de

Browse files
github-actions[bot]web-flowbuenaflor
authored
chore(deps): update Java SDK to v7.0.0 (#157)
* chore: update scripts/update-java.sh to 7.0.0 * Update min and compile version for android * Update samples * Update sentry agp * Add IScope * Fix tests * Update CHANGELOG --------- Co-authored-by: GitHub <[email protected]> Co-authored-by: GIancarlo Buenaflor <[email protected]>
1 parent 0129ccc commit fb911de

File tree

8 files changed

+14
-10
lines changed

8 files changed

+14
-10
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
### Dependencies
66

7+
- Bump Java SDK from v6.33.1 to v7.0.0 ([#157](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/157))
8+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#700)
9+
- [diff](https://github.com/getsentry/sentry-java/compare/6.33.1...7.0.0)
710
- Bump Cocoa SDK from v8.4.0 to v8.17.1 ([#158](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/158))
811
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8171)
912
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.4.0...8.17.1)

buildSrc/src/main/java/Config.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ object Config {
3232
object Libs {
3333
val kotlinStd = "org.jetbrains.kotlin:kotlin-stdlib"
3434

35-
val sentryJavaVersion = "6.33.1"
35+
val sentryJavaVersion = "7.0.0"
3636
val sentryAndroid = "io.sentry:sentry-android:$sentryJavaVersion"
3737
val sentryJava = "io.sentry:sentry:$sentryJavaVersion"
3838

@@ -67,7 +67,7 @@ object Config {
6767
object Android {
6868
private val sdkVersion = 33
6969

70-
val minSdkVersion = 16
70+
val minSdkVersion = 19
7171
val targetSdkVersion = sdkVersion
7272
val compileSdkVersion = sdkVersion
7373
}

sentry-kotlin-multiplatform/src/commonJvmMain/kotlin/io/sentry/kotlin/multiplatform/JvmScopeProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import io.sentry.kotlin.multiplatform.extensions.toKmpUser
88
import io.sentry.kotlin.multiplatform.protocol.Breadcrumb
99
import io.sentry.kotlin.multiplatform.protocol.User
1010

11-
internal class JvmScopeProvider(private val scope: JvmScope) : Scope {
11+
internal class JvmScopeProvider(private val scope: JvmIScope) : Scope {
1212

1313
override var level: SentryLevel?
1414
set(value) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ internal actual object SentryBridge {
6161
Sentry.close()
6262
}
6363

64-
private fun configureScopeCallback(scopeCallback: ScopeCallback): (JvmScope) -> Unit {
64+
private fun configureScopeCallback(scopeCallback: ScopeCallback): (JvmIScope) -> Unit {
6565
return {
6666
val jvmScopeProvider = JvmScopeProvider(it)
6767
scopeCallback.invoke(jvmScopeProvider)

sentry-kotlin-multiplatform/src/commonJvmMain/kotlin/io/sentry/kotlin/multiplatform/TypeAliases.jvm.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package io.sentry.kotlin.multiplatform
22

33
import io.sentry.Attachment
44
import io.sentry.Breadcrumb
5+
import io.sentry.IScope
56
import io.sentry.Scope
67
import io.sentry.SentryEvent
78
import io.sentry.SentryLevel
@@ -16,6 +17,7 @@ import io.sentry.protocol.User
1617
internal typealias JvmSentryLevel = SentryLevel
1718
internal typealias JvmUser = User
1819
internal typealias JvmScope = Scope
20+
internal typealias JvmIScope = IScope
1921
internal typealias JvmBreadcrumb = Breadcrumb
2022
internal typealias JvmSentryId = SentryId
2123
internal typealias JvmSentryOptions = SentryOptions

sentry-samples/kmp-app-cocoapods/androidApp/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
id("com.android.application")
33
kotlin("android")
4-
id("io.sentry.android.gradle") version "3.5.0"
4+
id("io.sentry.android.gradle") version "4.0.0"
55
}
66

77
android {
@@ -32,7 +32,7 @@ android {
3232
}
3333

3434
dependencies {
35-
implementation(rootProject.project(":sentry-samples:kmp-app-spm:shared"))
35+
implementation(rootProject.project(":sentry-samples:kmp-app-cocoapods:shared"))
3636
implementation("com.google.android.material:material:1.6.1")
3737
implementation("androidx.appcompat:appcompat:1.4.2")
3838
implementation("androidx.constraintlayout:constraintlayout:2.1.4")

sentry-samples/kmp-app-cocoapods/shared/build.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ kotlin {
4646
}
4747

4848
android {
49-
compileSdk = 32
49+
compileSdk = Config.Android.compileSdkVersion
5050
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
5151
defaultConfig {
52-
minSdk = 27
53-
targetSdk = 32
52+
minSdk = Config.Android.minSdkVersion
5453
}
5554
}

sentry-samples/kmp-app-spm/androidApp/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
id("com.android.application")
33
kotlin("android")
4-
id("io.sentry.android.gradle") version "3.5.0"
4+
id("io.sentry.android.gradle") version "4.0.0"
55
}
66

77
android {

0 commit comments

Comments
 (0)