Skip to content

Commit 074159a

Browse files
committed
Remove FastServiceLoader hack.
FastServiceLoader has been fixed in Kotlin Coroutines 1.3.3, so we no longer need to disable it. cf. Kotlin/kotlinx.coroutines#1572
1 parent 04890d3 commit 074159a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

sample_app/src/main/java/com/linecorp/lich/sample/MyApplication.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,8 @@ import android.app.Application
1919
import android.os.StrictMode
2020

2121
class MyApplication : Application() {
22-
23-
init {
24-
// Disable FastServiceLoader.
25-
// To avoid StrictMode DiskReadViolation, we use the standard ServiceLoader to load
26-
// MainDispatcherFactory.
27-
// cf. https://github.com/Kotlin/kotlinx.coroutines/issues/1231
28-
System.setProperty("kotlinx.coroutines.fast.service.loader", "false")
29-
}
30-
3122
override fun onCreate() {
3223
super.onCreate()
33-
3424
StrictMode.enableDefaults()
3525
}
3626
}

0 commit comments

Comments
 (0)