Move common app-provided dependencies to common.gradle (#3214)
This commit is contained in:
parent
5a08ce9dca
commit
efc1877172
|
@ -61,10 +61,15 @@ dependencies {
|
||||||
// Lib 1.2, but using specific commit so we don't need to bump up the version
|
// Lib 1.2, but using specific commit so we don't need to bump up the version
|
||||||
compileOnly "com.github.tachiyomiorg:extensions-lib:84bfb8d"
|
compileOnly "com.github.tachiyomiorg:extensions-lib:84bfb8d"
|
||||||
|
|
||||||
|
// These are provided by the app itself
|
||||||
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
||||||
|
|
||||||
|
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
||||||
compileOnly 'com.squareup.okhttp3:okhttp:3.10.0'
|
compileOnly 'com.squareup.okhttp3:okhttp:3.10.0'
|
||||||
compileOnly 'io.reactivex:rxjava:1.3.6'
|
compileOnly 'io.reactivex:rxjava:1.3.6'
|
||||||
compileOnly 'org.jsoup:jsoup:1.10.2'
|
compileOnly 'org.jsoup:jsoup:1.10.2'
|
||||||
|
compileOnly 'com.google.code.gson:gson:2.8.2'
|
||||||
|
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
preBuild.dependsOn(lintKotlin)
|
preBuild.dependsOn(lintKotlin)
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,10 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -10,9 +10,6 @@ ext {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
implementation 'io.reactivex:rxandroid:1.2.1'
|
implementation 'io.reactivex:rxandroid:1.2.1'
|
||||||
implementation 'io.reactivex:rxjava:1.3.6'
|
implementation 'io.reactivex:rxjava:1.3.6'
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,10 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -7,9 +7,9 @@ import eu.kanade.tachiyomi.source.model.Filter
|
||||||
import eu.kanade.tachiyomi.source.model.FilterList
|
import eu.kanade.tachiyomi.source.model.FilterList
|
||||||
import eu.kanade.tachiyomi.source.model.MangasPage
|
import eu.kanade.tachiyomi.source.model.MangasPage
|
||||||
import eu.kanade.tachiyomi.util.asJsoup
|
import eu.kanade.tachiyomi.util.asJsoup
|
||||||
import okhttp3.Headers
|
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
|
import okhttp3.Headers
|
||||||
import okhttp3.Request
|
import okhttp3.Request
|
||||||
import okhttp3.Response
|
import okhttp3.Response
|
||||||
|
|
||||||
|
|
|
@ -11,9 +11,6 @@ ext {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(':lib-ratelimit')
|
implementation project(':lib-ratelimit')
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -13,9 +13,7 @@ ext {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-protobuf:0.20.0'
|
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-protobuf:0.20.0'
|
||||||
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0'
|
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0'
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly project(':duktape-stub')
|
compileOnly project(':duktape-stub')
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,8 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -8,9 +8,5 @@ ext {
|
||||||
extVersionCode = 6
|
extVersionCode = 6
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -11,6 +11,6 @@ ext {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(':lib-ratelimit')
|
implementation project(':lib-ratelimit')
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,8 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,8 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -11,8 +11,6 @@ ext {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly project(':duktape-stub')
|
compileOnly project(':duktape-stub')
|
||||||
sourceCompatibility = "1.6"
|
|
||||||
targetCompatibility = "1.6"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -6,12 +6,12 @@ import eu.kanade.tachiyomi.source.model.Page
|
||||||
import eu.kanade.tachiyomi.source.model.SChapter
|
import eu.kanade.tachiyomi.source.model.SChapter
|
||||||
import eu.kanade.tachiyomi.source.model.SManga
|
import eu.kanade.tachiyomi.source.model.SManga
|
||||||
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
|
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
|
||||||
import org.jsoup.nodes.Document
|
|
||||||
import org.jsoup.nodes.Element
|
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
|
import org.jsoup.nodes.Document
|
||||||
|
import org.jsoup.nodes.Element
|
||||||
|
|
||||||
class MangaKatana: ParsedHttpSource() {
|
class MangaKatana : ParsedHttpSource() {
|
||||||
override val name = "MangaKatana"
|
override val name = "MangaKatana"
|
||||||
|
|
||||||
override val baseUrl = "https://mangakatana.com"
|
override val baseUrl = "https://mangakatana.com"
|
||||||
|
@ -81,7 +81,7 @@ class MangaKatana: ParsedHttpSource() {
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
val html = document.toString()
|
val html = document.toString()
|
||||||
|
|
||||||
//Thanks to https://github.com/manga-py/manga-py
|
// Thanks to https://github.com/manga-py/manga-py
|
||||||
val regex = Regex("var\\s+\\w+\\s?=\\s?(\\[['\"].+?['\"]).?\\]\\s?;")
|
val regex = Regex("var\\s+\\w+\\s?=\\s?(\\[['\"].+?['\"]).?\\]\\s?;")
|
||||||
val match = regex.find(html)?.destructured?.toList()?.get(0)?.removePrefix("[")
|
val match = regex.find(html)?.destructured?.toList()?.get(0)?.removePrefix("[")
|
||||||
|
|
||||||
|
@ -94,4 +94,3 @@ class MangaKatana: ParsedHttpSource() {
|
||||||
|
|
||||||
override fun getFilterList() = FilterList()
|
override fun getFilterList() = FilterList()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,8 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,8 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,10 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -129,11 +129,10 @@ class HeavenManga : ParsedHttpSource() {
|
||||||
setUrlWithoutDomain(it.attr("href"))
|
setUrlWithoutDomain(it.attr("href"))
|
||||||
}
|
}
|
||||||
scanlator = element.select("span.pull-right").text()
|
scanlator = element.select("span.pull-right").text()
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun mangaDetailsParse(document: Document) = SManga.create().apply {
|
override fun mangaDetailsParse(document: Document) = SManga.create().apply {
|
||||||
document.select("div.tab-summary").let { info ->
|
document.select("div.tab-summary").let { info ->
|
||||||
genre = info.select("div.genres-content a").joinToString { it.text() }
|
genre = info.select("div.genres-content a").joinToString { it.text() }
|
||||||
thumbnail_url = info.select("div.summary_image img").attr("abs:data-src")
|
thumbnail_url = info.select("div.summary_image img").attr("abs:data-src")
|
||||||
|
@ -151,7 +150,7 @@ class HeavenManga : ParsedHttpSource() {
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
return document.select("script:containsData(pUrl)").first().data()
|
return document.select("script:containsData(pUrl)").first().data()
|
||||||
.substringAfter("pUrl=[").substringBefore("\"},];").split("\"},")
|
.substringAfter("pUrl=[").substringBefore("\"},];").split("\"},")
|
||||||
.mapIndexed{ i, string -> Page(i, "", string.substringAfterLast("\"")) }
|
.mapIndexed { i, string -> Page(i, "", string.substringAfterLast("\"")) }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,8 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,8 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,10 +9,8 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'org.apache.commons:commons-lang3:3.8.1'
|
implementation 'org.apache.commons:commons-lang3:3.8.1'
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -6,8 +6,6 @@ import eu.kanade.tachiyomi.source.model.Page
|
||||||
import eu.kanade.tachiyomi.source.model.SChapter
|
import eu.kanade.tachiyomi.source.model.SChapter
|
||||||
import eu.kanade.tachiyomi.source.model.SManga
|
import eu.kanade.tachiyomi.source.model.SManga
|
||||||
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
|
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
|
||||||
import java.util.Calendar
|
|
||||||
import okhttp3.OkHttpClient
|
|
||||||
import okhttp3.Protocol
|
import okhttp3.Protocol
|
||||||
import org.jsoup.nodes.Document
|
import org.jsoup.nodes.Document
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
|
|
|
@ -3,12 +3,12 @@ package eu.kanade.tachiyomi.extension.ja.mangaraw
|
||||||
import eu.kanade.tachiyomi.source.Source
|
import eu.kanade.tachiyomi.source.Source
|
||||||
import eu.kanade.tachiyomi.source.SourceFactory
|
import eu.kanade.tachiyomi.source.SourceFactory
|
||||||
|
|
||||||
class MangaRawFactory: SourceFactory {
|
class MangaRawFactory : SourceFactory {
|
||||||
override fun createSources(): List<Source> = listOf(
|
override fun createSources(): List<Source> = listOf(
|
||||||
Manga1000(),
|
Manga1000(),
|
||||||
Manga1001()
|
Manga1001()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
class Manga1000: MangaRaw("Manga1000", "http://manga1000.com")
|
class Manga1000 : MangaRaw("Manga1000", "http://manga1000.com")
|
||||||
class Manga1001: MangaRaw("Manga1001", "http://manga1001.com")
|
class Manga1001 : MangaRaw("Manga1001", "http://manga1001.com")
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,8 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,8 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,8 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -10,8 +10,6 @@ ext {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
implementation project(':lib-ratelimit')
|
implementation project(':lib-ratelimit')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -8,11 +8,9 @@ ext {
|
||||||
extVersionCode = 16
|
extVersionCode = 16
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
|
|
||||||
implementation project(':lib-ratelimit')
|
implementation project(':lib-ratelimit')
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,10 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -11,7 +11,6 @@ ext {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(':lib-ratelimit')
|
implementation project(':lib-ratelimit')
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,10 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
compileOnly 'com.github.inorichi.injekt:injekt-core:65b0440'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -8,8 +8,5 @@ ext {
|
||||||
extVersionCode = 1
|
extVersionCode = 1
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -11,9 +11,9 @@ import eu.kanade.tachiyomi.util.asJsoup
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
import okhttp3.Response
|
import okhttp3.Response
|
||||||
|
import org.json.JSONObject
|
||||||
import org.jsoup.nodes.Document
|
import org.jsoup.nodes.Document
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
import org.json.JSONObject
|
|
||||||
|
|
||||||
class MangaDenizi : ParsedHttpSource() {
|
class MangaDenizi : ParsedHttpSource() {
|
||||||
override val name = "MangaDenizi"
|
override val name = "MangaDenizi"
|
||||||
|
@ -42,7 +42,7 @@ class MangaDenizi : ParsedHttpSource() {
|
||||||
|
|
||||||
override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/latest-release?page=$page", headers)
|
override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/latest-release?page=$page", headers)
|
||||||
|
|
||||||
//No thumbnail on latest releases page
|
// No thumbnail on latest releases page
|
||||||
override fun latestUpdatesFromElement(element: Element) = SManga.create().apply {
|
override fun latestUpdatesFromElement(element: Element) = SManga.create().apply {
|
||||||
setUrlWithoutDomain(element.attr("href"))
|
setUrlWithoutDomain(element.attr("href"))
|
||||||
title = element.text()
|
title = element.text()
|
||||||
|
@ -79,7 +79,7 @@ class MangaDenizi : ParsedHttpSource() {
|
||||||
val results = response.getJSONArray("suggestions")
|
val results = response.getJSONArray("suggestions")
|
||||||
val mangas = ArrayList<SManga>()
|
val mangas = ArrayList<SManga>()
|
||||||
|
|
||||||
//No thumbnail here either
|
// No thumbnail here either
|
||||||
for (i in 0 until results.length()) {
|
for (i in 0 until results.length()) {
|
||||||
val obj = results.getJSONObject(i)
|
val obj = results.getJSONObject(i)
|
||||||
val manga = SManga.create()
|
val manga = SManga.create()
|
||||||
|
|
|
@ -88,8 +88,8 @@ class SeriManga : ParsedHttpSource() {
|
||||||
var continueParsing = true
|
var continueParsing = true
|
||||||
|
|
||||||
while (continueParsing) {
|
while (continueParsing) {
|
||||||
document.select(chapterListSelector()).map{ chapters.add(chapterFromElement(it)) }
|
document.select(chapterListSelector()).map { chapters.add(chapterFromElement(it)) }
|
||||||
document.select(popularMangaNextPageSelector()).let{
|
document.select(popularMangaNextPageSelector()).let {
|
||||||
if (it.isNotEmpty()) {
|
if (it.isNotEmpty()) {
|
||||||
document = client.newCall(GET(it.attr("abs:href"), headers)).execute().asJsoup()
|
document = client.newCall(GET(it.attr("abs:href"), headers)).execute().asJsoup()
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -11,7 +11,6 @@ ext {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly project(':duktape-stub')
|
compileOnly project(':duktape-stub')
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,4 @@ ext {
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -11,8 +11,6 @@ ext {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly project(':duktape-stub')
|
compileOnly project(':duktape-stub')
|
||||||
compileOnly 'com.google.code.gson:gson:2.8.2'
|
|
||||||
compileOnly 'com.github.salomonbrys.kotson:kotson:2.5.0'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
Loading…
Reference in New Issue