diff --git a/build.gradle.kts b/build.gradle.kts index 036e563..699dc93 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -26,7 +26,7 @@ dependencies { implementation(kotlin("stdlib")) implementation(kotlin("reflect")) - implementation("app.revanced:revanced-patcher:3.3.1") + implementation("app.revanced:revanced-patcher:3.3.2") implementation("info.picocli:picocli:4.6.3") implementation("com.android.tools.build:apksig:7.2.1") implementation("com.github.revanced:jadb:master-SNAPSHOT") // updated fork diff --git a/src/main/kotlin/app/revanced/cli/command/MainCommand.kt b/src/main/kotlin/app/revanced/cli/command/MainCommand.kt index da18eab..d91a11f 100644 --- a/src/main/kotlin/app/revanced/cli/command/MainCommand.kt +++ b/src/main/kotlin/app/revanced/cli/command/MainCommand.kt @@ -10,7 +10,7 @@ import app.revanced.patcher.PatcherOptions import app.revanced.patcher.extensions.PatchExtensions.compatiblePackages import app.revanced.patcher.extensions.PatchExtensions.description import app.revanced.patcher.extensions.PatchExtensions.patchName -import app.revanced.patcher.util.patch.implementation.JarPatchBundle +import app.revanced.patcher.util.patch.impl.JarPatchBundle import app.revanced.utils.adb.Adb import picocli.CommandLine.* import java.io.File diff --git a/src/main/kotlin/app/revanced/cli/patcher/Patcher.kt b/src/main/kotlin/app/revanced/cli/patcher/Patcher.kt index 514ce6b..3dc2f61 100644 --- a/src/main/kotlin/app/revanced/cli/patcher/Patcher.kt +++ b/src/main/kotlin/app/revanced/cli/patcher/Patcher.kt @@ -30,7 +30,7 @@ internal object Patcher { // replace all dex files result.dexFiles.forEach { logger.info("Writing dex file ${it.name}") - outputFileSystem.write(it.name, it.dexFileInputStream.readAllBytes()) + outputFileSystem.write(it.name, it.stream.readAllBytes()) } if (!args.disableResourcePatching) { diff --git a/src/main/kotlin/app/revanced/utils/patcher/Patcher.kt b/src/main/kotlin/app/revanced/utils/patcher/Patcher.kt index cad7ebc..b6c66fb 100644 --- a/src/main/kotlin/app/revanced/utils/patcher/Patcher.kt +++ b/src/main/kotlin/app/revanced/utils/patcher/Patcher.kt @@ -9,7 +9,7 @@ import app.revanced.patcher.extensions.PatchExtensions.compatiblePackages import app.revanced.patcher.extensions.PatchExtensions.include import app.revanced.patcher.extensions.PatchExtensions.patchName import app.revanced.patcher.patch.Patch -import app.revanced.patcher.util.patch.implementation.JarPatchBundle +import app.revanced.patcher.util.patch.impl.JarPatchBundle fun Patcher.addPatchesFiltered() { val packageName = this.data.packageMetadata.packageName