更新界面
This commit is contained in:
1 parent
3516af6a9f
commit
3c494cfc9a
24 files changed
+666
-302
No files matched your search
@@ -25,7 +25,6 @@ import io.legato.kazusa.utils.compress.ZipUtils
|
||||
import io.legato.kazusa.utils.fromJsonObject
|
||||
import io.legato.kazusa.utils.getPrefString
|
||||
import io.legato.kazusa.utils.isJson
|
||||
import io.legato.kazusa.utils.removePref
|
||||
import io.legato.kazusa.utils.toastOnUi
|
||||
import kotlinx.coroutines.ensureActive
|
||||
import kotlinx.coroutines.runBlocking
|
||||
@@ -166,7 +165,7 @@ object AppWebDav {
|
||||
val auth = Authorization(account, password)
|
||||
checkAuthorization(auth)
|
||||
|
||||
appCtx.toastOnUi("WebDAV 服务正常")
|
||||
appCtx.toastOnUi("WebDAV 服务可用")
|
||||
true
|
||||
}.getOrElse {
|
||||
it.printStackTrace()
|
||||
|
||||
@@ -13,7 +13,10 @@ data class AppReleaseInfo(
|
||||
val downloadUrl: String,
|
||||
val assetUrl: String
|
||||
) {
|
||||
val versionName: String = name.split("_").getOrNull(2)?.dropLast(2) ?: ""
|
||||
val versionName: String = Regex("""legado_app_([\d.]+)""")
|
||||
.find(name)
|
||||
?.groupValues?.get(1)
|
||||
?: ""
|
||||
}
|
||||
|
||||
enum class AppVariant {
|
||||
|
||||
Reference in new issue
Block a user