build(Needs bump): Bump dependencies to support new patch options fields

This commit is contained in:
oSumAtrIX 2023-10-22 23:38:34 +02:00
parent a60d07fc5d
commit 6670d89c74
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 11 additions and 7 deletions

View File

@ -3,14 +3,14 @@ shadow = "8.1.1"
kotlin-test = "1.8.20-RC" kotlin-test = "1.8.20-RC"
kotlinx-coroutines-core = "1.7.3" kotlinx-coroutines-core = "1.7.3"
picocli = "4.7.3" picocli = "4.7.3"
revanced-patcher = "17.0.0" revanced-patcher = "18.0.0"
revanced-library = "1.1.4" revanced-library = "1.1.5"
[libraries] [libraries]
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin-test" } kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin-test" }
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines-core" } kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines-core" }
picocli = { module = "info.picocli:picocli", version.ref = "picocli" } picocli = { module = "info.picocli:picocli", version.ref = "picocli" }
revanced-patcher = { module = "app.revanced.revanced-patcher:revanced-patcher", version.ref = "revanced-patcher" } revanced-patcher = { module = "app.revanced:revanced-patcher", version.ref = "revanced-patcher" }
revanced-library = { module = "app.revanced:revanced-library", version.ref = "revanced-library" } revanced-library = { module = "app.revanced:revanced-library", version.ref = "revanced-library" }
[plugins] [plugins]

View File

@ -58,12 +58,16 @@ internal object ListPatchesCommand : Runnable {
fun PatchOption<*>.buildString() = buildString { fun PatchOption<*>.buildString() = buildString {
appendLine("Title: $title") appendLine("Title: $title")
appendLine("Description: $description") description?.let { appendLine("Description: $it") }
default?.let {
value?.let {
appendLine("Key: $key") appendLine("Key: $key")
append("Value: $it") append("Default: $it")
} ?: append("Key: $key") } ?: append("Key: $key")
values?.let { values ->
appendLine("\nValid values:")
append(values.map { "${it.value} (${it.key})" }.joinToString("\n").prependIndent("\t"))
}
} }
fun Patch<*>.buildString() = buildString { fun Patch<*>.buildString() = buildString {