Skip to content

Commit 10141b8

Browse files
Update Sentry Android to 7.18.0 and migrate to IScope
Upgraded sentryAndroid dependency from 6.28.0 to 7.18.0. Updated SentryUtils in both kommunicate and kommunicateui modules to use IScope instead of Scope for compatibility with the new Sentry SDK version.
1 parent 6da6143 commit 10141b8

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ retrofit = "2.11.0"
3434
robolectric = "4.13"
3535
runner = "1.6.2"
3636
seleniumJava = "4.1.0"
37-
sentryAndroid = "6.28.0"
37+
sentryAndroid = "7.18.0"
3838
silicompressor = "2.2.4"
3939
swiperefreshlayout = "1.1.0"
4040
googleSecret = "2.0.1"

kommunicate/src/main/java/io/kommunicate/utils/SentryUtils.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import android.content.Context
44
import io.kommunicate.devkit.api.account.user.MobiComUserPreference
55
import io.kommunicate.commons.data.PrefSettings
66
import io.kommunicate.BuildConfig
7-
import io.sentry.Scope
7+
import io.sentry.IScope
88
import io.sentry.Sentry
99
import io.sentry.protocol.User
1010

@@ -21,7 +21,7 @@ object SentryUtils {
2121
}
2222

2323
val appId = PrefSettings.getInstance(context).applicationKey
24-
Sentry.configureScope { scope: Scope ->
24+
Sentry.configureScope { scope: IScope ->
2525
// Setup Tags
2626
scope.setTag(KmUtils.SENTRY_SDK_ENVIRONMENT, BuildConfig.DEBUG.toString())
2727
scope.setTag(KmUtils.SENTRY_KOMMUNICATE_VERSION, BuildConfig.KOMMUNICATE_VERSION)

kommunicateui/src/main/java/io/kommunicate/ui/utils/SentryUtils.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import io.kommunicate.devkit.api.account.user.MobiComUserPreference
55
import io.kommunicate.commons.data.PrefSettings
66
import io.kommunicate.ui.BuildConfig
77
import io.kommunicate.utils.KmUtils
8-
import io.sentry.Scope
8+
import io.sentry.IScope
99
import io.sentry.Sentry
1010
import io.sentry.protocol.User
1111

@@ -22,7 +22,7 @@ object SentryUtils {
2222
// }
2323

2424
val appId = PrefSettings.getInstance(context).applicationKey
25-
Sentry.configureScope { scope: Scope ->
25+
Sentry.configureScope { scope: IScope ->
2626
// Setup Tags
2727
scope.setTag(KmUtils.SENTRY_SDK_ENVIRONMENT, BuildConfig.DEBUG.toString())
2828
scope.setTag(KmUtils.SENTRY_KOMMUNICATE_VERSION, io.kommunicate.BuildConfig.KOMMUNICATE_VERSION)

0 commit comments

Comments
 (0)