fix(SmaliPatching): use forked diff lib

This solves a bug where the diff is incorrectly parsed until my bugfix PR is merged into the upstream lib.
This commit is contained in:
rushiiMachine 2024-12-22 23:50:53 -08:00
parent 3b8e034597
commit 9864dd9db8
No known key found for this signature in database
GPG key ID: DCBE5952BB3B6420
3 changed files with 8 additions and 3 deletions

View file

@ -80,7 +80,7 @@ class SmaliPatchStep : Step(), IDexProvider, KoinComponent {
/* dexFile = */ dexFile,
/* outputDir = */ smaliDir,
/* jobs = */ coreCount - 1,
/* options = */ BaksmaliOptions(),
/* options = */ BaksmaliOptions().apply { localsDirective = true },
/* classes = */ patches.map { "L${it.fullClassName};" },
)
} catch (t: Throwable) {

View file

@ -14,7 +14,7 @@ compose = "1.5.4"
compose-compiler = "1.5.8"
compose-tracing = "1.0.0-beta01"
compose-material3 = "1.2.0-rc01"
diff = "4.12"
#diff = "4.12"
koin = "3.5.3"
kotlin = "1.9.22"
kotlinx-immutable = "0.3.7"
@ -75,7 +75,8 @@ axml = { module = "com.aliucord:axml", version.ref = "axml" }
binaryResources = { module = "com.aliucord:binary-resources", version.ref = "binary-resources" }
bouncycastle = { module = "org.bouncycastle:bcpkix-jdk15on", version.ref = "bouncycastle" }
coil = { module = "io.coil-kt:coil-compose", version.ref = "coil" }
diff = { module = "io.github.java-diff-utils:java-diff-utils", version.ref = "diff" }
#diff = { module = "io.github.java-diff-utils:java-diff-utils", version.ref = "diff" }
diff = "com.github.Aliucord:java-diff-utils:a0002d1d40" # TODO: remove when https://github.com/java-diff-utils/java-diff-utils/pull/198 is merged
microg = { module = "org.microg.gms:play-services-safetynet", version.ref = "microg" }
smali = { module = "com.android.tools.smali:smali", version.ref = "smali" }
baksmali = { module = "com.android.tools.smali:smali-baksmali", version.ref = "smali" }

View file

@ -17,6 +17,10 @@ dependencyResolutionManagement {
name = "aliucord"
url = uri("https://maven.aliucord.com/snapshots")
}
maven { // TODO: remove, refer to libs.versions.toml
name = "jitpack"
url = uri("https://jitpack.io")
}
}
}