mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-27 21:21:03 +00:00
19 lines
551 B
Kotlin
19 lines
551 B
Kotlin
package app.revanced.patcher.patch.base
|
|
|
|
import app.revanced.patcher.data.base.Data
|
|
import app.revanced.patcher.patch.implementation.BytecodePatch
|
|
import app.revanced.patcher.patch.implementation.ResourcePatch
|
|
import app.revanced.patcher.patch.implementation.misc.PatchResult
|
|
|
|
|
|
/**
|
|
* A ReVanced patch.
|
|
* Can either be a [ResourcePatch] or a [BytecodePatch].
|
|
*/
|
|
abstract class Patch<out T : Data> {
|
|
|
|
/**
|
|
* The main function of the [Patch] which the patcher will call.
|
|
*/
|
|
abstract fun execute(data: @UnsafeVariance T): PatchResult
|
|
} |