mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-02 05:54:26 +02:00
fix: Patcher setting BuildOptions too late
This causes the Manager to crash, due to a stupid bug in Apktool which is prevented by setting a valid frameworkFolderLocation.
This commit is contained in:
parent
d3a580ea19
commit
6a5c8735fb
@ -51,7 +51,10 @@ class Patcher(private val options: PatcherOptions) {
|
||||
if (outDir.exists()) outDir.deleteRecursively()
|
||||
outDir.mkdirs()
|
||||
|
||||
val androlib = Androlib()
|
||||
val androlib = Androlib(BuildOptions().also { buildOptions ->
|
||||
buildOptions.aaptPath = options.aaptPath
|
||||
buildOptions.frameworkFolderLocation = options.frameworkFolderLocation
|
||||
})
|
||||
val resourceTable = androlib.getResTable(extInputFile, true)
|
||||
|
||||
val packageMetadata = PackageMetadata()
|
||||
|
Loading…
x
Reference in New Issue
Block a user