Fix URL handler activities (#12093)

This commit is contained in:
arkon 2022-06-06 18:45:48 -04:00 committed by GitHub
parent d74e4708d7
commit 26e64a36fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 9 deletions

View File

@ -25,8 +25,7 @@ android {
versionName project.ext.properties.getOrDefault("libVersion", "1.3") + ".$extVersionCode" versionName project.ext.properties.getOrDefault("libVersion", "1.3") + ".$extVersionCode"
setProperty("archivesBaseName", "tachiyomi-$pkgNameSuffix-v$versionName") setProperty("archivesBaseName", "tachiyomi-$pkgNameSuffix-v$versionName")
def readmes = project.projectDir.listFiles({ File file -> def readmes = project.projectDir.listFiles({ File file ->
file.name.equals("README.md") || file.name == "README.md" || file.name == "CHANGELOG.md"
file.name.equals("CHANGELOG.md")
} as FileFilter) } as FileFilter)
def hasReadme = readmes != null && readmes.any { File file -> def hasReadme = readmes != null && readmes.any { File file ->
file.name.startsWith("README") file.name.startsWith("README")

View File

@ -1,5 +1,5 @@
[versions] [versions]
kotlin_version = "1.6.10" kotlin_version = "1.6.21"
coroutines_version = "1.6.0" coroutines_version = "1.6.0"
serialization_version = "1.3.2" serialization_version = "1.3.2"

View File

@ -6,7 +6,7 @@ ext {
extName = 'MangaDex' extName = 'MangaDex'
pkgNameSuffix = 'all.mangadex' pkgNameSuffix = 'all.mangadex'
extClass = '.MangaDexFactory' extClass = '.MangaDexFactory'
extVersionCode = 161 extVersionCode = 162
isNsfw = true isNsfw = true
} }
@ -14,4 +14,4 @@ dependencies {
compileOnly(libs.okhttp) compileOnly(libs.okhttp)
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -18,9 +18,10 @@ import java.util.concurrent.TimeUnit
* @param unit {TimeUnit} The unit of time for the period. Defaults to seconds. * @param unit {TimeUnit} The unit of time for the period. Defaults to seconds.
*/ */
class RateLimitInterceptor( class RateLimitInterceptor(
private val permits: Int, private val permits: Int,
private val period: Long = 1, private val period: Long = 1,
private val unit: TimeUnit = TimeUnit.SECONDS) : Interceptor { private val unit: TimeUnit = TimeUnit.SECONDS
) : Interceptor {
private val requestQueue = ArrayList<Long>(permits) private val requestQueue = ArrayList<Long>(permits)
private val rateLimitMillis = unit.toMillis(period) private val rateLimitMillis = unit.toMillis(period)
@ -54,5 +55,4 @@ class RateLimitInterceptor(
return chain.proceed(chain.request()) return chain.proceed(chain.request())
} }
} }