diff --git a/src/main/kotlin/app/revanced/patcher/patch/OptionsContainer.kt b/src/main/kotlin/app/revanced/patcher/patch/OptionsContainer.kt new file mode 100644 index 0000000..f14ca48 --- /dev/null +++ b/src/main/kotlin/app/revanced/patcher/patch/OptionsContainer.kt @@ -0,0 +1,18 @@ +package app.revanced.patcher.patch + +/** + * A container for patch options. + */ +abstract class OptionsContainer { + /** + * A list of [PatchOption]s. + * @see PatchOptions + */ + @Suppress("MemberVisibilityCanBePrivate") + val options = PatchOptions() + + protected fun option(opt: PatchOption): PatchOption { + options.register(opt) + return opt + } +} \ No newline at end of file diff --git a/src/main/kotlin/app/revanced/patcher/patch/Patch.kt b/src/main/kotlin/app/revanced/patcher/patch/Patch.kt index b6d7456..7e1b5e8 100644 --- a/src/main/kotlin/app/revanced/patcher/patch/Patch.kt +++ b/src/main/kotlin/app/revanced/patcher/patch/Patch.kt @@ -20,20 +20,6 @@ sealed interface Patch { fun execute(data: @UnsafeVariance T): PatchResult } -abstract class OptionsContainer { - /** - * A list of [PatchOption]s. - * @see PatchOptions - */ - @Suppress("MemberVisibilityCanBePrivate") - val options = PatchOptions() - - protected fun option(opt: PatchOption): PatchOption { - options.register(opt) - return opt - } -} - /** * Resource patch for the Patcher. */