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:
Torsten Grote 2024-09-27 10:30:43 -03:00
parent b4c84272ff
commit eea65d4082
No known key found for this signature in database
GPG key ID: 3E5F77D92CF891FF

View file

@ -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 {