Switch to upstream Injekt
The patch is redundant given we switched to Metro DI and don't use `Injekt.addSingletonFactory` anymore
This commit is contained in:
@@ -21,7 +21,6 @@ import coil3.network.okhttp.OkHttpNetworkFetcherFactory
|
||||
import coil3.request.allowRgb565
|
||||
import coil3.request.crossfade
|
||||
import coil3.util.DebugLogger
|
||||
import dev.mihon.injekt.patchInjekt
|
||||
import dev.zacsweers.metro.Inject
|
||||
import dev.zacsweers.metro.createGraphFactory
|
||||
import eu.kanade.domain.base.BasePreferences
|
||||
@@ -187,7 +186,6 @@ class App : Application(), DefaultLifecycleObserver, SingletonImageLoader.Factor
|
||||
}
|
||||
|
||||
private fun setupInjekt() {
|
||||
patchInjekt()
|
||||
Injekt.addSingleton<Application>(this)
|
||||
Injekt.addSingleton<Context>(this)
|
||||
Injekt.importModule(injektMetroInteropModule)
|
||||
|
||||
@@ -40,7 +40,7 @@ firebase-crashlytics = "3.0.8"
|
||||
flexibleAdapter = "5.1.0"
|
||||
google-services = "4.5.0"
|
||||
image-decoder = "13"
|
||||
injekt = "91edab2317"
|
||||
injekt = "1.16.1"
|
||||
jsoup = "1.23.2"
|
||||
junit = "6.1.3"
|
||||
kim = "0.40.0"
|
||||
@@ -138,7 +138,7 @@ firebase-bom = { module = "com.google.firebase:firebase-bom", version.ref = "fir
|
||||
firebase-crashlytics = { module = "com.google.firebase:firebase-crashlytics" }
|
||||
flexibleAdapter = { module = "eu.davidea:flexible-adapter", version.ref = "flexibleAdapter" }
|
||||
image-decoder = { module = "ca.mpreg:imagedecoder", version.ref = "image-decoder" }
|
||||
injekt = { module = "com.github.mihonapp:injekt", version.ref = "injekt" }
|
||||
injekt = { module = "uy.kohesive.injekt:injekt-core", version.ref = "injekt" }
|
||||
jsoup = { module = "org.jsoup:jsoup", version.ref = "jsoup" }
|
||||
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit" }
|
||||
junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher" }
|
||||
|
||||
Reference in New Issue
Block a user