This commit is contained in:
Horis
2025-04-07 20:55:32 +08:00
parent 6f3ee908f8
commit 67b600ecf0
3 changed files with 5 additions and 9 deletions
@@ -1,15 +1,13 @@
package io.legado.app.help.http
import io.legado.app.lib.cronet.CronetLoader
import okhttp3.CookieJar
import okhttp3.Interceptor
object Cronet {
val loader: LoaderInterface? by lazy {
kotlin.runCatching {
Class.forName("io.legado.app.lib.cronet.CronetLoader")
.kotlin.objectInstance as LoaderInterface
}.getOrNull()
CronetLoader
}
fun preDownload() {
@@ -5,11 +5,8 @@ import kotlinx.coroutines.CoroutineScope
object AppUpdate {
val gitHubUpdate by lazy {
kotlin.runCatching {
Class.forName("io.legado.app.help.update.AppUpdateGitHub")
.kotlin.objectInstance as AppUpdateInterface
}.getOrNull()
val gitHubUpdate: AppUpdateInterface? by lazy {
AppUpdateGitHub
}
data class UpdateInfo(