mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-21 20:27:06 +03:00
Use new library for injekt with inorichi patch
This commit is contained in:
parent
67127183c2
commit
c929854ae9
5 changed files with 6 additions and 4 deletions
|
@ -221,7 +221,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.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)
|
||||
|
||||
|
|
|
@ -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" }
|
||||
|
|
|
@ -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