From 7e6af77da1b798a4d0fba3310162bb555f515483 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 25 Jan 2023 12:26:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/app/java/io/legado/app/help/AppUpdateGitHub.kt | 4 +--- app/src/main/res/values/non_translat.xml | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/app/java/io/legado/app/help/AppUpdateGitHub.kt b/app/src/app/java/io/legado/app/help/AppUpdateGitHub.kt index 8da8effca..a7d570863 100644 --- a/app/src/app/java/io/legado/app/help/AppUpdateGitHub.kt +++ b/app/src/app/java/io/legado/app/help/AppUpdateGitHub.kt @@ -1,7 +1,6 @@ package io.legado.app.help import androidx.annotation.Keep -import io.legado.app.R import io.legado.app.constant.AppConst import io.legado.app.exception.NoStackTraceException import io.legado.app.help.coroutine.Coroutine @@ -10,7 +9,6 @@ import io.legado.app.help.http.okHttpClient import io.legado.app.utils.jsonPath import io.legado.app.utils.readString import kotlinx.coroutines.CoroutineScope -import splitties.init.appCtx @Keep @Suppress("unused") @@ -20,7 +18,7 @@ object AppUpdateGitHub: AppUpdate.AppUpdateInterface { scope: CoroutineScope, ): Coroutine { return Coroutine.async(scope) { - val lastReleaseUrl = appCtx.getString(R.string.latest_release_api) + val lastReleaseUrl = "https://api.github.com/repos/gedoor/legado/releases/latest" val body = okHttpClient.newCallStrResponse { url(lastReleaseUrl) }.body diff --git a/app/src/main/res/values/non_translat.xml b/app/src/main/res/values/non_translat.xml index 2b6917391..31593aeb7 100644 --- a/app/src/main/res/values/non_translat.xml +++ b/app/src/main/res/values/non_translat.xml @@ -9,8 +9,6 @@ https://github.com/gedoor/legado/graphs/contributors https://gedoor.github.io https://github.com/gedoor/legado/blob/master/LICENSE - https://github.com/gedoor/legado/releases/latest - https://api.github.com/repos/gedoor/legado/releases/latest https://t.me/legado_channels https://discord.gg/qDE52P5xGW