mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 05:07:41 +02:00
fix(YouTube): Patching fails under certain conditions
This commit is contained in:
@ -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 {
|
||||
|
@ -77,11 +77,11 @@ val flyoutMenuComponentsPatch = bytecodePatch(
|
||||
compatibleWith(COMPATIBLE_PACKAGE)
|
||||
|
||||
dependsOn(
|
||||
settingsPatch,
|
||||
flyoutMenuComponentsResourcePatch,
|
||||
flyoutMenuHookPatch,
|
||||
lithoFilterPatch,
|
||||
sharedResourceIdPatch,
|
||||
settingsPatch,
|
||||
versionCheckPatch,
|
||||
videoInformationPatch,
|
||||
videoTypeHookPatch,
|
||||
|
@ -53,9 +53,9 @@ val layoutComponentsPatch = bytecodePatch(
|
||||
compatibleWith(COMPATIBLE_PACKAGE)
|
||||
|
||||
dependsOn(
|
||||
settingsPatch,
|
||||
lithoFilterPatch,
|
||||
sharedResourceIdPatch,
|
||||
settingsPatch,
|
||||
settingsMenuPatch,
|
||||
versionCheckPatch,
|
||||
)
|
||||
|
@ -35,8 +35,8 @@ val shareSheetPatch = bytecodePatch(
|
||||
compatibleWith(COMPATIBLE_PACKAGE)
|
||||
|
||||
dependsOn(
|
||||
lithoFilterPatch,
|
||||
settingsPatch,
|
||||
lithoFilterPatch,
|
||||
sharedResourceIdPatch
|
||||
)
|
||||
|
||||
|
@ -183,9 +183,9 @@ val playerComponentsPatch = bytecodePatch(
|
||||
compatibleWith(COMPATIBLE_PACKAGE)
|
||||
|
||||
dependsOn(
|
||||
settingsPatch,
|
||||
playerComponentsResourcePatch,
|
||||
sharedResourceIdPatch,
|
||||
settingsPatch,
|
||||
lithoFilterPatch,
|
||||
mainActivityResolvePatch,
|
||||
videoTypeHookPatch,
|
||||
|
@ -43,11 +43,11 @@ val adsPatch = bytecodePatch(
|
||||
compatibleWith(COMPATIBLE_PACKAGE)
|
||||
|
||||
dependsOn(
|
||||
settingsPatch,
|
||||
baseAdsPatch(ADS_CLASS_DESCRIPTOR, "hideVideoAds"),
|
||||
doubleBackToClosePatch,
|
||||
lithoFilterPatch,
|
||||
sharedResourceIdPatch,
|
||||
settingsPatch,
|
||||
swipeRefreshPatch,
|
||||
)
|
||||
|
||||
|
@ -50,9 +50,9 @@ val layoutComponentsPatch = bytecodePatch(
|
||||
compatibleWith(COMPATIBLE_PACKAGE)
|
||||
|
||||
dependsOn(
|
||||
settingsPatch,
|
||||
lithoFilterPatch,
|
||||
sharedResourceIdPatch,
|
||||
settingsPatch,
|
||||
settingsMenuPatch,
|
||||
viewGroupMarginLayoutParamsHookPatch,
|
||||
)
|
||||
|
@ -36,9 +36,9 @@ val shareSheetPatch = bytecodePatch(
|
||||
compatibleWith(COMPATIBLE_PACKAGE)
|
||||
|
||||
dependsOn(
|
||||
settingsPatch,
|
||||
lithoFilterPatch,
|
||||
sharedResourceIdPatch,
|
||||
settingsPatch,
|
||||
)
|
||||
|
||||
execute {
|
||||
|
@ -20,8 +20,8 @@ val actionButtonsPatch = bytecodePatch(
|
||||
compatibleWith(COMPATIBLE_PACKAGE)
|
||||
|
||||
dependsOn(
|
||||
lithoFilterPatch,
|
||||
settingsPatch,
|
||||
lithoFilterPatch,
|
||||
)
|
||||
|
||||
execute {
|
||||
|
@ -36,10 +36,10 @@ val commentsComponentPatch = bytecodePatch(
|
||||
compatibleWith(COMPATIBLE_PACKAGE)
|
||||
|
||||
dependsOn(
|
||||
settingsPatch,
|
||||
inclusiveSpanPatch,
|
||||
lithoFilterPatch,
|
||||
sharedResourceIdPatch,
|
||||
settingsPatch,
|
||||
)
|
||||
|
||||
execute {
|
||||
|
@ -268,12 +268,12 @@ val playerComponentsPatch = bytecodePatch(
|
||||
compatibleWith(COMPATIBLE_PACKAGE)
|
||||
|
||||
dependsOn(
|
||||
settingsPatch,
|
||||
controlsOverlayConfigPatch,
|
||||
inclusiveSpanPatch,
|
||||
lithoFilterPatch,
|
||||
playerTypeHookPatch,
|
||||
sharedResourceIdPatch,
|
||||
settingsPatch,
|
||||
speedOverlayPatch,
|
||||
suggestedVideoEndScreenPatch,
|
||||
videoInformationPatch,
|
||||
|
@ -42,11 +42,11 @@ val descriptionComponentsPatch = bytecodePatch(
|
||||
compatibleWith(COMPATIBLE_PACKAGE)
|
||||
|
||||
dependsOn(
|
||||
settingsPatch,
|
||||
bottomSheetRecyclerViewPatch,
|
||||
lithoFilterPatch,
|
||||
playerTypeHookPatch,
|
||||
sharedResourceIdPatch,
|
||||
settingsPatch,
|
||||
versionCheckPatch,
|
||||
)
|
||||
|
||||
|
@ -43,10 +43,10 @@ val playerFlyoutMenuPatch = bytecodePatch(
|
||||
compatibleWith(COMPATIBLE_PACKAGE)
|
||||
|
||||
dependsOn(
|
||||
settingsPatch,
|
||||
lithoFilterPatch,
|
||||
playerTypeHookPatch,
|
||||
sharedResourceIdPatch,
|
||||
settingsPatch,
|
||||
versionCheckPatch
|
||||
)
|
||||
|
||||
|
@ -55,10 +55,10 @@ val fullscreenComponentsPatch = bytecodePatch(
|
||||
compatibleWith(COMPATIBLE_PACKAGE)
|
||||
|
||||
dependsOn(
|
||||
settingsPatch,
|
||||
lithoFilterPatch,
|
||||
mainActivityResolvePatch,
|
||||
sharedResourceIdPatch,
|
||||
settingsPatch,
|
||||
versionCheckPatch,
|
||||
)
|
||||
|
||||
|
@ -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,
|
||||
|
@ -231,10 +231,10 @@ val returnYouTubeDislikePatch = bytecodePatch(
|
||||
compatibleWith(COMPATIBLE_PACKAGE)
|
||||
|
||||
dependsOn(
|
||||
settingsPatch,
|
||||
returnYouTubeDislikeRollingNumberPatch,
|
||||
returnYouTubeDislikeShortsPatch,
|
||||
lithoFilterPatch,
|
||||
settingsPatch,
|
||||
videoInformationPatch,
|
||||
)
|
||||
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user