Compare commits

..

2 Commits

Author SHA1 Message Date
semantic-release-bot
f29eda8674 chore: Release v5.0.2-dev.2 [skip ci]
## [5.0.2-dev.2](https://github.com/ReVanced/revanced-cli/compare/v5.0.2-dev.1...v5.0.2-dev.2) (2025-04-25)

### Bug Fixes

* Do not print patch description if null ([bba90fe](bba90fede8))
2025-04-25 20:29:10 +00:00
oSumAtrIX
bba90fede8 fix: Do not print patch description if null 2025-04-25 22:27:11 +02:00
3 changed files with 50 additions and 46 deletions

View File

@@ -1,3 +1,10 @@
## [5.0.2-dev.2](https://github.com/ReVanced/revanced-cli/compare/v5.0.2-dev.1...v5.0.2-dev.2) (2025-04-25)
### Bug Fixes
* Do not print patch description if null ([bba90fe](https://github.com/ReVanced/revanced-cli/commit/bba90fede85e4632efb9509e5bcf9091a9435549))
## [5.0.2-dev.1](https://github.com/ReVanced/revanced-cli/compare/v5.0.1...v5.0.2-dev.1) (2025-04-20) ## [5.0.2-dev.1](https://github.com/ReVanced/revanced-cli/compare/v5.0.1...v5.0.2-dev.1) (2025-04-20)

View File

@@ -1,4 +1,4 @@
org.gradle.parallel = true org.gradle.parallel = true
org.gradle.caching = true org.gradle.caching = true
kotlin.code.style = official kotlin.code.style = official
version = 5.0.2-dev.1 version = 5.0.2-dev.2

View File

@@ -85,8 +85,7 @@ internal object ListPatchesCommand : Runnable {
} }
} }
fun PatchOption<*>.buildString() = fun PatchOption<*>.buildString() = buildString {
buildString {
appendLine("Title: $title") appendLine("Title: $title")
description?.let { appendLine("Description: $it") } description?.let { appendLine("Description: $it") }
appendLine("Required: $required") appendLine("Required: $required")
@@ -103,14 +102,13 @@ internal object ListPatchesCommand : Runnable {
append("\nType: $type") append("\nType: $type")
} }
fun IndexedValue<Patch<*>>.buildString() = fun IndexedValue<Patch<*>>.buildString() = let { (index, patch) ->
let { (index, patch) ->
buildString { buildString {
if (withIndex) appendLine("Index: $index") if (withIndex) appendLine("Index: $index")
append("Name: ${patch.name}") append("Name: ${patch.name}")
if (withDescriptions) append("\nDescription: ${patch.description}") if (withDescriptions) patch.description?.let { append("\nDescription: $it") }
append("\nEnabled: ${patch.use}") append("\nEnabled: ${patch.use}")
@@ -134,8 +132,7 @@ internal object ListPatchesCommand : Runnable {
} }
} }
fun Patch<*>.filterCompatiblePackages(name: String) = fun Patch<*>.filterCompatiblePackages(name: String) = compatiblePackages?.any { (compatiblePackageName, _) -> compatiblePackageName == name }
compatiblePackages?.any { (compatiblePackageName, _) -> compatiblePackageName == name }
?: withUniversalPatches ?: withUniversalPatches
val patches = loadPatchesFromJar(patchesFiles).withIndex().toList() val patches = loadPatchesFromJar(patchesFiles).withIndex().toList()