Use new library for injekt with inorichi patch
(cherry picked from commit 83fd4746eda1b99f35292b0c2211e606a421b3eb)
This commit is contained in:
parent
2fe0236384
commit
81d70c5ce3
8 changed files with 11 additions and 8 deletions
|
|
@ -249,7 +249,7 @@ dependencies {
|
|||
implementation(libs.preferencektx)
|
||||
|
||||
// Dependency injection
|
||||
implementation(libs.injekt.core)
|
||||
implementation(libs.injekt)
|
||||
|
||||
// Image loading
|
||||
implementation(platform(libs.coil.bom))
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ import com.elvishew.xlog.printer.file.backup.NeverBackupStrategy
|
|||
import com.elvishew.xlog.printer.file.naming.DateFileNameGenerator
|
||||
import com.google.firebase.Firebase
|
||||
import com.google.firebase.crashlytics.crashlytics
|
||||
import dev.mihon.injekt.patchInjekt
|
||||
import eu.kanade.domain.DomainModule
|
||||
import eu.kanade.domain.SYDomainModule
|
||||
import eu.kanade.domain.base.BasePreferences
|
||||
|
|
@ -100,6 +101,8 @@ class App : Application(), DefaultLifecycleObserver, SingletonImageLoader.Factor
|
|||
@SuppressLint("LaunchActivityFromNotification")
|
||||
override fun onCreate() {
|
||||
super<Application>.onCreate()
|
||||
patchInjekt()
|
||||
|
||||
// KMK -->
|
||||
if (BuildConfig.DEBUG) Timber.plant(Timber.DebugTree())
|
||||
// KMK <--
|
||||
|
|
|
|||
|
|
@ -14,6 +14,6 @@ dependencies {
|
|||
implementation(libs.unifile)
|
||||
// KMK -->
|
||||
implementation(projects.core.common)
|
||||
implementation(libs.injekt.core)
|
||||
implementation(libs.injekt)
|
||||
// KMK <--
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ dependencies {
|
|||
|
||||
// SY -->
|
||||
implementation(sylibs.xlog)
|
||||
implementation(libs.injekt.core)
|
||||
implementation(libs.injekt)
|
||||
implementation(sylibs.exifinterface)
|
||||
// SY <--
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ dependencies {
|
|||
compileOnly(libs.compose.stablemarker)
|
||||
|
||||
// SY -->
|
||||
implementation(libs.injekt.core)
|
||||
implementation(libs.injekt)
|
||||
// SY <--
|
||||
|
||||
testImplementation(libs.bundles.test)
|
||||
|
|
|
|||
|
|
@ -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,9 +26,9 @@ dependencies {
|
|||
implementation(platform(libs.coil.bom))
|
||||
implementation(libs.coil.core)
|
||||
|
||||
api(libs.injekt)
|
||||
|
||||
// SY -->
|
||||
implementation(libs.material)
|
||||
// SY <--
|
||||
|
||||
api(libs.injekt.core)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,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