From e56cd5dcc6ce0b8152dbfdc220330be4daecf3d3 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 27 Feb 2023 00:48:28 +0100 Subject: [PATCH] build: update dependencies Signed-off-by: oSumAtrIX --- build.gradle.kts | 2 +- .../tiktok/misc/integrations/patch/IntegrationsPatch.kt | 4 +++- .../twitch/misc/integrations/patch/IntegrationsPatch.kt | 6 ++++-- .../patches/twitter/misc/hook/json/patch/JsonHookPatch.kt | 2 ++ .../youtube/misc/integrations/patch/IntegrationsPatch.kt | 4 +++- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 5f44b89a0..3d81b8e74 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 6deed2970..b7b182b6c 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 027106d88..b9d0195fd 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 b7122fbc9..c604c6810 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 a5d219fa3..6fb114baf 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),