This commit is contained in:
Horis
2025-04-07 20:55:32 +08:00
parent 3a1f7c384e
commit 0dfaa69b3d
3 changed files with 5 additions and 9 deletions

View File

@@ -177,6 +177,7 @@ dependencies {
//Kotlin反射
//noinspection GradleDependency,DifferentStdlibGradleVersion
implementation(libs.kotlin.reflect)
//implementation(libs.kotlin.reflect)
//协程

View File

@@ -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() {

View File

@@ -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(