mirror of
https://github.com/ReVanced/revanced-cli.git
synced 2026-01-18 00:43:58 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
75e9c49b72 | ||
|
|
31a05b6768 | ||
|
|
57a1e7c27f | ||
|
|
585d77ce80 | ||
|
|
b4d0ce52ea | ||
|
|
ee26a8d233 | ||
|
|
be3abdda30 |
11
CHANGELOG.md
11
CHANGELOG.md
@@ -1,3 +1,14 @@
|
|||||||
|
# [2.1.0](https://github.com/revanced/revanced-cli/compare/v2.0.5...v2.1.0) (2022-07-03)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* `--include` option ([#76](https://github.com/revanced/revanced-cli/issues/76)) ([57a1e7c](https://github.com/revanced/revanced-cli/commit/57a1e7c27fb0c4292e08332b88ccd57d69fa02c6))
|
||||||
|
|
||||||
|
## [2.0.5](https://github.com/revanced/revanced-cli/compare/v2.0.4...v2.0.5) (2022-06-29)
|
||||||
|
|
||||||
|
## [2.0.4](https://github.com/revanced/revanced-cli/compare/v2.0.3...v2.0.4) (2022-06-28)
|
||||||
|
|
||||||
## [2.0.3](https://github.com/revanced/revanced-cli/compare/v2.0.2...v2.0.3) (2022-06-27)
|
## [2.0.3](https://github.com/revanced/revanced-cli/compare/v2.0.2...v2.0.3) (2022-06-27)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ dependencies {
|
|||||||
implementation(kotlin("stdlib"))
|
implementation(kotlin("stdlib"))
|
||||||
implementation(kotlin("reflect"))
|
implementation(kotlin("reflect"))
|
||||||
|
|
||||||
implementation("app.revanced:revanced-patcher:2.0.1")
|
implementation("app.revanced:revanced-patcher:2.1.2")
|
||||||
implementation("info.picocli:picocli:4.6.3")
|
implementation("info.picocli:picocli:4.6.3")
|
||||||
implementation("com.android.tools.build:apksig:7.2.1")
|
implementation("com.android.tools.build:apksig:7.2.1")
|
||||||
implementation("com.github.revanced:jadb:master-SNAPSHOT") // updated fork
|
implementation("com.github.revanced:jadb:master-SNAPSHOT") // updated fork
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
kotlin.code.style = official
|
kotlin.code.style = official
|
||||||
version = 2.0.3
|
version = 2.1.0
|
||||||
|
|||||||
@@ -57,6 +57,9 @@ internal object MainCommand : Runnable {
|
|||||||
@Option(names = ["-e", "--exclude"], description = ["Explicitly exclude patches"])
|
@Option(names = ["-e", "--exclude"], description = ["Explicitly exclude patches"])
|
||||||
var excludedPatches = arrayOf<String>()
|
var excludedPatches = arrayOf<String>()
|
||||||
|
|
||||||
|
@Option(names = ["-i", "--include"], description = ["Include patches"])
|
||||||
|
var includedPatches = arrayOf<String>()
|
||||||
|
|
||||||
@Option(names = ["-r", "--resource-patcher"], description = ["Disable patching resources"])
|
@Option(names = ["-r", "--resource-patcher"], description = ["Disable patching resources"])
|
||||||
var disableResourcePatching: Boolean = false
|
var disableResourcePatching: Boolean = false
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ internal class Adb(
|
|||||||
Constants.PATH_INIT_PUSH,
|
Constants.PATH_INIT_PUSH,
|
||||||
Constants.CONTENT_UMOUNT_SCRIPT.replacePlaceholder()
|
Constants.CONTENT_UMOUNT_SCRIPT.replacePlaceholder()
|
||||||
)
|
)
|
||||||
// install mount script
|
// install unmount script
|
||||||
device.run(Constants.COMMAND_INSTALL_UMOUNT.replacePlaceholder())
|
device.run(Constants.COMMAND_INSTALL_UMOUNT.replacePlaceholder())
|
||||||
|
|
||||||
// unmount the apk for sanity
|
// unmount the apk for sanity
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ fun Patcher.addPatchesFiltered(
|
|||||||
if (excludePatches && args.excludedPatches.contains(patchName)) {
|
if (excludePatches && args.excludedPatches.contains(patchName)) {
|
||||||
logger.info("$prefix: Explicitly excluded")
|
logger.info("$prefix: Explicitly excluded")
|
||||||
return@patch
|
return@patch
|
||||||
} else if (!patch.include) {
|
} else if (!patch.include && !args.includedPatches.contains(patchName)) {
|
||||||
logger.info("$prefix: Explicitly excluded")
|
logger.info("$prefix: Explicitly excluded")
|
||||||
return@patch
|
return@patch
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user