Use new library for injekt with inorichi patch

This commit is contained in:
AntsyLich 2024-09-08 20:09:45 +06:00 committed by jmir1
parent 67127183c2
commit c929854ae9
No known key found for this signature in database
GPG key ID: 7B3B624787A072BD
5 changed files with 6 additions and 4 deletions

View file

@ -221,7 +221,7 @@ dependencies {
implementation(libs.preferencektx)
// Dependency injection
implementation(libs.injekt.core)
implementation(libs.injekt)
// Image loading
implementation(platform(libs.coil.bom))

View file

@ -21,6 +21,7 @@ import coil3.network.okhttp.OkHttpNetworkFetcherFactory
import coil3.request.allowRgb565
import coil3.request.crossfade
import coil3.util.DebugLogger
import dev.mihon.injekt.patchInjekt
import eu.kanade.domain.DomainModule
import eu.kanade.domain.SYDomainModule
import eu.kanade.domain.base.BasePreferences
@ -78,6 +79,7 @@ class App : Application(), DefaultLifecycleObserver, SingletonImageLoader.Factor
@SuppressLint("LaunchActivityFromNotification")
override fun onCreate() {
super<Application>.onCreate()
patchInjekt()
GlobalExceptionHandler.initialize(applicationContext, CrashActivity::class.java)

View file

@ -39,7 +39,7 @@ sqlite-android = "com.github.requery:sqlite-android:3.45.0"
preferencektx = "androidx.preference:preference-ktx:1.2.1"
injekt-core = "com.github.inorichi.injekt:injekt-core:65b0440"
injekt = "com.github.mihonapp:injekt:91edab2317"
coil-bom = { module = "io.coil-kt.coil3:coil-bom", version = "3.0.0-alpha08" }
coil-core = { module = "io.coil-kt.coil3:coil" }

View file

@ -26,5 +26,5 @@ dependencies {
implementation(platform(libs.coil.bom))
implementation(libs.coil.core)
api(libs.injekt.core)
api(libs.injekt)
}

View file

@ -10,7 +10,7 @@ kotlin {
val commonMain by getting {
dependencies {
api(kotlinx.serialization.json)
api(libs.injekt.core)
api(libs.injekt)
api(libs.rxjava)
api(libs.jsoup)