From 42ecfa9b8bba67c4b9bb0ac6133c194981959554 Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Mon, 23 Sep 2024 22:32:29 +0900 Subject: [PATCH] feat(YouTube Music): changes to supported versions - changed `6.29.58` to `6.29.59`, changed `7.16.52` to `7.16.53`, removed `6.33.52` (as it is almost the same as `6.29.59`) --- .../patches/music/misc/splash/CairoSplashAnimationPatch.kt | 2 +- .../patches/music/player/components/PlayerComponentsPatch.kt | 2 +- .../revanced/patches/music/utils/compatibility/Constants.kt | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/music/misc/splash/CairoSplashAnimationPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/splash/CairoSplashAnimationPatch.kt index e5c9b45ee2..7e3fabb1cc 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/splash/CairoSplashAnimationPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/splash/CairoSplashAnimationPatch.kt @@ -19,7 +19,7 @@ import app.revanced.util.injectLiteralInstructionBooleanCall "com.google.android.apps.youtube.music", [ "7.06.54", - "7.16.52", + "7.16.53", ] ) ] diff --git a/src/main/kotlin/app/revanced/patches/music/player/components/PlayerComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/music/player/components/PlayerComponentsPatch.kt index 0a71b4f2b4..fa76accb55 100644 --- a/src/main/kotlin/app/revanced/patches/music/player/components/PlayerComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/player/components/PlayerComponentsPatch.kt @@ -777,7 +777,7 @@ object PlayerComponentsPatch : BaseBytecodePatch( """ rememberShuffleStateShuffleStateLabel += if (getInstruction(checkCastIndex + 1).opcode == Opcode.INVOKE_VIRTUAL) { - // YouTube Music 7.16.52+ + // YouTube Music 7.16.53+ """ invoke-virtual {v1}, $getOrdinalClassReference move-result-object v1 diff --git a/src/main/kotlin/app/revanced/patches/music/utils/compatibility/Constants.kt b/src/main/kotlin/app/revanced/patches/music/utils/compatibility/Constants.kt index 3cccd72aa2..8836730d59 100644 --- a/src/main/kotlin/app/revanced/patches/music/utils/compatibility/Constants.kt +++ b/src/main/kotlin/app/revanced/patches/music/utils/compatibility/Constants.kt @@ -8,11 +8,10 @@ object Constants { "com.google.android.apps.youtube.music", setOf( "6.20.51", // This is the latest version that supports Android 5.0 - "6.29.58", // This is the latest version that supports the 'Restore old player layout' setting. - "6.33.52", // This is the latest version with the legacy code of YouTube Music. + "6.29.59", // This is the latest version that supports the 'Restore old player layout' setting. "6.42.55", // This is the latest version that supports Android 7.0 "6.51.53", // This is the latest version of YouTube Music 6.xx.xx - "7.16.52", // This is the latest version supported by the RVX patch. + "7.16.53", // This is the latest version supported by the RVX patch. ) ) )