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()
|
||||
DynamicColors.applyToActivitiesIfAvailable(this)
|
||||
startKoin()
|
||||
if (!isTest) migrateToOwnScheduling()
|
||||
if (isDebugBuild()) {
|
||||
StrictMode.setThreadPolicy(
|
||||
StrictMode.ThreadPolicy.Builder()
|
||||
|
@ -129,7 +130,6 @@ open class App : Application() {
|
|||
.build()
|
||||
)
|
||||
}
|
||||
if (!isTest) migrateToOwnScheduling()
|
||||
}
|
||||
|
||||
protected open fun startKoin() = startKoin {
|
||||
|
|
Loading…
Reference in a new issue