mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-13 05:37:40 +02:00
fix: patch-options
targets all apps
This commit is contained in:
@ -0,0 +1,15 @@
|
|||||||
|
package app.revanced.shared.annotation
|
||||||
|
|
||||||
|
import app.revanced.patcher.annotation.Compatibility
|
||||||
|
import app.revanced.patcher.annotation.Package
|
||||||
|
|
||||||
|
@Compatibility(
|
||||||
|
[
|
||||||
|
Package("com.google.android.youtube"),
|
||||||
|
Package("com.google.android.apps.youtube.music")
|
||||||
|
]
|
||||||
|
)
|
||||||
|
@Target(AnnotationTarget.CLASS)
|
||||||
|
@Retention(AnnotationRetention.RUNTIME)
|
||||||
|
internal annotation class RVXCompatibility
|
||||||
|
|
@ -6,10 +6,12 @@ import app.revanced.patcher.annotation.Version
|
|||||||
import app.revanced.patcher.data.ResourceContext
|
import app.revanced.patcher.data.ResourceContext
|
||||||
import app.revanced.patcher.patch.annotations.Patch
|
import app.revanced.patcher.patch.annotations.Patch
|
||||||
import app.revanced.patcher.patch.*
|
import app.revanced.patcher.patch.*
|
||||||
|
import app.revanced.shared.annotation.RVXCompatibility
|
||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@Name("patch-options")
|
@Name("patch-options")
|
||||||
@Description("Create an options.toml file.")
|
@Description("Create an options.toml file.")
|
||||||
|
@RVXCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class PatchOptions : ResourcePatch {
|
class PatchOptions : ResourcePatch {
|
||||||
override fun execute(context: ResourceContext): PatchResult {
|
override fun execute(context: ResourceContext): PatchResult {
|
||||||
|
Reference in New Issue
Block a user