mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-12-04 17:32:53 +01:00
fix: migrate to changes of patcher
This commit is contained in:
parent
f694542d64
commit
b30c7375a7
@ -32,7 +32,7 @@ dependencies {
|
|||||||
implementation(kotlin("stdlib"))
|
implementation(kotlin("stdlib"))
|
||||||
implementation(kotlin("reflect"))
|
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("info.picocli:picocli:4.6.3")
|
||||||
implementation("com.android.tools.build:apksig:7.2.1")
|
implementation("com.android.tools.build:apksig:7.2.1")
|
||||||
implementation("com.github.revanced:jadb:master-SNAPSHOT") // updated fork
|
implementation("com.github.revanced:jadb:master-SNAPSHOT") // updated fork
|
||||||
|
@ -30,7 +30,7 @@ internal object Patcher {
|
|||||||
ZipFileSystemUtils(inputFile, output).use { fileSystem ->
|
ZipFileSystemUtils(inputFile, output).use { fileSystem ->
|
||||||
// replace all dex files
|
// replace all dex files
|
||||||
result.dexFiles.forEach {
|
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
|
// inputFile being null implies resource patching being disabled
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package app.revanced.utils.signature
|
package app.revanced.utils.signature
|
||||||
|
|
||||||
import app.revanced.patcher.Patcher
|
import app.revanced.patcher.Patcher
|
||||||
import org.jf.dexlib2.iface.Method
|
|
||||||
|
|
||||||
object Signature {
|
object Signature {
|
||||||
|
|
||||||
@ -49,7 +48,7 @@ object Signature {
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun Method.toStr(): String {
|
//private fun Method.toStr(): String {
|
||||||
return "${this.name}(${this.parameterTypes.joinToString("")})${this.returnType}"
|
// return "${this.name}(${this.parameterTypes.joinToString("")})${this.returnType}"
|
||||||
}
|
//}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user