From c1aa8a45dc8cecf9a34e1dcb989fca20849b3814 Mon Sep 17 00:00:00 2001 From: Koitharu Date: Sat, 23 Apr 2022 09:41:58 +0300 Subject: [PATCH] Add dummy MangaSource --- .../kotlin/org/koitharu/kotatsu/parsers/ksp/ParserProcessor.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kotatsu-parsers-ksp/src/main/kotlin/org/koitharu/kotatsu/parsers/ksp/ParserProcessor.kt b/kotatsu-parsers-ksp/src/main/kotlin/org/koitharu/kotatsu/parsers/ksp/ParserProcessor.kt index 1142fe42..ceacbece 100644 --- a/kotatsu-parsers-ksp/src/main/kotlin/org/koitharu/kotatsu/parsers/ksp/ParserProcessor.kt +++ b/kotatsu-parsers-ksp/src/main/kotlin/org/koitharu/kotatsu/parsers/ksp/ParserProcessor.kt @@ -92,6 +92,7 @@ class ParserProcessor( factoryWriter?.write( """ MangaSource.LOCAL -> throw NotImplementedError("Local manga parser is not supported") + MangaSource.DUMMY -> throw NotImplementedError("Dummy manga parser cannot be instantiated") }.also { require(it.source == this) { "Cannot instantiate manga parser: ${'$'}name mapped to ${'$'}{it.source}" @@ -101,6 +102,7 @@ class ParserProcessor( ) sourcesWriter?.write( """ + DUMMY("Dummy", null), ; } """.trimIndent(),