mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-16 16:59:20 +01:00
c475acd1ea
* Migrate History screen to Compose - Migrate screen - Strip logic from presenter into use cases and repository - Setup for other screen being able to migrate to Compose with Theme * Changes from review comments
27 lines
1.1 KiB
Kotlin
27 lines
1.1 KiB
Kotlin
package eu.kanade.domain
|
|
|
|
import eu.kanade.data.history.repository.HistoryRepositoryImpl
|
|
import eu.kanade.domain.history.interactor.DeleteHistoryTable
|
|
import eu.kanade.domain.history.interactor.GetHistory
|
|
import eu.kanade.domain.history.interactor.GetNextChapterForManga
|
|
import eu.kanade.domain.history.interactor.RemoveHistoryById
|
|
import eu.kanade.domain.history.interactor.RemoveHistoryByMangaId
|
|
import eu.kanade.domain.history.repository.HistoryRepository
|
|
import uy.kohesive.injekt.api.InjektModule
|
|
import uy.kohesive.injekt.api.InjektRegistrar
|
|
import uy.kohesive.injekt.api.addFactory
|
|
import uy.kohesive.injekt.api.addSingletonFactory
|
|
import uy.kohesive.injekt.api.get
|
|
|
|
class DomainModule : InjektModule {
|
|
|
|
override fun InjektRegistrar.registerInjectables() {
|
|
addSingletonFactory<HistoryRepository> { HistoryRepositoryImpl(get()) }
|
|
addFactory { DeleteHistoryTable(get()) }
|
|
addFactory { GetHistory(get()) }
|
|
addFactory { GetNextChapterForManga(get()) }
|
|
addFactory { RemoveHistoryById(get()) }
|
|
addFactory { RemoveHistoryByMangaId(get()) }
|
|
}
|
|
}
|