diff --git a/README.md b/README.md index 322277fea..00d0e4ad8 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ See the [documentation](https://github.com/inotia00/revanced-documentation#readm | `Seekbar components` | Adds options to hide or change components related to the seekbar. | 18.29.38 ~ 19.44.39 | | `Settings for YouTube` | Applies mandatory patches to implement ReVanced Extended settings into the application. | 18.29.38 ~ 19.44.39 | | `Shorts components` | Adds options to hide or change components related to YouTube Shorts. | 18.29.38 ~ 19.44.39 | +| `Snack bar components` | Adds options to hide or change components related to the snack bar. | 18.29.38 ~ 19.44.39 | | `SponsorBlock` | Adds options to enable and configure SponsorBlock, which can skip undesired video segments, such as sponsored content. | 18.29.38 ~ 19.44.39 | | `Spoof app version` | Adds options to spoof the YouTube client version. This can be used to restore old UI elements and features. | 18.29.38 ~ 19.44.39 | | `Spoof streaming data` | Adds options to spoof the streaming data to allow playback. | 18.29.38 ~ 19.44.39 | diff --git a/gradle.properties b/gradle.properties index 5cef468d4..6d1545d20 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,5 +4,5 @@ org.gradle.parallel = true android.useAndroidX = true kotlin.code.style = official kotlin.jvm.target.validation.mode = IGNORE -version = 5.3.1-dev.4 +version = 5.3.1-dev.5 diff --git a/patches.json b/patches.json index 5e1851570..5858a0421 100644 --- a/patches.json +++ b/patches.json @@ -168,9 +168,10 @@ "description": "Adds an option to open the channel instead of the live stream when clicking on the live ring.", "use": true, "dependencies": [ - "BytecodePatch", + "Settings for YouTube", "ResourcePatch", - "Settings for YouTube" + "BytecodePatch", + "BytecodePatch" ], "compatiblePackages": { "com.google.android.youtube": [ @@ -1533,6 +1534,7 @@ "ResourcePatch", "Settings for YouTube", "BytecodePatch", + "BytecodePatch", "ResourcePatch" ], "compatiblePackages": { @@ -2011,7 +2013,7 @@ "default": "2.5dip", "values": { "Default": "2.5dip", - "None": "0.0dip", + "Minimum": "0.1dip", "Wider": "5.0dip" } }, @@ -2535,6 +2537,86 @@ }, "options": [] }, + { + "name": "Snack bar components", + "description": "Adds options to hide or change components related to the snack bar.", + "use": true, + "dependencies": [ + "Settings for YouTube", + "BytecodePatch" + ], + "compatiblePackages": { + "com.google.android.youtube": [ + "18.29.38", + "18.33.40", + "18.38.44", + "18.48.39", + "19.05.36", + "19.16.39", + "19.44.39" + ] + }, + "options": [ + { + "key": "cornerRadius", + "title": "Corner radius", + "description": "Specify a corner radius for the snack bar.", + "required": true, + "type": "kotlin.String", + "default": "8.0dip", + "values": null + }, + { + "key": "darkThemeBackgroundColor", + "title": "Dark theme background color", + "description": "Specify a background color for the snack bar. You can specify hex color (#AARRGGBB) or color resource reference.", + "required": true, + "type": "kotlin.String", + "default": "#FF181825", + "values": { + "Amoled Black": "@android:color/black", + "Catppuccin (Mocha)": "#FF181825", + "Dark Pink": "#FF290025", + "Dark Blue": "#FF001029", + "Dark Green": "#FF002905", + "Dark Yellow": "#FF282900", + "Dark Orange": "#FF291800", + "Dark Red": "#FF290000" + } + }, + { + "key": "lightThemeBackgroundColor", + "title": "Light theme background color", + "description": "Specify a background color for the snack bar. You can specify hex color (#AARRGGBB) or color resource reference.", + "required": true, + "type": "kotlin.String", + "default": "#FFE6E9EF", + "values": { + "White": "@android:color/white", + "Catppuccin (Latte)": "#FFE6E9EF", + "Light Pink": "#FFFCCFF3", + "Light Blue": "#FFD1E0FF", + "Light Green": "#FFCCFFCC", + "Light Yellow": "#FFFDFFCC", + "Light Orange": "#FFFFE6CC", + "Light Red": "#FFFFD6D6" + } + }, + { + "key": "strokeColor", + "title": "Stroke color", + "description": "Specify a stroke color for the snack bar. You can specify hex color.", + "required": true, + "type": "kotlin.String", + "default": "", + "values": { + "None": "", + "Blue": "?attr/ytThemedBlue", + "Chip": "?attr/ytChipBackground" + } + } + ] + }, { "name": "SponsorBlock", "description": "Adds options to enable and configure SponsorBlock, which can skip undesired video segments, such as non-music sections.", @@ -2743,7 +2825,7 @@ "key": "darkThemeBackgroundColor", "title": "Dark theme background color", "description": "Can be a hex color (#AARRGGBB) or a color resource reference.", - "required": false, + "required": true, "type": "kotlin.String", "default": "@android:color/black", "values": { @@ -2762,7 +2844,7 @@ "key": "lightThemeBackgroundColor", "title": "Light theme background color", "description": "Can be a hex color (#AARRGGBB) or a color resource reference.", - "required": false, + "required": true, "type": "kotlin.String", "default": "@android:color/white", "values": { diff --git a/patches/api/patches.api b/patches/api/patches.api index d4147f3d3..cec332225 100644 --- a/patches/api/patches.api +++ b/patches/api/patches.api @@ -347,8 +347,9 @@ public final class app/revanced/patches/reddit/layout/screenshotpopup/Screenshot } public final class app/revanced/patches/reddit/layout/subredditdialog/FingerprintsKt { - public static final fun indexOfDismissScreenInstruction (Lcom/android/tools/smali/dexlib2/iface/Method;)I + public static final fun indexOfHasBeenVisitedInstruction (Lcom/android/tools/smali/dexlib2/iface/Method;)I public static final fun indexOfSetBackgroundTintListInstruction (Lcom/android/tools/smali/dexlib2/iface/Method;)I + public static final fun listOfIsLoggedInInstruction (Lcom/android/tools/smali/dexlib2/iface/Method;)Ljava/util/List; } public final class app/revanced/patches/reddit/layout/subredditdialog/SubRedditDialogPatchKt { @@ -394,6 +395,7 @@ public final class app/revanced/patches/reddit/utils/settings/SettingsPatchKt { public static final fun getSettingsPatch ()Lapp/revanced/patcher/patch/ResourcePatch; public static final fun is_2024_26_or_greater ()Z public static final fun is_2024_41_or_greater ()Z + public static final fun is_2025_01_or_greater ()Z } public final class app/revanced/patches/shared/FingerprintsKt { @@ -643,6 +645,10 @@ public final class app/revanced/patches/youtube/general/navigation/NavigationBar public static final fun getNavigationBarComponentsPatch ()Lapp/revanced/patcher/patch/BytecodePatch; } +public final class app/revanced/patches/youtube/general/snackbar/SnackBarComponentsPatchKt { + public static final fun getSnackBarComponentsPatch ()Lapp/revanced/patcher/patch/ResourcePatch; +} + public final class app/revanced/patches/youtube/general/splashanimation/SplashAnimationPatchKt { public static final fun getSplashAnimationPatch ()Lapp/revanced/patcher/patch/BytecodePatch; } @@ -829,6 +835,10 @@ public final class app/revanced/patches/youtube/utils/controlsoverlay/ControlsOv public static final fun getControlsOverlayConfigPatch ()Lapp/revanced/patcher/patch/BytecodePatch; } +public final class app/revanced/patches/youtube/utils/engagement/EngagementPanelHookPatchKt { + public static final fun getEngagementPanelHookPatch ()Lapp/revanced/patcher/patch/BytecodePatch; +} + public final class app/revanced/patches/youtube/utils/extension/SharedExtensionPatchKt { public static final fun getSharedExtensionPatch ()Lapp/revanced/patcher/patch/BytecodePatch; } @@ -964,6 +974,7 @@ public final class app/revanced/patches/youtube/utils/playservice/VersionCheckPa public static final fun is_19_43_or_greater ()Z public static final fun is_19_44_or_greater ()Z public static final fun is_19_46_or_greater ()Z + public static final fun is_19_49_or_greater ()Z public static final fun is_20_02_or_greater ()Z } @@ -1024,6 +1035,7 @@ public final class app/revanced/patches/youtube/utils/resourceid/SharedResourceI public static final fun getImageOnlyTab ()J public static final fun getInlineTimeBarColorizedBarPlayedColorDark ()J public static final fun getInlineTimeBarPlayedNotHighlightedColor ()J + public static final fun getInsetElementsWrapper ()J public static final fun getInsetOverlayViewLayout ()J public static final fun getInterstitialsContainer ()J public static final fun getMenuItemView ()J @@ -1086,6 +1098,7 @@ public final class app/revanced/patches/youtube/utils/resourceid/SharedResourceI public static final fun getYtOutlineXWhite ()J public static final fun getYtPremiumWordMarkHeader ()J public static final fun getYtWordMarkHeader ()J + public static final fun getYtYoutubeMagenta ()J } public final class app/revanced/patches/youtube/utils/returnyoutubedislike/ReturnYouTubeDislikePatchKt {