mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
feat: allow custom framework path to be specified
This commit is contained in:
parent
4c8eb0e5c7
commit
d3a580ea19
2 changed files with 4 additions and 1 deletions
|
@ -144,6 +144,7 @@ class Patcher(private val options: PatcherOptions) {
|
|||
val androlibResources = AndrolibResources().also { resources ->
|
||||
resources.buildOptions = BuildOptions().also { buildOptions ->
|
||||
buildOptions.aaptPath = options.aaptPath
|
||||
buildOptions.frameworkFolderLocation = options.frameworkFolderLocation
|
||||
buildOptions.isFramework = metaInfo.isFrameworkApk
|
||||
buildOptions.resourcesAreCompressed = metaInfo.compressionType
|
||||
buildOptions.doNotCompress = metaInfo.doNotCompress
|
||||
|
|
|
@ -8,10 +8,12 @@ import java.io.File
|
|||
* @param resourceCacheDirectory Directory to cache resources.
|
||||
* @param patchResources Weather to use the resource patcher. Resources will still need to be decoded.
|
||||
* @param aaptPath Optional path to a custom aapt binary.
|
||||
* @param frameworkFolderLocation Optional path to a custom framework folder.
|
||||
*/
|
||||
data class PatcherOptions(
|
||||
internal val inputFile: File,
|
||||
internal val resourceCacheDirectory: String,
|
||||
internal val patchResources: Boolean = false,
|
||||
internal val aaptPath: String = ""
|
||||
internal val aaptPath: String = "",
|
||||
internal val frameworkFolderLocation: String? = null
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue