mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -177,6 +177,7 @@ dependencies {
|
||||
//Kotlin反射
|
||||
//noinspection GradleDependency,DifferentStdlibGradleVersion
|
||||
implementation(libs.kotlin.reflect)
|
||||
//implementation(libs.kotlin.reflect)
|
||||
|
||||
|
||||
//协程
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user