mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 09:08:04 +01: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
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue