From eea65d4082f0b6d7a976b6719fbab7bd8f0d68d3 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Fri, 27 Sep 2024 10:30:43 -0300 Subject: [PATCH] do scheduling migration before strict mode otherwise all LoggingFactory ClassLoader lookups that cause disk reads are logged when koin initializes classes --- app/src/main/java/com/stevesoltys/seedvault/App.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/stevesoltys/seedvault/App.kt b/app/src/main/java/com/stevesoltys/seedvault/App.kt index 1d3bfd2e..46a57452 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/App.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/App.kt @@ -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 {