Fix release build
This commit is contained in:
@@ -6,6 +6,7 @@ import org.koitharu.kotatsu.parsers.config.ConfigKey
|
||||
import org.koitharu.kotatsu.parsers.exception.NotFoundException
|
||||
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.MangaPage
|
||||
import org.koitharu.kotatsu.parsers.model.MangaSource
|
||||
import org.koitharu.kotatsu.parsers.model.MangaTag
|
||||
@@ -17,21 +18,16 @@ class DummyParser(context: MangaLoaderContext) : MangaParser(context, MangaSourc
|
||||
override val configKeyDomain: ConfigKey.Domain
|
||||
get() = ConfigKey.Domain("localhost")
|
||||
|
||||
override val sortOrders: Set<SortOrder>
|
||||
override val availableSortOrders: Set<SortOrder>
|
||||
get() = EnumSet.allOf(SortOrder::class.java)
|
||||
|
||||
override suspend fun getDetails(manga: Manga): Manga = stub()
|
||||
|
||||
override suspend fun getList(
|
||||
offset: Int,
|
||||
query: String?,
|
||||
tags: Set<MangaTag>?,
|
||||
sortOrder: SortOrder,
|
||||
): List<Manga> = stub()
|
||||
override suspend fun getList(offset: Int, filter: MangaListFilter?): List<Manga> = stub()
|
||||
|
||||
override suspend fun getPages(chapter: MangaChapter): List<MangaPage> = stub()
|
||||
|
||||
override suspend fun getTags(): Set<MangaTag> = stub()
|
||||
override suspend fun getAvailableTags(): Set<MangaTag> = stub()
|
||||
|
||||
private fun stub(): Nothing {
|
||||
throw NotFoundException("Usage of Dummy parser in release build", "")
|
||||
|
||||
Reference in New Issue
Block a user