mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-28 21:51:02 +00:00
refactor: convert Patch to abstract class
BREAKING CHANGE: Patch class is now an abstract class. You must implement it. You can use anonymous implements, like done in the tests.
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
package net.revanced.patcher.patch
|
||||
|
||||
class Patch(val patchName: String, val fn: () -> PatchResult) {
|
||||
fun execute(): PatchResult {
|
||||
return fn()
|
||||
}
|
||||
abstract class Patch(val patchName: String) {
|
||||
abstract fun execute(): PatchResult
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user