From d8dbffd7a7ebc583476d368d2ae78853cbb40382 Mon Sep 17 00:00:00 2001 From: Robert <72943079+CnC-Robert@users.noreply.github.com> Date: Thu, 21 Jul 2022 14:11:26 +0200 Subject: [PATCH] feat: `--custom-aapt2-binary` option (#104) --- src/main/kotlin/app/revanced/cli/command/MainCommand.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/kotlin/app/revanced/cli/command/MainCommand.kt b/src/main/kotlin/app/revanced/cli/command/MainCommand.kt index e17b59a..0616a4a 100644 --- a/src/main/kotlin/app/revanced/cli/command/MainCommand.kt +++ b/src/main/kotlin/app/revanced/cli/command/MainCommand.kt @@ -113,6 +113,9 @@ internal object MainCommand : Runnable { description = ["Clean the temporal resource cache directory. This will be done anyways when running the patcher"] ) var clean: Boolean = false + + @Option(names = ["--custom-aapt2-binary"], description = ["Path to custom aapt2 binary"]) + var aaptPath: String = "" } override fun run() { @@ -149,6 +152,7 @@ internal object MainCommand : Runnable { _args.inputFile, args.cacheDirectory, !args.disableResourcePatching, + args.aaptPath, logger = PatcherLogger ) )