package app.revanced.patcher import java.io.File import java.io.InputStream /** * The result of a patcher. * * @param dexFiles The patched dex files. * @param resources The patched resources. */ @Suppress("MemberVisibilityCanBePrivate") class PatcherResult internal constructor( val dexFiles: Set, val resources: PatchedResources?, ) { /** * A dex file. * * @param name The original name of the dex file. * @param stream The dex file as [InputStream]. */ class PatchedDexFile internal constructor(val name: String, val stream: InputStream) /** * The resources of a patched apk. * * @param resourcesApk The compiled resources.apk file. * @param otherResources The directory containing other resources files. * @param doNotCompress List of files that should not be compressed. * @param deleteResources List of predicates about resources that should be deleted. */ class PatchedResources internal constructor( val resourcesApk: File?, val otherResources: File?, val doNotCompress: Set, val deleteResources: Set<(String) -> Boolean>, ) }