Skip to content

Commit 63fc567

Browse files
committed
Fix sentry crash
1 parent ae1005e commit 63fc567

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ dependencies {
6262
implementation(libs.androidx.browser)
6363

6464
implementation(libs.sentry.android)
65-
// Not needed yet.
66-
// implementation(libs.sentry.compose.android)
65+
implementation(libs.sentry.compose.android)
6766
}
6867

6968
sentry {

app/src/main/java/de/tum/informatics/www1/artemis/native_app/android/ArtemisApplication.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ class ArtemisApplication : Application(), ImageLoaderFactory {
2929
override fun onCreate() {
3030
super.onCreate()
3131

32-
Sentry.init(
33-
if (BuildConfig.DEBUG) "" else "https://8b4d69ac628d4462995ee6178365541f@sentry.ase.in.tum.de/3"
34-
)
32+
Sentry.init {
33+
it.dsn = if (BuildConfig.DEBUG) "" else "https://8b4d69ac628d4462995ee6178365541f@sentry.ase.in.tum.de/3"
34+
it.isEnableUserInteractionBreadcrumbs = false
35+
it.isEnableUserInteractionTracing = false
36+
}
3537

3638
startKoin {
3739
androidContext(this@ArtemisApplication)

0 commit comments

Comments
 (0)