Dependency upgrade

This commit is contained in:
tom5079
2020-06-19 16:34:05 +09:00
parent b04a5fc150
commit 2f8445fb83
10 changed files with 33 additions and 34 deletions

View File

@@ -5,9 +5,9 @@ apply plugin: 'kotlinx-serialization'
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.3'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7'
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0"
implementation 'org.jsoup:jsoup:1.12.1'
implementation 'org.jsoup:jsoup:1.13.1'
testImplementation 'junit:junit:4.13'
}

View File

@@ -74,7 +74,7 @@ fun getReader(galleryID: Int) : Reader {
with(URL(url).openConnection(proxy) as HttpsURLConnection) {
setRequestProperty("User-Agent", user_agent)
setRequestProperty("Cookie", cookie)
connectTimeout = 2000
connectTimeout = 1000
connect()
inputStream.bufferedReader().use { it.readText() }