mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-12-04 17:32:53 +01:00
refactor: Move code out of use
block
This commit is contained in:
parent
9c0ad4604a
commit
de63cfa426
@ -273,8 +273,7 @@ internal object PatchCommand : Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// endregion
|
// endregion
|
||||||
|
val (packageName, patcherResult) = Patcher(
|
||||||
Patcher(
|
|
||||||
PatcherConfig(
|
PatcherConfig(
|
||||||
apk,
|
apk,
|
||||||
temporaryFilesPath,
|
temporaryFilesPath,
|
||||||
@ -296,8 +295,7 @@ internal object PatchCommand : Runnable {
|
|||||||
|
|
||||||
// region Patch
|
// region Patch
|
||||||
|
|
||||||
val patcherResult =
|
patcher.context.packageMetadata.packageName to patcher.apply {
|
||||||
patcher.apply {
|
|
||||||
acceptIntegrations(integrations)
|
acceptIntegrations(integrations)
|
||||||
acceptPatches(filteredPatches)
|
acceptPatches(filteredPatches)
|
||||||
|
|
||||||
@ -313,8 +311,8 @@ internal object PatchCommand : Runnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.get()
|
}.get()
|
||||||
|
|
||||||
// endregion
|
// endregion
|
||||||
|
}
|
||||||
|
|
||||||
// region Save
|
// region Save
|
||||||
|
|
||||||
@ -342,10 +340,9 @@ internal object PatchCommand : Runnable {
|
|||||||
|
|
||||||
deviceSerial?.let { serial ->
|
deviceSerial?.let { serial ->
|
||||||
AdbManager.getAdbManager(deviceSerial = serial.ifEmpty { null }, mount)
|
AdbManager.getAdbManager(deviceSerial = serial.ifEmpty { null }, mount)
|
||||||
}?.install(AdbManager.Apk(outputFilePath, patcher.context.packageMetadata.packageName))
|
}?.install(AdbManager.Apk(outputFilePath, packageName))
|
||||||
|
|
||||||
// endregion
|
// endregion
|
||||||
}
|
|
||||||
|
|
||||||
if (purge) {
|
if (purge) {
|
||||||
logger.info("Purging temporary files")
|
logger.info("Purging temporary files")
|
||||||
|
Loading…
Reference in New Issue
Block a user