diff --git a/patches/src/main/kotlin/app/revanced/patches/music/ads/general/AdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/ads/general/AdsPatch.kt index e53e7db0c..15fc2d864 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/ads/general/AdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/ads/general/AdsPatch.kt @@ -51,11 +51,11 @@ val adsPatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( + settingsPatch, baseAdsPatch("$ADS_PATH/MusicAdsPatch;", "hideMusicAds"), lithoFilterPatch, navigationBarComponentsPatch, // for 'Hide upgrade button' setting sharedResourceIdPatch, - settingsPatch, ) execute { diff --git a/patches/src/main/kotlin/app/revanced/patches/music/flyoutmenu/components/FlyoutMenuComponentsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/flyoutmenu/components/FlyoutMenuComponentsPatch.kt index a9ddcc987..45353616e 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/flyoutmenu/components/FlyoutMenuComponentsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/flyoutmenu/components/FlyoutMenuComponentsPatch.kt @@ -77,11 +77,11 @@ val flyoutMenuComponentsPatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( + settingsPatch, flyoutMenuComponentsResourcePatch, flyoutMenuHookPatch, lithoFilterPatch, sharedResourceIdPatch, - settingsPatch, versionCheckPatch, videoInformationPatch, videoTypeHookPatch, diff --git a/patches/src/main/kotlin/app/revanced/patches/music/general/components/LayoutComponentsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/general/components/LayoutComponentsPatch.kt index 9e0a76ad9..842351672 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/general/components/LayoutComponentsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/general/components/LayoutComponentsPatch.kt @@ -53,9 +53,9 @@ val layoutComponentsPatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( + settingsPatch, lithoFilterPatch, sharedResourceIdPatch, - settingsPatch, settingsMenuPatch, versionCheckPatch, ) diff --git a/patches/src/main/kotlin/app/revanced/patches/music/misc/share/ShareSheetPatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/misc/share/ShareSheetPatch.kt index 53de64e8d..85904ec56 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/misc/share/ShareSheetPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/misc/share/ShareSheetPatch.kt @@ -35,8 +35,8 @@ val shareSheetPatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( - lithoFilterPatch, settingsPatch, + lithoFilterPatch, sharedResourceIdPatch ) diff --git a/patches/src/main/kotlin/app/revanced/patches/music/player/components/PlayerComponentsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/player/components/PlayerComponentsPatch.kt index ee62ac266..a599a955c 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/player/components/PlayerComponentsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/player/components/PlayerComponentsPatch.kt @@ -183,9 +183,9 @@ val playerComponentsPatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( + settingsPatch, playerComponentsResourcePatch, sharedResourceIdPatch, - settingsPatch, lithoFilterPatch, mainActivityResolvePatch, videoTypeHookPatch, diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/ads/general/AdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/ads/general/AdsPatch.kt index abcdbe687..5419d11e8 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/ads/general/AdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/ads/general/AdsPatch.kt @@ -43,11 +43,11 @@ val adsPatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( + settingsPatch, baseAdsPatch(ADS_CLASS_DESCRIPTOR, "hideVideoAds"), doubleBackToClosePatch, lithoFilterPatch, sharedResourceIdPatch, - settingsPatch, swipeRefreshPatch, ) diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/general/components/LayoutComponentsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/general/components/LayoutComponentsPatch.kt index 88a55ff32..a80c7b44b 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/general/components/LayoutComponentsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/general/components/LayoutComponentsPatch.kt @@ -50,9 +50,9 @@ val layoutComponentsPatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( + settingsPatch, lithoFilterPatch, sharedResourceIdPatch, - settingsPatch, settingsMenuPatch, viewGroupMarginLayoutParamsHookPatch, ) diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/misc/share/ShareSheetPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/misc/share/ShareSheetPatch.kt index 58fb7cbc5..201edf064 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/misc/share/ShareSheetPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/misc/share/ShareSheetPatch.kt @@ -36,9 +36,9 @@ val shareSheetPatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( + settingsPatch, lithoFilterPatch, sharedResourceIdPatch, - settingsPatch, ) execute { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/player/action/ActionButtonsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/player/action/ActionButtonsPatch.kt index df6df8817..91f46f888 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/player/action/ActionButtonsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/player/action/ActionButtonsPatch.kt @@ -20,8 +20,8 @@ val actionButtonsPatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( - lithoFilterPatch, settingsPatch, + lithoFilterPatch, ) execute { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/player/comments/CommentsComponentPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/player/comments/CommentsComponentPatch.kt index a90668b88..06497b17b 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/player/comments/CommentsComponentPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/player/comments/CommentsComponentPatch.kt @@ -36,10 +36,10 @@ val commentsComponentPatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( + settingsPatch, inclusiveSpanPatch, lithoFilterPatch, sharedResourceIdPatch, - settingsPatch, ) execute { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/player/components/PlayerComponentsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/player/components/PlayerComponentsPatch.kt index 2f1b27d12..5c80e027c 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/player/components/PlayerComponentsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/player/components/PlayerComponentsPatch.kt @@ -268,12 +268,12 @@ val playerComponentsPatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( + settingsPatch, controlsOverlayConfigPatch, inclusiveSpanPatch, lithoFilterPatch, playerTypeHookPatch, sharedResourceIdPatch, - settingsPatch, speedOverlayPatch, suggestedVideoEndScreenPatch, videoInformationPatch, diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/player/descriptions/DescriptionComponentsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/player/descriptions/DescriptionComponentsPatch.kt index 060a88a85..e236bd4f8 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/player/descriptions/DescriptionComponentsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/player/descriptions/DescriptionComponentsPatch.kt @@ -42,11 +42,11 @@ val descriptionComponentsPatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( + settingsPatch, bottomSheetRecyclerViewPatch, lithoFilterPatch, playerTypeHookPatch, sharedResourceIdPatch, - settingsPatch, versionCheckPatch, ) diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/player/flyoutmenu/hide/PlayerFlyoutMenuPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/player/flyoutmenu/hide/PlayerFlyoutMenuPatch.kt index b0d6a62f7..07c2df304 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/player/flyoutmenu/hide/PlayerFlyoutMenuPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/player/flyoutmenu/hide/PlayerFlyoutMenuPatch.kt @@ -43,10 +43,10 @@ val playerFlyoutMenuPatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( + settingsPatch, lithoFilterPatch, playerTypeHookPatch, sharedResourceIdPatch, - settingsPatch, versionCheckPatch ) diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/player/fullscreen/FullscreenComponentsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/player/fullscreen/FullscreenComponentsPatch.kt index f87d20ea4..a904749c3 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/player/fullscreen/FullscreenComponentsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/player/fullscreen/FullscreenComponentsPatch.kt @@ -55,10 +55,10 @@ val fullscreenComponentsPatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( + settingsPatch, lithoFilterPatch, mainActivityResolvePatch, sharedResourceIdPatch, - settingsPatch, versionCheckPatch, ) diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/shorts/components/ShortsComponentPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/shorts/components/ShortsComponentPatch.kt index 7f91f695e..e5dc79cab 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/shorts/components/ShortsComponentPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/shorts/components/ShortsComponentPatch.kt @@ -537,6 +537,8 @@ val shortsComponentPatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( + settingsPatch, + shortsAnimationPatch, shortsCustomActionsPatch, shortsNavigationBarPatch, @@ -547,7 +549,6 @@ val shortsComponentPatch = bytecodePatch( lithoFilterPatch, playerTypeHookPatch, sharedResourceIdPatch, - settingsPatch, textComponentPatch, versionCheckPatch, videoInformationPatch, diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/ReturnYouTubeDislikePatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/ReturnYouTubeDislikePatch.kt index b73c633de..73c61c3d9 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/ReturnYouTubeDislikePatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/utils/returnyoutubedislike/ReturnYouTubeDislikePatch.kt @@ -231,10 +231,10 @@ val returnYouTubeDislikePatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( + settingsPatch, returnYouTubeDislikeRollingNumberPatch, returnYouTubeDislikeShortsPatch, lithoFilterPatch, - settingsPatch, videoInformationPatch, ) diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/video/playback/VideoPlaybackPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/video/playback/VideoPlaybackPatch.kt index d081d3bde..e451ad762 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/video/playback/VideoPlaybackPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/video/playback/VideoPlaybackPatch.kt @@ -79,6 +79,7 @@ val videoPlaybackPatch = bytecodePatch( compatibleWith(COMPATIBLE_PACKAGE) dependsOn( + settingsPatch, bottomSheetRecyclerViewPatch, customPlaybackSpeedPatch( "$VIDEO_PATH/CustomPlaybackSpeedPatch;", @@ -87,7 +88,6 @@ val videoPlaybackPatch = bytecodePatch( flyoutMenuHookPatch, lithoFilterPatch, playerTypeHookPatch, - settingsPatch, shortsPlaybackPatch, videoIdPatch, videoInformationPatch,