From 26e64a36fe94e6b897a192f44f4c7d426db5d025 Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 6 Jun 2022 18:45:48 -0400 Subject: [PATCH] Fix URL handler activities (#12093) --- common.gradle | 3 +-- gradle/libs.versions.toml | 2 +- src/all/mangadex/build.gradle | 4 ++-- .../extension/all/mangadex/RateLimitInterceptor.kt | 8 ++++---- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/common.gradle b/common.gradle index 5fc2cee05..10f4c7cb8 100644 --- a/common.gradle +++ b/common.gradle @@ -25,8 +25,7 @@ android { versionName project.ext.properties.getOrDefault("libVersion", "1.3") + ".$extVersionCode" setProperty("archivesBaseName", "tachiyomi-$pkgNameSuffix-v$versionName") def readmes = project.projectDir.listFiles({ File file -> - file.name.equals("README.md") || - file.name.equals("CHANGELOG.md") + file.name == "README.md" || file.name == "CHANGELOG.md" } as FileFilter) def hasReadme = readmes != null && readmes.any { File file -> file.name.startsWith("README") diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 3a850b2cf..13469f5fe 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -kotlin_version = "1.6.10" +kotlin_version = "1.6.21" coroutines_version = "1.6.0" serialization_version = "1.3.2" diff --git a/src/all/mangadex/build.gradle b/src/all/mangadex/build.gradle index 6245cf03c..0398f9b06 100644 --- a/src/all/mangadex/build.gradle +++ b/src/all/mangadex/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'MangaDex' pkgNameSuffix = 'all.mangadex' extClass = '.MangaDexFactory' - extVersionCode = 161 + extVersionCode = 162 isNsfw = true } @@ -14,4 +14,4 @@ dependencies { compileOnly(libs.okhttp) } -apply from: "$rootDir/common.gradle" +apply from: "$rootDir/common.gradle" \ No newline at end of file diff --git a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/RateLimitInterceptor.kt b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/RateLimitInterceptor.kt index b6152f62a..3d2ca34ae 100644 --- a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/RateLimitInterceptor.kt +++ b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/RateLimitInterceptor.kt @@ -18,9 +18,10 @@ import java.util.concurrent.TimeUnit * @param unit {TimeUnit} The unit of time for the period. Defaults to seconds. */ class RateLimitInterceptor( - private val permits: Int, - private val period: Long = 1, - private val unit: TimeUnit = TimeUnit.SECONDS) : Interceptor { + private val permits: Int, + private val period: Long = 1, + private val unit: TimeUnit = TimeUnit.SECONDS +) : Interceptor { private val requestQueue = ArrayList(permits) private val rateLimitMillis = unit.toMillis(period) @@ -54,5 +55,4 @@ class RateLimitInterceptor( return chain.proceed(chain.request()) } - }