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:
Lucaskyy 2022-06-14 18:23:40 +02:00
parent d3a580ea19
commit 6a5c8735fb
No known key found for this signature in database
GPG key ID: 1530BFF96D1EEB89

View file

@ -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()