diff --git a/build.gradle.kts b/build.gradle.kts index 5f44b89a..3d81b8e7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -20,7 +20,7 @@ repositories { } dependencies { - implementation("app.revanced:revanced-patcher:6.4.3") + implementation("app.revanced:revanced-patcher:7.0.0") implementation("app.revanced:multidexlib2:2.5.3-a3836654") // Required for meta implementation("com.google.code.gson:gson:2.10.1") diff --git a/src/main/kotlin/app/revanced/patches/tiktok/misc/integrations/patch/IntegrationsPatch.kt b/src/main/kotlin/app/revanced/patches/tiktok/misc/integrations/patch/IntegrationsPatch.kt index 6deed297..b7b182b6 100644 --- a/src/main/kotlin/app/revanced/patches/tiktok/misc/integrations/patch/IntegrationsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/tiktok/misc/integrations/patch/IntegrationsPatch.kt @@ -1,12 +1,14 @@ package app.revanced.patches.tiktok.misc.integrations.patch import app.revanced.patcher.annotation.Name +import app.revanced.patcher.patch.annotations.RequiresIntegrations +import app.revanced.patches.shared.integrations.patch.AbstractIntegrationsPatch import app.revanced.patches.tiktok.misc.integrations.annotations.IntegrationsCompatibility import app.revanced.patches.tiktok.misc.integrations.fingerprints.InitFingerprint -import app.revanced.patches.shared.integrations.patch.AbstractIntegrationsPatch @Name("integrations") @IntegrationsCompatibility +@RequiresIntegrations class IntegrationsPatch : AbstractIntegrationsPatch( "Lapp/revanced/tiktok/utils/ReVancedUtils;", listOf(InitFingerprint) diff --git a/src/main/kotlin/app/revanced/patches/twitch/misc/integrations/patch/IntegrationsPatch.kt b/src/main/kotlin/app/revanced/patches/twitch/misc/integrations/patch/IntegrationsPatch.kt index 027106d8..b9d0195f 100644 --- a/src/main/kotlin/app/revanced/patches/twitch/misc/integrations/patch/IntegrationsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/twitch/misc/integrations/patch/IntegrationsPatch.kt @@ -1,12 +1,14 @@ package app.revanced.patches.twitch.misc.integrations.patch import app.revanced.patcher.annotation.Name -import app.revanced.patches.twitch.misc.integrations.fingerprints.InitFingerprint -import app.revanced.patches.twitch.misc.integrations.annotations.IntegrationsCompatibility +import app.revanced.patcher.patch.annotations.RequiresIntegrations import app.revanced.patches.shared.integrations.patch.AbstractIntegrationsPatch +import app.revanced.patches.twitch.misc.integrations.annotations.IntegrationsCompatibility +import app.revanced.patches.twitch.misc.integrations.fingerprints.InitFingerprint @Name("integrations") @IntegrationsCompatibility +@RequiresIntegrations class IntegrationsPatch : AbstractIntegrationsPatch( "Lapp/revanced/twitch/utils/ReVancedUtils;", listOf(InitFingerprint) diff --git a/src/main/kotlin/app/revanced/patches/twitter/misc/hook/json/patch/JsonHookPatch.kt b/src/main/kotlin/app/revanced/patches/twitter/misc/hook/json/patch/JsonHookPatch.kt index b7122fbc..c604c681 100644 --- a/src/main/kotlin/app/revanced/patches/twitter/misc/hook/json/patch/JsonHookPatch.kt +++ b/src/main/kotlin/app/revanced/patches/twitter/misc/hook/json/patch/JsonHookPatch.kt @@ -8,6 +8,7 @@ import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint.Companion.resolve import app.revanced.patcher.fingerprint.method.impl.MethodFingerprintResult import app.revanced.patcher.patch.* +import app.revanced.patcher.patch.annotations.RequiresIntegrations import app.revanced.patches.twitter.misc.hook.json.fingerprints.JsonHookPatchFingerprint import app.revanced.patches.twitter.misc.hook.json.fingerprints.JsonInputStreamFingerprint import app.revanced.patches.twitter.misc.hook.json.fingerprints.LoganSquareFingerprint @@ -16,6 +17,7 @@ import java.io.InvalidClassException @Name("json-hook") @Description("Hooks the stream which reads JSON responses.") @Version("0.0.1") +@RequiresIntegrations class JsonHookPatch : BytecodePatch( listOf(LoganSquareFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/integrations/patch/IntegrationsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/integrations/patch/IntegrationsPatch.kt index a5d219fa..6fb114ba 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/integrations/patch/IntegrationsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/integrations/patch/IntegrationsPatch.kt @@ -1,14 +1,16 @@ package app.revanced.patches.youtube.misc.integrations.patch import app.revanced.patcher.annotation.Name +import app.revanced.patcher.patch.annotations.RequiresIntegrations +import app.revanced.patches.shared.integrations.patch.AbstractIntegrationsPatch import app.revanced.patches.youtube.misc.integrations.annotations.IntegrationsCompatibility import app.revanced.patches.youtube.misc.integrations.fingerprints.InitFingerprint import app.revanced.patches.youtube.misc.integrations.fingerprints.ServiceFingerprint import app.revanced.patches.youtube.misc.integrations.fingerprints.StandalonePlayerFingerprint -import app.revanced.patches.shared.integrations.patch.AbstractIntegrationsPatch @Name("integrations") @IntegrationsCompatibility +@RequiresIntegrations class IntegrationsPatch : AbstractIntegrationsPatch( "Lapp/revanced/integrations/utils/ReVancedUtils;", listOf(InitFingerprint, StandalonePlayerFingerprint, ServiceFingerprint),