fix(YouTube): Patching fails under certain conditions

This commit is contained in:
inotia00
2024-12-15 17:53:57 +09:00
parent 59b0c7168c
commit 21acf6f003
17 changed files with 18 additions and 17 deletions

View File

@ -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 {

View File

@ -77,11 +77,11 @@ val flyoutMenuComponentsPatch = bytecodePatch(
compatibleWith(COMPATIBLE_PACKAGE)
dependsOn(
settingsPatch,
flyoutMenuComponentsResourcePatch,
flyoutMenuHookPatch,
lithoFilterPatch,
sharedResourceIdPatch,
settingsPatch,
versionCheckPatch,
videoInformationPatch,
videoTypeHookPatch,

View File

@ -53,9 +53,9 @@ val layoutComponentsPatch = bytecodePatch(
compatibleWith(COMPATIBLE_PACKAGE)
dependsOn(
settingsPatch,
lithoFilterPatch,
sharedResourceIdPatch,
settingsPatch,
settingsMenuPatch,
versionCheckPatch,
)

View File

@ -35,8 +35,8 @@ val shareSheetPatch = bytecodePatch(
compatibleWith(COMPATIBLE_PACKAGE)
dependsOn(
lithoFilterPatch,
settingsPatch,
lithoFilterPatch,
sharedResourceIdPatch
)

View File

@ -183,9 +183,9 @@ val playerComponentsPatch = bytecodePatch(
compatibleWith(COMPATIBLE_PACKAGE)
dependsOn(
settingsPatch,
playerComponentsResourcePatch,
sharedResourceIdPatch,
settingsPatch,
lithoFilterPatch,
mainActivityResolvePatch,
videoTypeHookPatch,

View File

@ -43,11 +43,11 @@ val adsPatch = bytecodePatch(
compatibleWith(COMPATIBLE_PACKAGE)
dependsOn(
settingsPatch,
baseAdsPatch(ADS_CLASS_DESCRIPTOR, "hideVideoAds"),
doubleBackToClosePatch,
lithoFilterPatch,
sharedResourceIdPatch,
settingsPatch,
swipeRefreshPatch,
)

View File

@ -50,9 +50,9 @@ val layoutComponentsPatch = bytecodePatch(
compatibleWith(COMPATIBLE_PACKAGE)
dependsOn(
settingsPatch,
lithoFilterPatch,
sharedResourceIdPatch,
settingsPatch,
settingsMenuPatch,
viewGroupMarginLayoutParamsHookPatch,
)

View File

@ -36,9 +36,9 @@ val shareSheetPatch = bytecodePatch(
compatibleWith(COMPATIBLE_PACKAGE)
dependsOn(
settingsPatch,
lithoFilterPatch,
sharedResourceIdPatch,
settingsPatch,
)
execute {

View File

@ -20,8 +20,8 @@ val actionButtonsPatch = bytecodePatch(
compatibleWith(COMPATIBLE_PACKAGE)
dependsOn(
lithoFilterPatch,
settingsPatch,
lithoFilterPatch,
)
execute {

View File

@ -36,10 +36,10 @@ val commentsComponentPatch = bytecodePatch(
compatibleWith(COMPATIBLE_PACKAGE)
dependsOn(
settingsPatch,
inclusiveSpanPatch,
lithoFilterPatch,
sharedResourceIdPatch,
settingsPatch,
)
execute {

View File

@ -268,12 +268,12 @@ val playerComponentsPatch = bytecodePatch(
compatibleWith(COMPATIBLE_PACKAGE)
dependsOn(
settingsPatch,
controlsOverlayConfigPatch,
inclusiveSpanPatch,
lithoFilterPatch,
playerTypeHookPatch,
sharedResourceIdPatch,
settingsPatch,
speedOverlayPatch,
suggestedVideoEndScreenPatch,
videoInformationPatch,

View File

@ -42,11 +42,11 @@ val descriptionComponentsPatch = bytecodePatch(
compatibleWith(COMPATIBLE_PACKAGE)
dependsOn(
settingsPatch,
bottomSheetRecyclerViewPatch,
lithoFilterPatch,
playerTypeHookPatch,
sharedResourceIdPatch,
settingsPatch,
versionCheckPatch,
)

View File

@ -43,10 +43,10 @@ val playerFlyoutMenuPatch = bytecodePatch(
compatibleWith(COMPATIBLE_PACKAGE)
dependsOn(
settingsPatch,
lithoFilterPatch,
playerTypeHookPatch,
sharedResourceIdPatch,
settingsPatch,
versionCheckPatch
)

View File

@ -55,10 +55,10 @@ val fullscreenComponentsPatch = bytecodePatch(
compatibleWith(COMPATIBLE_PACKAGE)
dependsOn(
settingsPatch,
lithoFilterPatch,
mainActivityResolvePatch,
sharedResourceIdPatch,
settingsPatch,
versionCheckPatch,
)

View File

@ -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,

View File

@ -231,10 +231,10 @@ val returnYouTubeDislikePatch = bytecodePatch(
compatibleWith(COMPATIBLE_PACKAGE)
dependsOn(
settingsPatch,
returnYouTubeDislikeRollingNumberPatch,
returnYouTubeDislikeShortsPatch,
lithoFilterPatch,
settingsPatch,
videoInformationPatch,
)

View File

@ -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,