From 40f8f68302aff2e674217b358703fa4db84dc60f Mon Sep 17 00:00:00 2001 From: inotia00 Date: Fri, 28 Apr 2023 11:22:39 +0900 Subject: [PATCH] feat(client-spoof-music): removed from patch list and dependent on `music-microg-support` patch --- .../music/misc/clientspoof/patch/ClientSpoofMusicPatch.kt | 2 -- .../misc/microg/bytecode/patch/MusicMicroGBytecodePatch.kt | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/music/misc/clientspoof/patch/ClientSpoofMusicPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/clientspoof/patch/ClientSpoofMusicPatch.kt index a11b0c2e6..14b52f9a5 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/clientspoof/patch/ClientSpoofMusicPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/clientspoof/patch/ClientSpoofMusicPatch.kt @@ -10,13 +10,11 @@ import app.revanced.patcher.extensions.instruction import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess -import app.revanced.patcher.patch.annotations.Patch import app.revanced.patches.music.misc.clientspoof.fingerprints.UserAgentHeaderBuilderFingerprint import app.revanced.patches.music.misc.microg.shared.Constants.MUSIC_PACKAGE_NAME import app.revanced.patches.shared.annotation.YouTubeMusicCompatibility import org.jf.dexlib2.iface.instruction.FiveRegisterInstruction -@Patch @Name("client-spoof-music") @Description("Spoofs the YouTube Music client.") @YouTubeMusicCompatibility diff --git a/src/main/kotlin/app/revanced/patches/music/misc/microg/bytecode/patch/MusicMicroGBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/microg/bytecode/patch/MusicMicroGBytecodePatch.kt index 397f2ef8f..e9986cf98 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/microg/bytecode/patch/MusicMicroGBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/microg/bytecode/patch/MusicMicroGBytecodePatch.kt @@ -9,6 +9,7 @@ import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.patch.annotations.Patch +import app.revanced.patches.music.misc.clientspoof.patch.ClientSpoofMusicPatch import app.revanced.patches.music.misc.microg.bytecode.fingerprints.* import app.revanced.patches.music.misc.microg.resource.patch.MusicMicroGResourcePatch import app.revanced.patches.music.misc.microg.shared.Constants.MUSIC_PACKAGE_NAME @@ -20,6 +21,7 @@ import app.revanced.util.microg.MicroGBytecodeHelper @Patch @DependsOn( [ + ClientSpoofMusicPatch::class, MusicMicroGResourcePatch::class, PatchOptions::class ]