Fix URL handler activities (#12093)
This commit is contained in:
parent
d74e4708d7
commit
26e64a36fe
|
@ -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")
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
|
@ -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<Long>(permits)
|
||||
private val rateLimitMillis = unit.toMillis(period)
|
||||
|
@ -54,5 +55,4 @@ class RateLimitInterceptor(
|
|||
|
||||
return chain.proceed(chain.request())
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue