Skip to content

Commit

Permalink
Fix sentry crash
Browse files Browse the repository at this point in the history
  • Loading branch information
TimOrtel committed Jan 9, 2023
1 parent ae1005e commit 63fc567
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ dependencies {
implementation(libs.androidx.browser)

implementation(libs.sentry.android)
// Not needed yet.
// implementation(libs.sentry.compose.android)
implementation(libs.sentry.compose.android)
}

sentry {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ class ArtemisApplication : Application(), ImageLoaderFactory {
override fun onCreate() {
super.onCreate()

Sentry.init(
if (BuildConfig.DEBUG) "" else "https://[email protected]/3"
)
Sentry.init {
it.dsn = if (BuildConfig.DEBUG) "" else "https://[email protected]/3"
it.isEnableUserInteractionBreadcrumbs = false
it.isEnableUserInteractionTracing = false
}

startKoin {
androidContext(this@ArtemisApplication)
Expand Down

0 comments on commit 63fc567

Please sign in to comment.