From d86b6a4a659172c3f1db8eb883f28dfee4e83e4c Mon Sep 17 00:00:00 2001 From: Linus <23507341+Linus789@users.noreply.github.com> Date: Tue, 11 Apr 2023 19:09:59 +0000 Subject: [PATCH] fix: add missing annotation to patches (#1882) Co-authored-by: Linus789 --- .../patches/all/connectivity/wifi/spoof/patch/SpoofWifiPatch.kt | 2 ++ .../removerestriction/patch/RemoveScreenshotRestrictionPatch.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/main/kotlin/app/revanced/patches/all/connectivity/wifi/spoof/patch/SpoofWifiPatch.kt b/src/main/kotlin/app/revanced/patches/all/connectivity/wifi/spoof/patch/SpoofWifiPatch.kt index 0c6bdeae8..ecdfc0e37 100644 --- a/src/main/kotlin/app/revanced/patches/all/connectivity/wifi/spoof/patch/SpoofWifiPatch.kt +++ b/src/main/kotlin/app/revanced/patches/all/connectivity/wifi/spoof/patch/SpoofWifiPatch.kt @@ -4,6 +4,7 @@ import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name import app.revanced.patcher.annotation.Version import app.revanced.patcher.patch.annotations.Patch +import app.revanced.patcher.patch.annotations.RequiresIntegrations import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod import app.revanced.util.patch.* import org.jf.dexlib2.iface.ClassDef @@ -15,6 +16,7 @@ import java.util.* @Name("spoof-wifi-connection") @Description("Spoofs an existing Wi-Fi connection.") @Version("0.0.1") +@RequiresIntegrations internal class SpoofWifiPatch : AbstractTransformInstructionsPatch() { private companion object { diff --git a/src/main/kotlin/app/revanced/patches/all/screenshot/removerestriction/patch/RemoveScreenshotRestrictionPatch.kt b/src/main/kotlin/app/revanced/patches/all/screenshot/removerestriction/patch/RemoveScreenshotRestrictionPatch.kt index b9f26c99b..8f4c71a31 100644 --- a/src/main/kotlin/app/revanced/patches/all/screenshot/removerestriction/patch/RemoveScreenshotRestrictionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/all/screenshot/removerestriction/patch/RemoveScreenshotRestrictionPatch.kt @@ -4,6 +4,7 @@ import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name import app.revanced.patcher.annotation.Version import app.revanced.patcher.patch.annotations.Patch +import app.revanced.patcher.patch.annotations.RequiresIntegrations import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod import app.revanced.util.patch.* import org.jf.dexlib2.iface.ClassDef @@ -15,6 +16,7 @@ import java.util.* @Name("remove-screenshot-restriction") @Description("Removes the restriction of taking screenshots in apps that normally wouldn't allow it.") @Version("0.0.1") +@RequiresIntegrations internal class RemoveScreenshotRestrictionPatch : AbstractTransformInstructionsPatch() { private companion object {