mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-11-04 02:48:53 +01:00
use new patcher api
This commit is contained in:
parent
51773f30bc
commit
948757d597
@ -296,11 +296,11 @@ internal object PatchCommand : Runnable {
|
|||||||
// region Patch
|
// region Patch
|
||||||
|
|
||||||
patcher.context.packageMetadata.packageName to patcher.apply {
|
patcher.context.packageMetadata.packageName to patcher.apply {
|
||||||
accept(filteredPatches, integrations)
|
this += filteredPatches to integrations
|
||||||
|
|
||||||
// Execute patches.
|
// Execute patches.
|
||||||
runBlocking {
|
runBlocking {
|
||||||
apply(false).collect { patchResult ->
|
execute().collect { patchResult ->
|
||||||
patchResult.exception?.let {
|
patchResult.exception?.let {
|
||||||
StringWriter().use { writer ->
|
StringWriter().use { writer ->
|
||||||
it.printStackTrace(PrintWriter(writer))
|
it.printStackTrace(PrintWriter(writer))
|
||||||
|
Loading…
Reference in New Issue
Block a user