1
mirror of https://github.com/revanced/revanced-cli synced 2025-11-19 15:33:27 +01:00

Compare commits

...

2 Commits

Author SHA1 Message Date
semantic-release-bot
a0067c7911 chore(release): 2.22.0-dev.1 [skip ci]
# [2.22.0-dev.1](https://github.com/revanced/revanced-cli/compare/v2.21.5...v2.22.0-dev.1) (2023-07-10)

### Features

* use new patch naming convention ([e4908c7](e4908c7105))
2023-07-10 16:51:55 +00:00
oSumAtrIX
e4908c7105 feat: use new patch naming convention 2023-07-10 18:49:40 +02:00
5 changed files with 14 additions and 8 deletions

View File

@@ -1,3 +1,10 @@
# [2.22.0-dev.1](https://github.com/revanced/revanced-cli/compare/v2.21.5...v2.22.0-dev.1) (2023-07-10)
### Features
* use new patch naming convention ([e4908c7](https://github.com/revanced/revanced-cli/commit/e4908c71051a535f8ce3406427cebbb0941464df))
## [2.21.5](https://github.com/revanced/revanced-cli/compare/v2.21.4...v2.21.5) (2023-07-01)
## [2.21.5-dev.2](https://github.com/revanced/revanced-cli/compare/v2.21.5-dev.1...v2.21.5-dev.2) (2023-07-01)

View File

@@ -35,7 +35,7 @@ Learn how to ReVanced CLI.
```bash
java -jar revanced-cli.jar
-b revanced-patches.jar \
-l
-l # Names of all patches will be in kebab-case
```
- ### 💉 Use ReVanced CLI to patch an APK file but deploy without root permissions

View File

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

View File

@@ -241,7 +241,7 @@ internal object MainCommand : Runnable {
}
// Add patch name
val patchName = patch.patchName.padStart(25)
val patchName = patch.patchName.lowercase().replace("-", " ").padStart(25)
append(patchName)
// Add description if flag is set.

View File

@@ -1,6 +1,5 @@
package app.revanced.utils.patcher
import app.revanced.cli.command.MainCommand
import app.revanced.cli.command.MainCommand.args
import app.revanced.cli.command.MainCommand.logger
import app.revanced.cli.command.PatchList
@@ -18,8 +17,8 @@ fun Patcher.addPatchesFiltered(allPatches: PatchList) {
val includedPatches = mutableListOf<Class<out Patch<Context>>>()
allPatches.forEach patchLoop@{ patch ->
val compatiblePackages = patch.compatiblePackages
val patchName = patch.patchName
val args = MainCommand.args.patchArgs?.patchingArgs!!
val patchName = patch.patchName.lowercase().replace(" ", "-")
val args = args.patchArgs?.patchingArgs!!
val prefix = "Skipping $patchName"