mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-21 12:45:44 +03:00
Use new library for injekt with inorichi patch
This commit is contained in:
parent
c8ad6cdf31
commit
83fd4746ed
5 changed files with 6 additions and 4 deletions
|
@ -214,7 +214,7 @@ dependencies {
|
|||
implementation(libs.preferencektx)
|
||||
|
||||
// Dependency injection
|
||||
implementation(libs.injekt.core)
|
||||
implementation(libs.injekt)
|
||||
|
||||
// Image loading
|
||||
implementation(platform(libs.coil.bom))
|
||||
|
|
|
@ -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.base.BasePreferences
|
||||
import eu.kanade.domain.ui.UiPreferences
|
||||
|
@ -73,6 +74,7 @@ class App : Application(), DefaultLifecycleObserver, SingletonImageLoader.Factor
|
|||
@SuppressLint("LaunchActivityFromNotification")
|
||||
override fun onCreate() {
|
||||
super<Application>.onCreate()
|
||||
patchInjekt()
|
||||
|
||||
GlobalExceptionHandler.initialize(applicationContext, CrashActivity::class.java)
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ sqlite-android = "com.github.requery:sqlite-android:3.45.0"
|
|||
|
||||
preferencektx = "androidx.preference:preference-ktx:1.2.1"
|
||||
|
||||
injekt-core = "uy.kohesive.injekt:injekt-core:1.16.1"
|
||||
injekt = "com.github.mihonapp:injekt:91edab2317"
|
||||
|
||||
coil-bom = { module = "io.coil-kt.coil3:coil-bom", version = "3.0.0-alpha10" }
|
||||
coil-core = { module = "io.coil-kt.coil3:coil" }
|
||||
|
|
|
@ -26,5 +26,5 @@ dependencies {
|
|||
implementation(platform(libs.coil.bom))
|
||||
implementation(libs.coil.core)
|
||||
|
||||
api(libs.injekt.core)
|
||||
api(libs.injekt)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue