Skip to content

Commit

Permalink
chore: Remove integrations option
Browse files Browse the repository at this point in the history
Handled automatically by ReVanced Patcher now.
  • Loading branch information
oSumAtrIX committed Jul 22, 2024
1 parent 1b464e6 commit c047425
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 36 deletions.
7 changes: 1 addition & 6 deletions docs/1_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,7 @@ ReVanced CLI is divided into the following fundamental commands:
> ```bash
> adb shell su -c exit
> ```
> **⚠️ Warning**
> Some patches may require integrations
> such as [ReVanced Integrations](https://github.com/revanced/revanced-integrations).
> Supply them with the option `--merge`. ReVanced Patcher will automatically determine if they are necessary.
>
- #### 👾 Patch an app and install it on your device regularly
```bash
Expand Down
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[versions]
shadow = "8.1.1"
kotlin = "2.0.0"
kotlinx-coroutines-core = "1.8.0"
picocli = "4.7.5"
revanced-patcher = "19.3.1"
revanced-library = "2.3.0"
kotlinx-coroutines-core = "1.8.1"
picocli = "4.7.6"
revanced-patcher = "20.0.0-dev.1"
revanced-library = "2.4.0-dev.1"

[libraries]
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines-core" }
picocli = { module = "info.picocli:picocli", version.ref = "picocli" }
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-jvm", version.ref = "revanced-library" }

[plugins]
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
Expand Down
26 changes: 1 addition & 25 deletions src/main/kotlin/app/revanced/cli/command/PatchCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ internal object PatchCommand : Runnable {

private lateinit var apk: File

private var integrations = emptySet<File>()

private var patchBundles = emptySet<File>()

@CommandLine.Option(
Expand Down Expand Up @@ -121,16 +119,6 @@ internal object PatchCommand : Runnable {
)
private var keyStorePassword: String? = null // Empty password by default

@CommandLine.Option(
names = ["--alias"],
description = ["The alias of the keystore entry to sign the patched APK file with."],
showDefaultValue = ALWAYS,
)
private fun setKeyStoreEntryAlias(alias: String = "ReVanced Key") {
logger.warning("The --alias option is deprecated. Use --keystore-entry-alias instead.")
keyStoreEntryAlias = alias
}

@CommandLine.Option(
names = ["--keystore-entry-alias"],
description = ["The alias of the keystore entry to sign the patched APK file with."],
Expand Down Expand Up @@ -188,18 +176,6 @@ internal object PatchCommand : Runnable {
this.apk = apk
}

@CommandLine.Option(
names = ["-m", "--merge"],
description = ["One or more DEX files or containers to merge into the APK."],
)
@Suppress("unused")
private fun setIntegrations(integrations: Set<File>) {
integrations.firstOrNull { !it.exists() }?.let {
throw CommandLine.ParameterException(spec.commandLine(), "Integrations file ${it.path} does not exist.")
}
this.integrations += integrations
}

@CommandLine.Option(
names = ["-b", "--patch-bundle"],
description = ["One or more bundles of patches."],
Expand Down Expand Up @@ -293,7 +269,7 @@ internal object PatchCommand : Runnable {
}
}

patcher += filteredPatches to integrations
patcher += filteredPatches

// Execute patches.
runBlocking {
Expand Down

0 comments on commit c047425

Please sign in to comment.