Skip to content

Commit 13e9fce

Browse files
committed
fix(startup): guard the Bugsnag bootstrap against startup failures
1 parent 614aeaf commit 13e9fce

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎apps/flipcash/app/src/main/kotlin/com/flipcash/app/internal/startup/TraceInitializer.kt‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ import dagger.hilt.EntryPoint
1515
import dagger.hilt.InstallIn
1616
import dagger.hilt.android.EntryPointAccessors
1717
import dagger.hilt.components.SingletonComponent
18-
import kotlinx.coroutines.CoroutineScope
19-
import kotlinx.coroutines.Dispatchers
20-
import kotlinx.coroutines.launch
2118
import timber.log.Timber
2219

2320
class TraceInitializer: Initializer<Unit> {
@@ -35,7 +32,7 @@ class TraceInitializer: Initializer<Unit> {
3532
Timber.plant(FlipcashDebugTree)
3633
TraceManager.includeRpcBodies = true
3734
} else {
38-
CoroutineScope(Dispatchers.IO).launch {
35+
launchBestEffort(tag = "trace") {
3936
val entryPoint = EntryPointAccessors.fromApplication(context, TraceEntryPoint::class.java)
4037
val stageProvider = entryPoint.releaseStageProvider()
4138
val versionCode = BuildConfig.VERSION_CODE

0 commit comments

Comments
 (0)