You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.0 KiB
Markdown
62 lines
2.0 KiB
Markdown
# Kotatsu parsers
|
|
|
|
This library provides manga sources.
|
|
|
|
[](https://jitpack.io/#KotatsuApp/kotatsu-parsers)   [](https://t.me/kotatsuapp) [](https://discord.gg/NNJ5RgVBC5)
|
|
|
|
## Usage
|
|
|
|
1. Add it to your root build.gradle at the end of repositories:
|
|
|
|
```groovy
|
|
allprojects {
|
|
repositories {
|
|
...
|
|
maven { url 'https://jitpack.io' }
|
|
}
|
|
}
|
|
```
|
|
|
|
2. Add the dependency
|
|
|
|
For Java/Kotlin project:
|
|
```groovy
|
|
dependencies {
|
|
implementation("com.github.KotatsuApp:kotatsu-parsers:$parsers_version")
|
|
}
|
|
```
|
|
|
|
For Android project:
|
|
```groovy
|
|
dependencies {
|
|
implementation("com.github.KotatsuApp:kotatsu-parsers:$parsers_version") {
|
|
exclude group: 'org.json', module: 'json'
|
|
}
|
|
}
|
|
```
|
|
|
|
Versions are available on [JitPack](https://jitpack.io/#KotatsuApp/kotatsu-parsers)
|
|
|
|
3. Usage in code
|
|
|
|
```kotlin
|
|
val parser = MangaSource.MANGADEX.newParser(mangaLoaderContext)
|
|
```
|
|
|
|
`mangaLoaderContext` is an implementation of the `MangaLoaderContext` class.
|
|
See examples
|
|
of [Android](https://github.com/KotatsuApp/Kotatsu/blob/devel/app/src/main/java/org/koitharu/kotatsu/core/parser/MangaLoaderContextImpl.kt)
|
|
and [Non-Android](https://github.com/KotatsuApp/kotatsu-dl/blob/master/src/main/kotlin/org/koitharu/kotatsu_dl/env/MangaLoaderContextImpl.kt)
|
|
implementation.
|
|
|
|
Note that the `MangaSource.LOCAL` and `MangaSource.DUMMY` parsers cannot be instantiated.
|
|
|
|
## Contribution
|
|
|
|
See [CONTRIBUTING.md](./CONTRIBUTING.md) for the guidelines.
|
|
|
|
## DMCA disclaimer
|
|
|
|
The developers of this application have no affiliation with the content available in the app. It is collected from
|
|
sources freely available through any web browser.
|