From b667e325988675e1396a2bd93d55c3724aae520d Mon Sep 17 00:00:00 2001 From: Koitharu Date: Sun, 20 Jul 2025 08:13:28 +0300 Subject: [PATCH] Update parsers --- .../koitharu/kotatsu/core/parser/DummyParser.kt | 14 +++++++++----- gradle/libs.versions.toml | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/core/parser/DummyParser.kt b/app/src/main/kotlin/org/koitharu/kotatsu/core/parser/DummyParser.kt index fd21f811a..1d918e6f8 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/core/parser/DummyParser.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/core/parser/DummyParser.kt @@ -6,12 +6,12 @@ import org.koitharu.kotatsu.parsers.config.ConfigKey import org.koitharu.kotatsu.parsers.core.AbstractMangaParser import org.koitharu.kotatsu.parsers.model.Manga import org.koitharu.kotatsu.parsers.model.MangaChapter +import org.koitharu.kotatsu.parsers.model.MangaListFilter +import org.koitharu.kotatsu.parsers.model.MangaListFilterCapabilities import org.koitharu.kotatsu.parsers.model.MangaListFilterOptions import org.koitharu.kotatsu.parsers.model.MangaPage import org.koitharu.kotatsu.parsers.model.MangaParserSource import org.koitharu.kotatsu.parsers.model.SortOrder -import org.koitharu.kotatsu.parsers.model.search.MangaSearchQuery -import org.koitharu.kotatsu.parsers.model.search.MangaSearchQueryCapabilities import java.util.EnumSet /** @@ -25,14 +25,18 @@ class DummyParser(context: MangaLoaderContext) : AbstractMangaParser(context, Ma override val availableSortOrders: Set get() = EnumSet.allOf(SortOrder::class.java) - override val searchQueryCapabilities: MangaSearchQueryCapabilities - get() = MangaSearchQueryCapabilities() + override val filterCapabilities: MangaListFilterCapabilities + get() = MangaListFilterCapabilities() override suspend fun getDetails(manga: Manga): Manga = stub(manga) override suspend fun getFilterOptions(): MangaListFilterOptions = stub(null) - override suspend fun getList(query: MangaSearchQuery): List = stub(null) + override suspend fun getList( + offset: Int, + order: SortOrder, + filter: MangaListFilter + ): List = stub(null) override suspend fun getPages(chapter: MangaChapter): List = stub(null) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 949878a26..71646c68b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -33,7 +33,7 @@ material = "1.14.0-alpha02" moshi = "1.15.2" okhttp = "4.12.0" okio = "3.12.0" -parsers = "613d1cd1a1" +parsers = "5962efb7df" preference = "1.2.1" recyclerview = "1.4.0" room = "2.7.2"