do scheduling migration before strict mode
otherwise all LoggingFactory ClassLoader lookups that cause disk reads are logged when koin initializes classes
This commit is contained in:
parent
b4c84272ff
commit
eea65d4082
1 changed files with 1 additions and 1 deletions
|
@ -114,6 +114,7 @@ open class App : Application() {
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
DynamicColors.applyToActivitiesIfAvailable(this)
|
DynamicColors.applyToActivitiesIfAvailable(this)
|
||||||
startKoin()
|
startKoin()
|
||||||
|
if (!isTest) migrateToOwnScheduling()
|
||||||
if (isDebugBuild()) {
|
if (isDebugBuild()) {
|
||||||
StrictMode.setThreadPolicy(
|
StrictMode.setThreadPolicy(
|
||||||
StrictMode.ThreadPolicy.Builder()
|
StrictMode.ThreadPolicy.Builder()
|
||||||
|
@ -129,7 +130,6 @@ open class App : Application() {
|
||||||
.build()
|
.build()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if (!isTest) migrateToOwnScheduling()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected open fun startKoin() = startKoin {
|
protected open fun startKoin() = startKoin {
|
||||||
|
|
Loading…
Reference in a new issue