-
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve structuring of classes and their implementations
BREAKING CHANGE: various changes in which packages classes previously where and their implementation
- Loading branch information
Showing
20 changed files
with
434 additions
and
403 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package app.revanced.patcher | ||
|
||
import app.revanced.patcher.data.BytecodeContext | ||
import app.revanced.patcher.data.Context | ||
import app.revanced.patcher.data.PackageMetadata | ||
import app.revanced.patcher.data.ResourceContext | ||
import app.revanced.patcher.patch.Patch | ||
import org.jf.dexlib2.iface.ClassDef | ||
import java.io.File | ||
|
||
data class PatcherContext( | ||
val classes: MutableList<ClassDef>, | ||
val resourceCacheDirectory: File, | ||
) { | ||
val packageMetadata = PackageMetadata() | ||
internal val patches = mutableListOf<Class<out Patch<Context>>>() | ||
internal val bytecodeContext = BytecodeContext(classes) | ||
internal val resourceContext = ResourceContext(resourceCacheDirectory) | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.