Last Commit Merged: b53e24e0db
This commit is contained in:
LuftVerbot 2023-05-23 22:37:41 +02:00
parent 24e4158874
commit e2b2a7944b
185 changed files with 367 additions and 319 deletions

View file

@ -143,6 +143,7 @@ dependencies {
implementation(project(":core"))
implementation(project(":source-api"))
implementation(project(":data"))
implementation(project(":domain"))
// Compose
implementation(platform(compose.bom))

View file

@ -1,7 +1,6 @@
package eu.kanade.data.entries.anime
import eu.kanade.domain.entries.anime.model.Anime
import eu.kanade.domain.entries.anime.model.AnimeUpdate
import eu.kanade.domain.entries.anime.repository.AnimeRepository
import eu.kanade.domain.library.anime.LibraryAnime
import eu.kanade.tachiyomi.util.system.logcat
@ -11,6 +10,7 @@ import logcat.LogPriority
import tachiyomi.data.handlers.anime.AnimeDatabaseHandler
import tachiyomi.data.listOfStringsAdapter
import tachiyomi.data.updateStrategyAdapter
import tachiyomi.domain.entries.anime.model.AnimeUpdate
class AnimeRepositoryImpl(
private val handler: AnimeDatabaseHandler,

View file

@ -1,7 +1,6 @@
package eu.kanade.data.entries.manga
import eu.kanade.domain.entries.manga.model.Manga
import eu.kanade.domain.entries.manga.model.MangaUpdate
import eu.kanade.domain.entries.manga.repository.MangaRepository
import eu.kanade.domain.library.manga.LibraryManga
import eu.kanade.tachiyomi.util.system.logcat
@ -11,6 +10,7 @@ import logcat.LogPriority
import tachiyomi.data.handlers.manga.MangaDatabaseHandler
import tachiyomi.data.listOfStringsAdapter
import tachiyomi.data.updateStrategyAdapter
import tachiyomi.domain.entries.manga.model.MangaUpdate
class MangaRepositoryImpl(
private val handler: MangaDatabaseHandler,

View file

@ -1,8 +1,8 @@
package eu.kanade.data.history.anime
import eu.kanade.domain.entries.anime.model.AnimeCover
import eu.kanade.domain.history.anime.model.AnimeHistory
import eu.kanade.domain.history.anime.model.AnimeHistoryWithRelations
import tachiyomi.domain.entries.anime.model.AnimeCover
import tachiyomi.domain.history.anime.model.AnimeHistory
import tachiyomi.domain.history.anime.model.AnimeHistoryWithRelations
import java.util.Date
val animeHistoryMapper: (Long, Long, Date?) -> AnimeHistory = { id, episodeId, seenAt ->

View file

@ -1,12 +1,12 @@
package eu.kanade.data.history.anime
import eu.kanade.domain.history.anime.model.AnimeHistoryUpdate
import eu.kanade.domain.history.anime.model.AnimeHistoryWithRelations
import eu.kanade.domain.history.anime.repository.AnimeHistoryRepository
import eu.kanade.tachiyomi.util.system.logcat
import kotlinx.coroutines.flow.Flow
import logcat.LogPriority
import tachiyomi.data.handlers.anime.AnimeDatabaseHandler
import tachiyomi.domain.history.anime.model.AnimeHistoryUpdate
import tachiyomi.domain.history.anime.model.AnimeHistoryWithRelations
class AnimeHistoryRepositoryImpl(
private val handler: AnimeDatabaseHandler,

View file

@ -1,8 +1,8 @@
package eu.kanade.data.history.manga
import eu.kanade.domain.entries.manga.model.MangaCover
import eu.kanade.domain.history.manga.model.MangaHistory
import eu.kanade.domain.history.manga.model.MangaHistoryWithRelations
import tachiyomi.domain.entries.manga.model.MangaCover
import tachiyomi.domain.history.manga.model.MangaHistory
import tachiyomi.domain.history.manga.model.MangaHistoryWithRelations
import java.util.Date
val mangaHistoryMapper: (Long, Long, Date?, Long) -> MangaHistory = { id, chapterId, readAt, readDuration ->

View file

@ -1,12 +1,12 @@
package eu.kanade.data.history.manga
import eu.kanade.domain.history.manga.model.MangaHistoryUpdate
import eu.kanade.domain.history.manga.model.MangaHistoryWithRelations
import eu.kanade.domain.history.manga.repository.MangaHistoryRepository
import eu.kanade.tachiyomi.util.system.logcat
import kotlinx.coroutines.flow.Flow
import logcat.LogPriority
import tachiyomi.data.handlers.manga.MangaDatabaseHandler
import tachiyomi.domain.history.manga.model.MangaHistoryUpdate
import tachiyomi.domain.history.manga.model.MangaHistoryWithRelations
class MangaHistoryRepositoryImpl(
private val handler: MangaDatabaseHandler,

View file

@ -1,9 +1,9 @@
package eu.kanade.data.source.anime
import eu.kanade.domain.source.anime.model.AnimeSourceData
import eu.kanade.domain.source.anime.repository.AnimeSourceDataRepository
import kotlinx.coroutines.flow.Flow
import tachiyomi.data.handlers.anime.AnimeDatabaseHandler
import tachiyomi.domain.source.anime.model.AnimeSourceData
class AnimeSourceDataRepositoryImpl(
private val handler: AnimeDatabaseHandler,

View file

@ -1,9 +1,9 @@
package eu.kanade.data.source.anime
import eu.kanade.domain.source.anime.model.AnimeSource
import eu.kanade.domain.source.anime.model.AnimeSourceData
import eu.kanade.tachiyomi.animesource.AnimeCatalogueSource
import eu.kanade.tachiyomi.source.anime.AnimeSourceManager
import tachiyomi.domain.source.anime.model.AnimeSourceData
val animeSourceMapper: (eu.kanade.tachiyomi.animesource.AnimeSource) -> AnimeSource = { source ->
AnimeSource(

View file

@ -1,9 +1,9 @@
package eu.kanade.data.source.manga
import eu.kanade.domain.source.manga.model.MangaSourceData
import eu.kanade.domain.source.manga.repository.MangaSourceDataRepository
import kotlinx.coroutines.flow.Flow
import tachiyomi.data.handlers.manga.MangaDatabaseHandler
import tachiyomi.domain.source.manga.model.MangaSourceData
class MangaSourceDataRepositoryImpl(
private val handler: MangaDatabaseHandler,

View file

@ -1,9 +1,9 @@
package eu.kanade.data.source.manga
import eu.kanade.domain.source.manga.model.MangaSourceData
import eu.kanade.domain.source.manga.model.Source
import eu.kanade.tachiyomi.source.CatalogueSource
import eu.kanade.tachiyomi.source.manga.MangaSourceManager
import tachiyomi.domain.source.manga.model.MangaSourceData
val mangaSourceMapper: (eu.kanade.tachiyomi.source.MangaSource) -> Source = { source ->
Source(

View file

@ -1,7 +1,7 @@
package eu.kanade.data.updates.anime
import eu.kanade.domain.entries.anime.model.AnimeCover
import eu.kanade.domain.updates.anime.model.AnimeUpdatesWithRelations
import tachiyomi.domain.entries.anime.model.AnimeCover
import tachiyomi.domain.updates.anime.model.AnimeUpdatesWithRelations
val animeUpdateWithRelationMapper: (Long, String, Long, String, String?, Boolean, Boolean, Long, Long, Long, Boolean, String?, Long, Long, Long) -> AnimeUpdatesWithRelations = {
animeId, animeTitle, episodeId, episodeName, scanlator, seen, bookmark, lastSecondSeen, totalSeconds, sourceId, favorite, thumbnailUrl, coverLastModified, _, dateFetch ->

View file

@ -1,9 +1,9 @@
package eu.kanade.data.updates.anime
import eu.kanade.domain.updates.anime.model.AnimeUpdatesWithRelations
import eu.kanade.domain.updates.anime.repository.AnimeUpdatesRepository
import kotlinx.coroutines.flow.Flow
import tachiyomi.data.handlers.anime.AnimeDatabaseHandler
import tachiyomi.domain.updates.anime.model.AnimeUpdatesWithRelations
class AnimeUpdatesRepositoryImpl(
private val databaseHandler: AnimeDatabaseHandler,

View file

@ -1,7 +1,7 @@
package eu.kanade.data.updates.manga
import eu.kanade.domain.entries.manga.model.MangaCover
import eu.kanade.domain.updates.manga.model.MangaUpdatesWithRelations
import tachiyomi.domain.entries.manga.model.MangaCover
import tachiyomi.domain.updates.manga.model.MangaUpdatesWithRelations
val mangaUpdateWithRelationMapper: (Long, String, Long, String, String?, Boolean, Boolean, Long, Long, Boolean, String?, Long, Long, Long) -> MangaUpdatesWithRelations = {
mangaId, mangaTitle, chapterId, chapterName, scanlator, read, bookmark, lastPageRead, sourceId, favorite, thumbnailUrl, coverLastModified, _, dateFetch ->

View file

@ -1,9 +1,9 @@
package eu.kanade.data.updates.manga
import eu.kanade.domain.updates.manga.model.MangaUpdatesWithRelations
import eu.kanade.domain.updates.manga.repository.MangaUpdatesRepository
import kotlinx.coroutines.flow.Flow
import tachiyomi.data.handlers.manga.MangaDatabaseHandler
import tachiyomi.domain.updates.manga.model.MangaUpdatesWithRelations
class MangaUpdatesRepositoryImpl(
private val databaseHandler: MangaDatabaseHandler,

View file

@ -1,7 +1,5 @@
package eu.kanade.domain
import eu.kanade.data.category.anime.AnimeCategoryRepositoryImpl
import eu.kanade.data.category.manga.MangaCategoryRepositoryImpl
import eu.kanade.data.entries.anime.AnimeRepositoryImpl
import eu.kanade.data.entries.manga.MangaRepositoryImpl
import eu.kanade.data.history.anime.AnimeHistoryRepositoryImpl
@ -26,7 +24,6 @@ import eu.kanade.domain.category.anime.interactor.SetAnimeCategories
import eu.kanade.domain.category.anime.interactor.SetDisplayModeForAnimeCategory
import eu.kanade.domain.category.anime.interactor.SetSortModeForAnimeCategory
import eu.kanade.domain.category.anime.interactor.UpdateAnimeCategory
import eu.kanade.domain.category.anime.repository.AnimeCategoryRepository
import eu.kanade.domain.category.manga.interactor.CreateMangaCategoryWithName
import eu.kanade.domain.category.manga.interactor.DeleteMangaCategory
import eu.kanade.domain.category.manga.interactor.GetMangaCategories
@ -37,7 +34,6 @@ import eu.kanade.domain.category.manga.interactor.SetDisplayModeForMangaCategory
import eu.kanade.domain.category.manga.interactor.SetMangaCategories
import eu.kanade.domain.category.manga.interactor.SetSortModeForMangaCategory
import eu.kanade.domain.category.manga.interactor.UpdateMangaCategory
import eu.kanade.domain.category.manga.repository.MangaCategoryRepository
import eu.kanade.domain.download.anime.interactor.DeleteAnimeDownload
import eu.kanade.domain.download.manga.interactor.DeleteChapterDownload
import eu.kanade.domain.entries.anime.interactor.GetAnime
@ -128,6 +124,10 @@ import eu.kanade.domain.updates.anime.interactor.GetAnimeUpdates
import eu.kanade.domain.updates.anime.repository.AnimeUpdatesRepository
import eu.kanade.domain.updates.manga.interactor.GetMangaUpdates
import eu.kanade.domain.updates.manga.repository.MangaUpdatesRepository
import tachiyomi.data.category.anime.AnimeCategoryRepositoryImpl
import tachiyomi.data.category.manga.MangaCategoryRepositoryImpl
import tachiyomi.domain.category.anime.repository.AnimeCategoryRepository
import tachiyomi.domain.category.manga.repository.MangaCategoryRepository
import uy.kohesive.injekt.api.InjektModule
import uy.kohesive.injekt.api.InjektRegistrar
import uy.kohesive.injekt.api.addFactory

View file

@ -1,11 +1,11 @@
package eu.kanade.domain.category.anime.interactor
import eu.kanade.domain.category.anime.repository.AnimeCategoryRepository
import eu.kanade.domain.category.model.Category
import eu.kanade.domain.library.service.LibraryPreferences
import eu.kanade.tachiyomi.util.lang.withNonCancellableContext
import eu.kanade.tachiyomi.util.system.logcat
import logcat.LogPriority
import tachiyomi.domain.category.anime.repository.AnimeCategoryRepository
import tachiyomi.domain.category.model.Category
class CreateAnimeCategoryWithName(
private val categoryRepository: AnimeCategoryRepository,

View file

@ -1,10 +1,10 @@
package eu.kanade.domain.category.anime.interactor
import eu.kanade.domain.category.anime.repository.AnimeCategoryRepository
import eu.kanade.domain.category.model.CategoryUpdate
import eu.kanade.tachiyomi.util.lang.withNonCancellableContext
import eu.kanade.tachiyomi.util.system.logcat
import logcat.LogPriority
import tachiyomi.domain.category.anime.repository.AnimeCategoryRepository
import tachiyomi.domain.category.model.CategoryUpdate
class DeleteAnimeCategory(
private val categoryRepository: AnimeCategoryRepository,

View file

@ -1,8 +1,8 @@
package eu.kanade.domain.category.anime.interactor
import eu.kanade.domain.category.anime.repository.AnimeCategoryRepository
import eu.kanade.domain.category.model.Category
import kotlinx.coroutines.flow.Flow
import tachiyomi.domain.category.anime.repository.AnimeCategoryRepository
import tachiyomi.domain.category.model.Category
class GetAnimeCategories(
private val categoryRepository: AnimeCategoryRepository,

View file

@ -1,11 +1,11 @@
package eu.kanade.domain.category.anime.interactor
import eu.kanade.domain.category.anime.repository.AnimeCategoryRepository
import eu.kanade.domain.category.model.Category
import eu.kanade.domain.category.model.CategoryUpdate
import eu.kanade.tachiyomi.util.lang.withNonCancellableContext
import eu.kanade.tachiyomi.util.system.logcat
import logcat.LogPriority
import tachiyomi.domain.category.anime.repository.AnimeCategoryRepository
import tachiyomi.domain.category.model.Category
import tachiyomi.domain.category.model.CategoryUpdate
class RenameAnimeCategory(
private val categoryRepository: AnimeCategoryRepository,

View file

@ -1,13 +1,13 @@
package eu.kanade.domain.category.anime.interactor
import eu.kanade.domain.category.anime.repository.AnimeCategoryRepository
import eu.kanade.domain.category.model.Category
import eu.kanade.domain.category.model.CategoryUpdate
import eu.kanade.tachiyomi.util.lang.withNonCancellableContext
import eu.kanade.tachiyomi.util.system.logcat
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import logcat.LogPriority
import tachiyomi.domain.category.anime.repository.AnimeCategoryRepository
import tachiyomi.domain.category.model.Category
import tachiyomi.domain.category.model.CategoryUpdate
import java.util.Collections
class ReorderAnimeCategory(

View file

@ -1,8 +1,8 @@
package eu.kanade.domain.category.anime.interactor
import eu.kanade.domain.category.anime.repository.AnimeCategoryRepository
import eu.kanade.domain.library.model.plus
import eu.kanade.domain.library.service.LibraryPreferences
import tachiyomi.domain.category.anime.repository.AnimeCategoryRepository
import tachiyomi.domain.library.model.plus
class ResetAnimeCategoryFlags(
private val preferences: LibraryPreferences,

View file

@ -1,11 +1,11 @@
package eu.kanade.domain.category.anime.interactor
import eu.kanade.domain.category.anime.repository.AnimeCategoryRepository
import eu.kanade.domain.category.model.Category
import eu.kanade.domain.category.model.CategoryUpdate
import eu.kanade.domain.library.model.LibraryDisplayMode
import eu.kanade.domain.library.model.plus
import eu.kanade.domain.library.service.LibraryPreferences
import tachiyomi.domain.category.anime.repository.AnimeCategoryRepository
import tachiyomi.domain.category.model.Category
import tachiyomi.domain.category.model.CategoryUpdate
import tachiyomi.domain.library.model.LibraryDisplayMode
import tachiyomi.domain.library.model.plus
class SetDisplayModeForAnimeCategory(
private val preferences: LibraryPreferences,

View file

@ -1,11 +1,11 @@
package eu.kanade.domain.category.anime.interactor
import eu.kanade.domain.category.anime.repository.AnimeCategoryRepository
import eu.kanade.domain.category.model.Category
import eu.kanade.domain.category.model.CategoryUpdate
import eu.kanade.domain.library.model.LibrarySort
import eu.kanade.domain.library.model.plus
import eu.kanade.domain.library.service.LibraryPreferences
import tachiyomi.domain.category.anime.repository.AnimeCategoryRepository
import tachiyomi.domain.category.model.Category
import tachiyomi.domain.category.model.CategoryUpdate
import tachiyomi.domain.library.model.LibrarySort
import tachiyomi.domain.library.model.plus
class SetSortModeForAnimeCategory(
private val preferences: LibraryPreferences,

View file

@ -1,8 +1,8 @@
package eu.kanade.domain.category.anime.interactor
import eu.kanade.domain.category.anime.repository.AnimeCategoryRepository
import eu.kanade.domain.category.model.CategoryUpdate
import eu.kanade.tachiyomi.util.lang.withNonCancellableContext
import tachiyomi.domain.category.anime.repository.AnimeCategoryRepository
import tachiyomi.domain.category.model.CategoryUpdate
class UpdateAnimeCategory(
private val categoryRepository: AnimeCategoryRepository,

View file

@ -1,11 +1,11 @@
package eu.kanade.domain.category.manga.interactor
import eu.kanade.domain.category.manga.repository.MangaCategoryRepository
import eu.kanade.domain.category.model.Category
import eu.kanade.domain.library.service.LibraryPreferences
import eu.kanade.tachiyomi.util.lang.withNonCancellableContext
import eu.kanade.tachiyomi.util.system.logcat
import logcat.LogPriority
import tachiyomi.domain.category.manga.repository.MangaCategoryRepository
import tachiyomi.domain.category.model.Category
class CreateMangaCategoryWithName(
private val categoryRepository: MangaCategoryRepository,

View file

@ -1,10 +1,10 @@
package eu.kanade.domain.category.manga.interactor
import eu.kanade.domain.category.manga.repository.MangaCategoryRepository
import eu.kanade.domain.category.model.CategoryUpdate
import eu.kanade.tachiyomi.util.lang.withNonCancellableContext
import eu.kanade.tachiyomi.util.system.logcat
import logcat.LogPriority
import tachiyomi.domain.category.manga.repository.MangaCategoryRepository
import tachiyomi.domain.category.model.CategoryUpdate
class DeleteMangaCategory(
private val categoryRepository: MangaCategoryRepository,

View file

@ -1,8 +1,8 @@
package eu.kanade.domain.category.manga.interactor
import eu.kanade.domain.category.manga.repository.MangaCategoryRepository
import eu.kanade.domain.category.model.Category
import kotlinx.coroutines.flow.Flow
import tachiyomi.domain.category.manga.repository.MangaCategoryRepository
import tachiyomi.domain.category.model.Category
class GetMangaCategories(
private val categoryRepository: MangaCategoryRepository,

View file

@ -1,11 +1,11 @@
package eu.kanade.domain.category.manga.interactor
import eu.kanade.domain.category.manga.repository.MangaCategoryRepository
import eu.kanade.domain.category.model.Category
import eu.kanade.domain.category.model.CategoryUpdate
import eu.kanade.tachiyomi.util.lang.withNonCancellableContext
import eu.kanade.tachiyomi.util.system.logcat
import logcat.LogPriority
import tachiyomi.domain.category.manga.repository.MangaCategoryRepository
import tachiyomi.domain.category.model.Category
import tachiyomi.domain.category.model.CategoryUpdate
class RenameMangaCategory(
private val categoryRepository: MangaCategoryRepository,

View file

@ -1,13 +1,13 @@
package eu.kanade.domain.category.manga.interactor
import eu.kanade.domain.category.manga.repository.MangaCategoryRepository
import eu.kanade.domain.category.model.Category
import eu.kanade.domain.category.model.CategoryUpdate
import eu.kanade.tachiyomi.util.lang.withNonCancellableContext
import eu.kanade.tachiyomi.util.system.logcat
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import logcat.LogPriority
import tachiyomi.domain.category.manga.repository.MangaCategoryRepository
import tachiyomi.domain.category.model.Category
import tachiyomi.domain.category.model.CategoryUpdate
import java.util.Collections
class ReorderMangaCategory(

View file

@ -1,8 +1,8 @@
package eu.kanade.domain.category.manga.interactor
import eu.kanade.domain.category.manga.repository.MangaCategoryRepository
import eu.kanade.domain.library.model.plus
import eu.kanade.domain.library.service.LibraryPreferences
import tachiyomi.domain.category.manga.repository.MangaCategoryRepository
import tachiyomi.domain.library.model.plus
class ResetMangaCategoryFlags(
private val preferences: LibraryPreferences,

View file

@ -1,11 +1,11 @@
package eu.kanade.domain.category.manga.interactor
import eu.kanade.domain.category.manga.repository.MangaCategoryRepository
import eu.kanade.domain.category.model.Category
import eu.kanade.domain.category.model.CategoryUpdate
import eu.kanade.domain.library.model.LibraryDisplayMode
import eu.kanade.domain.library.model.plus
import eu.kanade.domain.library.service.LibraryPreferences
import tachiyomi.domain.category.manga.repository.MangaCategoryRepository
import tachiyomi.domain.category.model.Category
import tachiyomi.domain.category.model.CategoryUpdate
import tachiyomi.domain.library.model.LibraryDisplayMode
import tachiyomi.domain.library.model.plus
class SetDisplayModeForMangaCategory(
private val preferences: LibraryPreferences,

View file

@ -1,11 +1,11 @@
package eu.kanade.domain.category.manga.interactor
import eu.kanade.domain.category.manga.repository.MangaCategoryRepository
import eu.kanade.domain.category.model.Category
import eu.kanade.domain.category.model.CategoryUpdate
import eu.kanade.domain.library.model.LibrarySort
import eu.kanade.domain.library.model.plus
import eu.kanade.domain.library.service.LibraryPreferences
import tachiyomi.domain.category.manga.repository.MangaCategoryRepository
import tachiyomi.domain.category.model.Category
import tachiyomi.domain.category.model.CategoryUpdate
import tachiyomi.domain.library.model.LibrarySort
import tachiyomi.domain.library.model.plus
class SetSortModeForMangaCategory(
private val preferences: LibraryPreferences,

View file

@ -1,8 +1,8 @@
package eu.kanade.domain.category.manga.interactor
import eu.kanade.domain.category.manga.repository.MangaCategoryRepository
import eu.kanade.domain.category.model.CategoryUpdate
import eu.kanade.tachiyomi.util.lang.withNonCancellableContext
import tachiyomi.domain.category.manga.repository.MangaCategoryRepository
import tachiyomi.domain.category.model.CategoryUpdate
class UpdateMangaCategory(
private val categoryRepository: MangaCategoryRepository,

View file

@ -1,3 +0,0 @@
package eu.kanade.domain.entries
interface EntryCover

View file

@ -1,8 +1,8 @@
package eu.kanade.domain.entries.anime.interactor
import eu.kanade.domain.entries.anime.model.Anime
import eu.kanade.domain.entries.anime.model.AnimeUpdate
import eu.kanade.domain.entries.anime.repository.AnimeRepository
import tachiyomi.domain.entries.anime.model.AnimeUpdate
class SetAnimeEpisodeFlags(
private val animeRepository: AnimeRepository,

View file

@ -1,7 +1,7 @@
package eu.kanade.domain.entries.anime.interactor
import eu.kanade.domain.entries.anime.model.AnimeUpdate
import eu.kanade.domain.entries.anime.repository.AnimeRepository
import tachiyomi.domain.entries.anime.model.AnimeUpdate
class SetAnimeViewerFlags(
private val animeRepository: AnimeRepository,

View file

@ -1,12 +1,12 @@
package eu.kanade.domain.entries.anime.interactor
import eu.kanade.domain.entries.anime.model.Anime
import eu.kanade.domain.entries.anime.model.AnimeUpdate
import eu.kanade.domain.entries.anime.model.hasCustomCover
import eu.kanade.domain.entries.anime.model.isLocal
import eu.kanade.domain.entries.anime.repository.AnimeRepository
import eu.kanade.tachiyomi.animesource.model.SAnime
import eu.kanade.tachiyomi.data.cache.AnimeCoverCache
import tachiyomi.domain.entries.anime.model.AnimeUpdate
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.util.Date

View file

@ -6,6 +6,7 @@ import eu.kanade.tachiyomi.animesource.model.SAnime
import eu.kanade.tachiyomi.data.cache.AnimeCoverCache
import eu.kanade.tachiyomi.source.anime.LocalAnimeSource
import eu.kanade.tachiyomi.source.model.UpdateStrategy
import tachiyomi.domain.entries.anime.model.AnimeUpdate
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.io.Serializable

View file

@ -1,17 +1,6 @@
package eu.kanade.domain.entries.anime.model
import eu.kanade.domain.entries.EntryCover
/**
* Contains the required data for AnimeCoverFetcher
*/
data class AnimeCover(
val animeId: Long,
val sourceId: Long,
val isAnimeFavorite: Boolean,
val url: String?,
val lastModified: Long,
) : EntryCover
import tachiyomi.domain.entries.anime.model.AnimeCover
fun Anime.asAnimeCover(): AnimeCover {
return AnimeCover(

View file

@ -1,9 +1,9 @@
package eu.kanade.domain.entries.anime.repository
import eu.kanade.domain.entries.anime.model.Anime
import eu.kanade.domain.entries.anime.model.AnimeUpdate
import eu.kanade.domain.library.anime.LibraryAnime
import kotlinx.coroutines.flow.Flow
import tachiyomi.domain.entries.anime.model.AnimeUpdate
interface AnimeRepository {

View file

@ -1,8 +1,8 @@
package eu.kanade.domain.entries.manga.interactor
import eu.kanade.domain.entries.manga.model.Manga
import eu.kanade.domain.entries.manga.model.MangaUpdate
import eu.kanade.domain.entries.manga.repository.MangaRepository
import tachiyomi.domain.entries.manga.model.MangaUpdate
class SetMangaChapterFlags(
private val mangaRepository: MangaRepository,

View file

@ -1,9 +1,9 @@
package eu.kanade.domain.entries.manga.interactor
import eu.kanade.domain.entries.manga.model.MangaUpdate
import eu.kanade.domain.entries.manga.repository.MangaRepository
import eu.kanade.tachiyomi.ui.reader.setting.OrientationType
import eu.kanade.tachiyomi.ui.reader.setting.ReadingModeType
import tachiyomi.domain.entries.manga.model.MangaUpdate
class SetMangaViewerFlags(
private val mangaRepository: MangaRepository,

View file

@ -1,12 +1,12 @@
package eu.kanade.domain.entries.manga.interactor
import eu.kanade.domain.entries.manga.model.Manga
import eu.kanade.domain.entries.manga.model.MangaUpdate
import eu.kanade.domain.entries.manga.model.hasCustomCover
import eu.kanade.domain.entries.manga.model.isLocal
import eu.kanade.domain.entries.manga.repository.MangaRepository
import eu.kanade.tachiyomi.data.cache.MangaCoverCache
import eu.kanade.tachiyomi.source.model.SManga
import tachiyomi.domain.entries.manga.model.MangaUpdate
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.util.Date

View file

@ -8,6 +8,7 @@ import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.model.UpdateStrategy
import eu.kanade.tachiyomi.ui.reader.setting.OrientationType
import eu.kanade.tachiyomi.ui.reader.setting.ReadingModeType
import tachiyomi.domain.entries.manga.model.MangaUpdate
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.io.Serializable

View file

@ -1,17 +1,6 @@
package eu.kanade.domain.entries.manga.model
import eu.kanade.domain.entries.EntryCover
/**
* Contains the required data for MangaCoverFetcher
*/
data class MangaCover(
val mangaId: Long,
val sourceId: Long,
val isMangaFavorite: Boolean,
val url: String?,
val lastModified: Long,
) : EntryCover
import tachiyomi.domain.entries.manga.model.MangaCover
fun Manga.asMangaCover(): MangaCover {
return MangaCover(

View file

@ -1,9 +1,9 @@
package eu.kanade.domain.entries.manga.repository
import eu.kanade.domain.entries.manga.model.Manga
import eu.kanade.domain.entries.manga.model.MangaUpdate
import eu.kanade.domain.library.manga.LibraryManga
import kotlinx.coroutines.flow.Flow
import tachiyomi.domain.entries.manga.model.MangaUpdate
interface MangaRepository {

View file

@ -1,8 +1,8 @@
package eu.kanade.domain.history.anime.interactor
import eu.kanade.domain.history.anime.model.AnimeHistoryWithRelations
import eu.kanade.domain.history.anime.repository.AnimeHistoryRepository
import kotlinx.coroutines.flow.Flow
import tachiyomi.domain.history.anime.model.AnimeHistoryWithRelations
class GetAnimeHistory(
private val repository: AnimeHistoryRepository,

View file

@ -1,7 +1,7 @@
package eu.kanade.domain.history.anime.interactor
import eu.kanade.domain.history.anime.model.AnimeHistoryWithRelations
import eu.kanade.domain.history.anime.repository.AnimeHistoryRepository
import tachiyomi.domain.history.anime.model.AnimeHistoryWithRelations
class RemoveAnimeHistory(
private val repository: AnimeHistoryRepository,

View file

@ -1,7 +1,7 @@
package eu.kanade.domain.history.anime.interactor
import eu.kanade.domain.history.anime.model.AnimeHistoryUpdate
import eu.kanade.domain.history.anime.repository.AnimeHistoryRepository
import tachiyomi.domain.history.anime.model.AnimeHistoryUpdate
class UpsertAnimeHistory(
private val historyRepository: AnimeHistoryRepository,

View file

@ -1,8 +1,8 @@
package eu.kanade.domain.history.anime.repository
import eu.kanade.domain.history.anime.model.AnimeHistoryUpdate
import eu.kanade.domain.history.anime.model.AnimeHistoryWithRelations
import kotlinx.coroutines.flow.Flow
import tachiyomi.domain.history.anime.model.AnimeHistoryUpdate
import tachiyomi.domain.history.anime.model.AnimeHistoryWithRelations
interface AnimeHistoryRepository {

View file

@ -1,8 +1,8 @@
package eu.kanade.domain.history.manga.interactor
import eu.kanade.domain.history.manga.model.MangaHistoryWithRelations
import eu.kanade.domain.history.manga.repository.MangaHistoryRepository
import kotlinx.coroutines.flow.Flow
import tachiyomi.domain.history.manga.model.MangaHistoryWithRelations
class GetMangaHistory(
private val repository: MangaHistoryRepository,

View file

@ -1,7 +1,7 @@
package eu.kanade.domain.history.manga.interactor
import eu.kanade.domain.history.manga.model.MangaHistoryWithRelations
import eu.kanade.domain.history.manga.repository.MangaHistoryRepository
import tachiyomi.domain.history.manga.model.MangaHistoryWithRelations
class RemoveMangaHistory(
private val repository: MangaHistoryRepository,

View file

@ -1,7 +1,7 @@
package eu.kanade.domain.history.manga.interactor
import eu.kanade.domain.history.manga.model.MangaHistoryUpdate
import eu.kanade.domain.history.manga.repository.MangaHistoryRepository
import tachiyomi.domain.history.manga.model.MangaHistoryUpdate
class UpsertMangaHistory(
private val historyRepository: MangaHistoryRepository,

View file

@ -1,8 +1,8 @@
package eu.kanade.domain.history.manga.repository
import eu.kanade.domain.history.manga.model.MangaHistoryUpdate
import eu.kanade.domain.history.manga.model.MangaHistoryWithRelations
import kotlinx.coroutines.flow.Flow
import tachiyomi.domain.history.manga.model.MangaHistoryUpdate
import tachiyomi.domain.history.manga.model.MangaHistoryWithRelations
interface MangaHistoryRepository {

View file

@ -2,14 +2,14 @@ package eu.kanade.domain.library.service
import eu.kanade.domain.entries.anime.model.Anime
import eu.kanade.domain.entries.manga.model.Manga
import eu.kanade.domain.library.model.LibraryDisplayMode
import eu.kanade.domain.library.model.LibrarySort
import eu.kanade.tachiyomi.core.preference.PreferenceStore
import eu.kanade.tachiyomi.data.preference.DEVICE_ONLY_ON_WIFI
import eu.kanade.tachiyomi.data.preference.MANGA_HAS_UNREAD
import eu.kanade.tachiyomi.data.preference.MANGA_NON_COMPLETED
import eu.kanade.tachiyomi.data.preference.MANGA_NON_READ
import eu.kanade.tachiyomi.widget.ExtendedNavigationView
import tachiyomi.domain.library.model.LibraryDisplayMode
import tachiyomi.domain.library.model.LibrarySort
class LibraryPreferences(
private val preferenceStore: PreferenceStore,

View file

@ -1,7 +1,7 @@
package eu.kanade.domain.source.anime.repository
import eu.kanade.domain.source.anime.model.AnimeSourceData
import kotlinx.coroutines.flow.Flow
import tachiyomi.domain.source.anime.model.AnimeSourceData
interface AnimeSourceDataRepository {
fun subscribeAllAnime(): Flow<List<AnimeSourceData>>

View file

@ -1,7 +1,7 @@
package eu.kanade.domain.source.manga.repository
import eu.kanade.domain.source.manga.model.MangaSourceData
import kotlinx.coroutines.flow.Flow
import tachiyomi.domain.source.manga.model.MangaSourceData
interface MangaSourceDataRepository {
fun subscribeAllManga(): Flow<List<MangaSourceData>>

View file

@ -1,9 +1,9 @@
package eu.kanade.domain.source.service
import eu.kanade.domain.library.model.LibraryDisplayMode
import eu.kanade.tachiyomi.core.preference.PreferenceStore
import eu.kanade.tachiyomi.core.preference.getEnum
import eu.kanade.tachiyomi.util.system.LocaleHelper
import tachiyomi.domain.library.model.LibraryDisplayMode
class SourcePreferences(
private val preferenceStore: PreferenceStore,

View file

@ -1,8 +1,8 @@
package eu.kanade.domain.updates.anime.interactor
import eu.kanade.domain.updates.anime.model.AnimeUpdatesWithRelations
import eu.kanade.domain.updates.anime.repository.AnimeUpdatesRepository
import kotlinx.coroutines.flow.Flow
import tachiyomi.domain.updates.anime.model.AnimeUpdatesWithRelations
import java.util.Calendar
class GetAnimeUpdates(

View file

@ -1,7 +1,7 @@
package eu.kanade.domain.updates.anime.repository
import eu.kanade.domain.updates.anime.model.AnimeUpdatesWithRelations
import kotlinx.coroutines.flow.Flow
import tachiyomi.domain.updates.anime.model.AnimeUpdatesWithRelations
interface AnimeUpdatesRepository {

View file

@ -1,8 +1,8 @@
package eu.kanade.domain.updates.manga.interactor
import eu.kanade.domain.updates.manga.model.MangaUpdatesWithRelations
import eu.kanade.domain.updates.manga.repository.MangaUpdatesRepository
import kotlinx.coroutines.flow.Flow
import tachiyomi.domain.updates.manga.model.MangaUpdatesWithRelations
import java.util.Calendar
class GetMangaUpdates(

View file

@ -1,7 +1,7 @@
package eu.kanade.domain.updates.manga.repository
import eu.kanade.domain.updates.manga.model.MangaUpdatesWithRelations
import kotlinx.coroutines.flow.Flow
import tachiyomi.domain.updates.manga.model.MangaUpdatesWithRelations
interface MangaUpdatesRepository {

View file

@ -5,9 +5,9 @@ import androidx.compose.foundation.layout.width
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import eu.kanade.domain.entries.EntryCover
import eu.kanade.presentation.components.CommonEntryItemDefaults
import eu.kanade.presentation.components.EntryComfortableGridItem
import tachiyomi.domain.entries.EntryCover
@Composable
fun GlobalSearchCard(

View file

@ -16,7 +16,6 @@ import androidx.paging.LoadState
import androidx.paging.compose.LazyPagingItems
import eu.kanade.data.items.episode.NoEpisodesException
import eu.kanade.domain.entries.anime.model.Anime
import eu.kanade.domain.library.model.LibraryDisplayMode
import eu.kanade.presentation.browse.anime.components.BrowseAnimeSourceComfortableGrid
import eu.kanade.presentation.browse.anime.components.BrowseAnimeSourceCompactGrid
import eu.kanade.presentation.browse.anime.components.BrowseAnimeSourceList
@ -27,6 +26,7 @@ import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.animesource.AnimeCatalogueSource
import eu.kanade.tachiyomi.source.anime.LocalAnimeSource
import kotlinx.coroutines.flow.StateFlow
import tachiyomi.domain.library.model.LibraryDisplayMode
@Composable
fun BrowseAnimeSourceContent(

View file

@ -12,13 +12,13 @@ import androidx.compose.ui.unit.dp
import androidx.paging.LoadState
import androidx.paging.compose.LazyPagingItems
import eu.kanade.domain.entries.anime.model.Anime
import eu.kanade.domain.entries.anime.model.AnimeCover
import eu.kanade.presentation.browse.InLibraryBadge
import eu.kanade.presentation.browse.manga.components.BrowseSourceLoadingItem
import eu.kanade.presentation.components.CommonEntryItemDefaults
import eu.kanade.presentation.components.EntryComfortableGridItem
import eu.kanade.presentation.util.plus
import kotlinx.coroutines.flow.StateFlow
import tachiyomi.domain.entries.anime.model.AnimeCover
@Composable
fun BrowseAnimeSourceComfortableGrid(

View file

@ -12,13 +12,13 @@ import androidx.compose.ui.unit.dp
import androidx.paging.LoadState
import androidx.paging.compose.LazyPagingItems
import eu.kanade.domain.entries.anime.model.Anime
import eu.kanade.domain.entries.anime.model.AnimeCover
import eu.kanade.presentation.browse.InLibraryBadge
import eu.kanade.presentation.browse.manga.components.BrowseSourceLoadingItem
import eu.kanade.presentation.components.CommonEntryItemDefaults
import eu.kanade.presentation.components.EntryCompactGridItem
import eu.kanade.presentation.util.plus
import kotlinx.coroutines.flow.StateFlow
import tachiyomi.domain.entries.anime.model.AnimeCover
@Composable
fun BrowseAnimeSourceCompactGrid(

View file

@ -9,7 +9,6 @@ import androidx.paging.LoadState
import androidx.paging.compose.LazyPagingItems
import androidx.paging.compose.items
import eu.kanade.domain.entries.anime.model.Anime
import eu.kanade.domain.entries.anime.model.AnimeCover
import eu.kanade.presentation.browse.InLibraryBadge
import eu.kanade.presentation.browse.manga.components.BrowseSourceLoadingItem
import eu.kanade.presentation.components.CommonEntryItemDefaults
@ -17,6 +16,7 @@ import eu.kanade.presentation.components.EntryListItem
import eu.kanade.presentation.components.LazyColumn
import eu.kanade.presentation.util.plus
import kotlinx.coroutines.flow.StateFlow
import tachiyomi.domain.entries.anime.model.AnimeCover
@Composable
fun BrowseAnimeSourceList(

View file

@ -13,7 +13,6 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.res.stringResource
import eu.kanade.domain.library.model.LibraryDisplayMode
import eu.kanade.presentation.components.AppBar
import eu.kanade.presentation.components.AppBarActions
import eu.kanade.presentation.components.AppBarTitle
@ -23,6 +22,7 @@ import eu.kanade.presentation.components.SearchToolbar
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.animesource.AnimeCatalogueSource
import eu.kanade.tachiyomi.source.anime.LocalAnimeSource
import tachiyomi.domain.library.model.LibraryDisplayMode
@Composable
fun BrowseAnimeSourceToolbar(

View file

@ -16,7 +16,6 @@ import androidx.paging.LoadState
import androidx.paging.compose.LazyPagingItems
import eu.kanade.data.items.chapter.NoChaptersException
import eu.kanade.domain.entries.manga.model.Manga
import eu.kanade.domain.library.model.LibraryDisplayMode
import eu.kanade.presentation.browse.manga.components.BrowseMangaSourceComfortableGrid
import eu.kanade.presentation.browse.manga.components.BrowseMangaSourceCompactGrid
import eu.kanade.presentation.browse.manga.components.BrowseMangaSourceList
@ -27,6 +26,7 @@ import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.source.CatalogueSource
import eu.kanade.tachiyomi.source.manga.LocalMangaSource
import kotlinx.coroutines.flow.StateFlow
import tachiyomi.domain.library.model.LibraryDisplayMode
@Composable
fun BrowseSourceContent(

View file

@ -12,12 +12,12 @@ import androidx.compose.ui.unit.dp
import androidx.paging.LoadState
import androidx.paging.compose.LazyPagingItems
import eu.kanade.domain.entries.manga.model.Manga
import eu.kanade.domain.entries.manga.model.MangaCover
import eu.kanade.presentation.browse.InLibraryBadge
import eu.kanade.presentation.components.CommonEntryItemDefaults
import eu.kanade.presentation.components.EntryComfortableGridItem
import eu.kanade.presentation.util.plus
import kotlinx.coroutines.flow.StateFlow
import tachiyomi.domain.entries.manga.model.MangaCover
@Composable
fun BrowseMangaSourceComfortableGrid(

View file

@ -12,12 +12,12 @@ import androidx.compose.ui.unit.dp
import androidx.paging.LoadState
import androidx.paging.compose.LazyPagingItems
import eu.kanade.domain.entries.manga.model.Manga
import eu.kanade.domain.entries.manga.model.MangaCover
import eu.kanade.presentation.browse.InLibraryBadge
import eu.kanade.presentation.components.CommonEntryItemDefaults
import eu.kanade.presentation.components.EntryCompactGridItem
import eu.kanade.presentation.util.plus
import kotlinx.coroutines.flow.StateFlow
import tachiyomi.domain.entries.manga.model.MangaCover
@Composable
fun BrowseMangaSourceCompactGrid(

View file

@ -9,13 +9,13 @@ import androidx.paging.LoadState
import androidx.paging.compose.LazyPagingItems
import androidx.paging.compose.items
import eu.kanade.domain.entries.manga.model.Manga
import eu.kanade.domain.entries.manga.model.MangaCover
import eu.kanade.presentation.browse.InLibraryBadge
import eu.kanade.presentation.components.CommonEntryItemDefaults
import eu.kanade.presentation.components.EntryListItem
import eu.kanade.presentation.components.LazyColumn
import eu.kanade.presentation.util.plus
import kotlinx.coroutines.flow.StateFlow
import tachiyomi.domain.entries.manga.model.MangaCover
@Composable
fun BrowseMangaSourceList(

View file

@ -13,7 +13,6 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.res.stringResource
import eu.kanade.domain.library.model.LibraryDisplayMode
import eu.kanade.presentation.components.AppBar
import eu.kanade.presentation.components.AppBarActions
import eu.kanade.presentation.components.AppBarTitle
@ -23,6 +22,7 @@ import eu.kanade.presentation.components.SearchToolbar
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.source.CatalogueSource
import eu.kanade.tachiyomi.source.manga.LocalMangaSource
import tachiyomi.domain.library.model.LibraryDisplayMode
@Composable
fun BrowseMangaSourceToolbar(

View file

@ -6,7 +6,6 @@ import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import eu.kanade.domain.category.model.Category
import eu.kanade.presentation.category.components.CategoryContent
import eu.kanade.presentation.category.components.CategoryFloatingActionButton
import eu.kanade.presentation.components.EmptyScreen
@ -16,6 +15,7 @@ import eu.kanade.presentation.util.plus
import eu.kanade.presentation.util.topSmallPaddingValues
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.ui.category.anime.AnimeCategoryScreenState
import tachiyomi.domain.category.model.Category
@Composable
fun AnimeCategoryScreen(

View file

@ -3,8 +3,8 @@ package eu.kanade.presentation.category
import android.content.Context
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import eu.kanade.domain.category.model.Category
import eu.kanade.tachiyomi.R
import tachiyomi.domain.category.model.Category
val Category.visualName: String
@Composable

View file

@ -6,7 +6,6 @@ import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import eu.kanade.domain.category.model.Category
import eu.kanade.presentation.category.components.CategoryContent
import eu.kanade.presentation.category.components.CategoryFloatingActionButton
import eu.kanade.presentation.components.EmptyScreen
@ -16,6 +15,7 @@ import eu.kanade.presentation.util.plus
import eu.kanade.presentation.util.topSmallPaddingValues
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.ui.category.manga.MangaCategoryScreenState
import tachiyomi.domain.category.model.Category
@Composable
fun MangaCategoryScreen(

View file

@ -7,9 +7,9 @@ import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import eu.kanade.domain.category.model.Category
import eu.kanade.presentation.components.LazyColumn
import eu.kanade.presentation.util.padding
import tachiyomi.domain.category.model.Category
@Composable
fun CategoryContent(

View file

@ -14,10 +14,9 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester
import androidx.compose.ui.res.stringResource
import eu.kanade.domain.category.model.Category
import eu.kanade.domain.category.model.anyWithName
import eu.kanade.tachiyomi.R
import kotlinx.coroutines.delay
import tachiyomi.domain.category.model.Category
import kotlin.time.Duration.Companion.seconds
@Composable
@ -164,3 +163,7 @@ fun CategoryDeleteDialog(
},
)
}
internal fun List<Category>.anyWithName(name: String): Boolean {
return any { name == it.name }
}

View file

@ -20,9 +20,9 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import eu.kanade.domain.category.model.Category
import eu.kanade.presentation.util.padding
import eu.kanade.tachiyomi.R
import tachiyomi.domain.category.model.Category
@Composable
fun CategoryListItem(

View file

@ -22,10 +22,10 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import eu.kanade.core.prefs.CheckboxState
import eu.kanade.domain.category.model.Category
import eu.kanade.presentation.category.visualName
import eu.kanade.presentation.util.padding
import eu.kanade.tachiyomi.R
import tachiyomi.domain.category.model.Category
@Composable
fun ChangeCategoryDialog(

View file

@ -39,8 +39,8 @@ import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import eu.kanade.domain.entries.EntryCover
import eu.kanade.presentation.util.selectedBackground
import tachiyomi.domain.entries.EntryCover
object CommonEntryItemDefaults {
val GridHorizontalSpacer = 4.dp

View file

@ -5,12 +5,12 @@ import androidx.compose.foundation.lazy.items
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import eu.kanade.domain.history.anime.model.AnimeHistoryWithRelations
import eu.kanade.domain.ui.UiPreferences
import eu.kanade.presentation.components.FastScrollLazyColumn
import eu.kanade.presentation.components.RelativeDateHeader
import eu.kanade.presentation.history.anime.AnimeHistoryItem
import eu.kanade.presentation.history.anime.AnimeHistoryUiModel
import tachiyomi.domain.history.anime.model.AnimeHistoryWithRelations
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.text.DateFormat

View file

@ -20,11 +20,11 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import eu.kanade.domain.history.anime.model.AnimeHistoryWithRelations
import eu.kanade.presentation.components.ItemCover
import eu.kanade.presentation.util.padding
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.util.lang.toTimestampString
import tachiyomi.domain.history.anime.model.AnimeHistoryWithRelations
import java.text.DecimalFormat
import java.text.DecimalFormatSymbols

View file

@ -6,7 +6,6 @@ import androidx.compose.material3.SnackbarHost
import androidx.compose.material3.SnackbarHostState
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import eu.kanade.domain.history.anime.model.AnimeHistoryWithRelations
import eu.kanade.presentation.animehistory.components.AnimeHistoryContent
import eu.kanade.presentation.components.EmptyScreen
import eu.kanade.presentation.components.LoadingScreen
@ -14,6 +13,7 @@ import eu.kanade.presentation.components.Scaffold
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.ui.history.anime.AnimeHistoryScreenModel
import eu.kanade.tachiyomi.ui.history.anime.AnimeHistoryState
import tachiyomi.domain.history.anime.model.AnimeHistoryWithRelations
import java.util.Date
@Composable

View file

@ -5,10 +5,10 @@ import androidx.compose.foundation.lazy.items
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import eu.kanade.domain.history.manga.model.MangaHistoryWithRelations
import eu.kanade.domain.ui.UiPreferences
import eu.kanade.presentation.components.FastScrollLazyColumn
import eu.kanade.presentation.components.RelativeDateHeader
import tachiyomi.domain.history.manga.model.MangaHistoryWithRelations
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.text.DateFormat

View file

@ -20,11 +20,11 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import eu.kanade.domain.history.manga.model.MangaHistoryWithRelations
import eu.kanade.presentation.components.ItemCover
import eu.kanade.presentation.util.padding
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.util.lang.toTimestampString
import tachiyomi.domain.history.manga.model.MangaHistoryWithRelations
import java.text.DecimalFormat
import java.text.DecimalFormatSymbols

View file

@ -6,13 +6,13 @@ import androidx.compose.material3.SnackbarHost
import androidx.compose.material3.SnackbarHostState
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import eu.kanade.domain.history.manga.model.MangaHistoryWithRelations
import eu.kanade.presentation.components.EmptyScreen
import eu.kanade.presentation.components.LoadingScreen
import eu.kanade.presentation.components.Scaffold
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.ui.history.manga.HistoryState
import eu.kanade.tachiyomi.ui.history.manga.MangaHistoryScreenModel
import tachiyomi.domain.history.manga.model.MangaHistoryWithRelations
import java.util.Date
@Composable

View file

@ -6,11 +6,11 @@ import androidx.compose.material3.ScrollableTabRow
import androidx.compose.material3.Tab
import androidx.compose.runtime.Composable
import androidx.compose.ui.unit.dp
import eu.kanade.domain.category.model.Category
import eu.kanade.presentation.category.visualName
import eu.kanade.presentation.components.Divider
import eu.kanade.presentation.components.TabIndicator
import eu.kanade.presentation.components.TabText
import tachiyomi.domain.category.model.Category
@Composable
fun LibraryTabs(

View file

@ -6,7 +6,6 @@ import androidx.compose.foundation.lazy.grid.items
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.util.fastAny
import eu.kanade.domain.entries.anime.model.AnimeCover
import eu.kanade.domain.library.anime.LibraryAnime
import eu.kanade.presentation.animelib.components.DownloadsBadge
import eu.kanade.presentation.animelib.components.LanguageBadge
@ -15,6 +14,7 @@ import eu.kanade.presentation.components.EntryComfortableGridItem
import eu.kanade.presentation.library.LazyLibraryGrid
import eu.kanade.presentation.library.globalSearchItem
import eu.kanade.tachiyomi.ui.library.anime.AnimeLibraryItem
import tachiyomi.domain.entries.anime.model.AnimeCover
@Composable
fun AnimeLibraryComfortableGrid(

View file

@ -6,7 +6,6 @@ import androidx.compose.foundation.lazy.grid.items
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.util.fastAny
import eu.kanade.domain.entries.anime.model.AnimeCover
import eu.kanade.domain.library.anime.LibraryAnime
import eu.kanade.presentation.animelib.components.DownloadsBadge
import eu.kanade.presentation.animelib.components.LanguageBadge
@ -15,6 +14,7 @@ import eu.kanade.presentation.components.EntryCompactGridItem
import eu.kanade.presentation.library.LazyLibraryGrid
import eu.kanade.presentation.library.globalSearchItem
import eu.kanade.tachiyomi.ui.library.anime.AnimeLibraryItem
import tachiyomi.domain.entries.anime.model.AnimeCover
@Composable
fun AnimeLibraryCompactGrid(

View file

@ -15,15 +15,15 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalLayoutDirection
import eu.kanade.core.prefs.PreferenceMutableState
import eu.kanade.domain.category.model.Category
import eu.kanade.domain.library.anime.LibraryAnime
import eu.kanade.domain.library.model.LibraryDisplayMode
import eu.kanade.presentation.components.PullRefresh
import eu.kanade.presentation.components.rememberPagerState
import eu.kanade.presentation.library.LibraryTabs
import eu.kanade.tachiyomi.ui.library.anime.AnimeLibraryItem
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import tachiyomi.domain.category.model.Category
import tachiyomi.domain.library.model.LibraryDisplayMode
import kotlin.time.Duration.Companion.seconds
@Composable

View file

@ -8,7 +8,6 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import androidx.compose.ui.util.fastAny
import eu.kanade.domain.entries.anime.model.AnimeCover
import eu.kanade.domain.library.anime.LibraryAnime
import eu.kanade.presentation.animelib.components.DownloadsBadge
import eu.kanade.presentation.animelib.components.GlobalSearchItem
@ -18,6 +17,7 @@ import eu.kanade.presentation.components.EntryListItem
import eu.kanade.presentation.components.FastScrollLazyColumn
import eu.kanade.presentation.util.plus
import eu.kanade.tachiyomi.ui.library.anime.AnimeLibraryItem
import tachiyomi.domain.entries.anime.model.AnimeCover
@Composable
fun AnimeLibraryList(

View file

@ -12,11 +12,11 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalConfiguration
import eu.kanade.core.prefs.PreferenceMutableState
import eu.kanade.domain.library.anime.LibraryAnime
import eu.kanade.domain.library.model.LibraryDisplayMode
import eu.kanade.presentation.components.HorizontalPager
import eu.kanade.presentation.components.PagerState
import eu.kanade.presentation.library.manga.LibraryPagerEmptyScreen
import eu.kanade.tachiyomi.ui.library.anime.AnimeLibraryItem
import tachiyomi.domain.library.model.LibraryDisplayMode
@Composable
fun AnimeLibraryPager(

View file

@ -6,7 +6,6 @@ import androidx.compose.foundation.lazy.grid.items
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.util.fastAny
import eu.kanade.domain.entries.manga.model.MangaCover
import eu.kanade.domain.library.manga.LibraryManga
import eu.kanade.presentation.animelib.components.DownloadsBadge
import eu.kanade.presentation.animelib.components.LanguageBadge
@ -15,6 +14,7 @@ import eu.kanade.presentation.components.EntryComfortableGridItem
import eu.kanade.presentation.library.LazyLibraryGrid
import eu.kanade.presentation.library.globalSearchItem
import eu.kanade.tachiyomi.ui.library.manga.MangaLibraryItem
import tachiyomi.domain.entries.manga.model.MangaCover
@Composable
fun MangaLibraryComfortableGrid(

View file

@ -6,7 +6,6 @@ import androidx.compose.foundation.lazy.grid.items
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.util.fastAny
import eu.kanade.domain.entries.manga.model.MangaCover
import eu.kanade.domain.library.manga.LibraryManga
import eu.kanade.presentation.animelib.components.DownloadsBadge
import eu.kanade.presentation.animelib.components.LanguageBadge
@ -15,6 +14,7 @@ import eu.kanade.presentation.components.EntryCompactGridItem
import eu.kanade.presentation.library.LazyLibraryGrid
import eu.kanade.presentation.library.globalSearchItem
import eu.kanade.tachiyomi.ui.library.manga.MangaLibraryItem
import tachiyomi.domain.entries.manga.model.MangaCover
@Composable
fun MangaLibraryCompactGrid(

View file

@ -15,15 +15,15 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalLayoutDirection
import eu.kanade.core.prefs.PreferenceMutableState
import eu.kanade.domain.category.model.Category
import eu.kanade.domain.library.manga.LibraryManga
import eu.kanade.domain.library.model.LibraryDisplayMode
import eu.kanade.presentation.components.PullRefresh
import eu.kanade.presentation.components.rememberPagerState
import eu.kanade.presentation.library.LibraryTabs
import eu.kanade.tachiyomi.ui.library.manga.MangaLibraryItem
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import tachiyomi.domain.category.model.Category
import tachiyomi.domain.library.model.LibraryDisplayMode
import kotlin.time.Duration.Companion.seconds
@Composable

View file

@ -8,7 +8,6 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import androidx.compose.ui.util.fastAny
import eu.kanade.domain.entries.manga.model.MangaCover
import eu.kanade.domain.library.manga.LibraryManga
import eu.kanade.presentation.animelib.components.DownloadsBadge
import eu.kanade.presentation.animelib.components.GlobalSearchItem
@ -18,6 +17,7 @@ import eu.kanade.presentation.components.EntryListItem
import eu.kanade.presentation.components.FastScrollLazyColumn
import eu.kanade.presentation.util.plus
import eu.kanade.tachiyomi.ui.library.manga.MangaLibraryItem
import tachiyomi.domain.entries.manga.model.MangaCover
@Composable
fun MangaLibraryList(

View file

@ -18,7 +18,6 @@ import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.unit.dp
import eu.kanade.core.prefs.PreferenceMutableState
import eu.kanade.domain.library.manga.LibraryManga
import eu.kanade.domain.library.model.LibraryDisplayMode
import eu.kanade.presentation.animelib.components.GlobalSearchItem
import eu.kanade.presentation.components.EmptyScreen
import eu.kanade.presentation.components.HorizontalPager
@ -26,6 +25,7 @@ import eu.kanade.presentation.components.PagerState
import eu.kanade.presentation.util.plus
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.ui.library.manga.MangaLibraryItem
import tachiyomi.domain.library.model.LibraryDisplayMode
@Composable
fun MangaLibraryPager(

View file

@ -4,9 +4,9 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.ReadOnlyComposable
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.stringResource
import eu.kanade.domain.category.model.Category
import eu.kanade.presentation.category.visualName
import eu.kanade.tachiyomi.R
import tachiyomi.domain.category.model.Category
/**
* Returns a string of categories name for settings subtitle

Some files were not shown because too many files have changed in this diff Show more