Skip to content

Commit

Permalink
app: Remove useless println
Browse files Browse the repository at this point in the history
  • Loading branch information
YuKongA committed Nov 19, 2024
1 parent a64b1c9 commit 4f5c2e9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions composeApp/src/commonMain/kotlin/misc/AppUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,9 @@ fun updateRomInfo(
}

if (recoveryRomInfo.currentRom?.bigversion != null) {

println(recoveryRomInfo.currentRom)
println(recoveryRomInfo.latestRom)
val curRomDownload = if (recoveryRomInfo.currentRom.md5 != recoveryRomInfo.latestRom?.md5) {
val romInfoCurrent = getRecoveryRomInfo("", codeNameExt, regionCode, systemVersionExt, androidVersion.value, isLogin)
val recoveryRomInfoCurrent = json.decodeFromString<RomInfoHelper.RomInfo>(romInfoCurrent)
println(recoveryRomInfoCurrent)
if (recoveryRomInfoCurrent.currentRom != null) {
noUltimateLink = false
downloadUrl(recoveryRomInfoCurrent.currentRom.version!!, recoveryRomInfoCurrent.latestRom?.filename!!)
Expand Down Expand Up @@ -186,9 +182,7 @@ fun handleRomInfo(
) {
if (romInfo?.bigversion != null) {
val log = StringBuilder()
if (romInfo.changelog != null) {
romInfo.changelog.forEach { log.append(it.key).append("\n").append(it.value.txt.joinToString("\n")).append("\n\n") }
}
romInfo.changelog?.forEach { log.append(it.key).append("\n").append(it.value.txt.joinToString("\n")).append("\n\n") }
val changelogGroups = log.toString().trimEnd().split("\n\n")
val changelog = changelogGroups.map { it.split("\n").drop(1).joinToString("\n") }
val iconNames = changelogGroups.map { it.split("\n").first() }
Expand Down

0 comments on commit 4f5c2e9

Please sign in to comment.