Skip to content

Commit

Permalink
[release] 5.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
heyanLE committed Nov 10, 2024
1 parent f93e4e7 commit 92ac6c7
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 6 deletions.
7 changes: 7 additions & 0 deletions app/src/main/assets/update_log.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
- 2024/11/10 5.4.6 紧急修复
新增 js 番剧源加载和添加功能(调试套件下版本添加)
修复 录制视频 Bug
修复 首次启动 PreferenceHelper 数据没加载
修复 添加 拓展 时下载失败崩溃
修复 调试番源出现的问题

- 2024/11/10 5.4.5
新增 js 番剧源加载和添加功能(调试套件下版本添加)
修复 录制视频 Bug
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ class PushFromFileUrl(
// 下载
try {
it.first.delete()
it.second.downloadTo(it.first.absolutePath)
kotlin.runCatching {
it.second.downloadTo(it.first.absolutePath)
}.onFailure {
it.printStackTrace()
}

yield()
if (it.first.exists() && it.first.length() > 0){
completelyDownloadCount ++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ class PushFromRepo(
val repoJsonlFile = File(cacheFolder, CACHE_REPO_JSONL_NAME)
repoJsonlFile.delete()
// 1. 下载 jsonl
param.str1.downloadTo(repoJsonlFile.absolutePath)
kotlin.runCatching {
param.str1.downloadTo(repoJsonlFile.absolutePath)
}.onFailure {
it.printStackTrace()
}

if (!repoJsonlFile.exists() || repoJsonlFile.length().toInt() == 0){
container.dispatchError(stringRes(R.string.load_fail))
return
Expand Down Expand Up @@ -78,7 +83,12 @@ class PushFromRepo(
// 下载
try {
it.first.delete()
it.second.downloadTo(it.first.absolutePath)
kotlin.runCatching {
it.second.downloadTo(it.first.absolutePath)
}.onFailure {
it.printStackTrace()
}

yield()
if (it.first.exists() && it.first.length() > 0){
completelyDownloadCount ++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class SourceController(

private val innerSource = listOf<Source>(
LocalSource,
DebugSource
// DebugSource
)


Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/java/com/heyanle/buildsrc/Android.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ object Android {
const val targetSdk = 34
const val compileSdk = 34

const val versionCode = 97
const val versionName = "5.4.5"
const val versionCode = 98
const val versionName = "5.4.6"


}

0 comments on commit 92ac6c7

Please sign in to comment.