Skip to content

Commit

Permalink
fix: migrate to changes of patcher
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jun 22, 2022
1 parent f694542 commit b30c737
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))

implementation("app.revanced:revanced-patcher:1.4.0")
implementation("app.revanced:revanced-patcher:1.5.0")
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
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/app/revanced/cli/patcher/Patcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ internal object Patcher {
ZipFileSystemUtils(inputFile, output).use { fileSystem ->
// replace all dex files
result.dexFiles.forEach {
fileSystem.write(it.name, it.memoryDataStore.data)
fileSystem.write(it.name, it.dexFileInputStream.readAllBytes())
}

// inputFile being null implies resource patching being disabled
Expand Down
7 changes: 3 additions & 4 deletions src/main/kotlin/app/revanced/utils/signature/Signature.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package app.revanced.utils.signature

import app.revanced.patcher.Patcher
import org.jf.dexlib2.iface.Method

object Signature {

Expand Down Expand Up @@ -49,7 +48,7 @@ object Signature {
*/
}

private fun Method.toStr(): String {
return "${this.name}(${this.parameterTypes.joinToString("")})${this.returnType}"
}
//private fun Method.toStr(): String {
// return "${this.name}(${this.parameterTypes.joinToString("")})${this.returnType}"
//}
}

0 comments on commit b30c737

Please sign in to comment.