From 07d31c08e9b40920644243edbe4a2fa7a574492d Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:39:25 +0900 Subject: [PATCH] bump 5.2.1-dev.4 --- README.md | 4 +-- gradle.properties | 2 +- patches.json | 70 ++++++++++++++++++++++++++++------------- patches/api/patches.api | 14 ++++++--- 4 files changed, 61 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 1d83e5cd5..c9f8a3daa 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,6 @@ See the [documentation](https://github.com/inotia00/revanced-documentation#readm | 💊 Patch | 📜 Description | 🏹 Target Version | |:--------:|:--------------:|:-----------------:| -| `Amoled` | Applies a pure black theme to some components. | 6.20.51 ~ 7.25.53 | | `Bitrate default value` | Sets the audio quality to 'Always High' when you first install the app. | 6.20.51 ~ 7.25.53 | | `Bypass image region restrictions` | Adds an option to use a different host for static images, so that images blocked in some countries can be received. | 6.20.51 ~ 7.25.53 | | `Certificate spoof` | Enables YouTube Music to work with Android Auto by spoofing the YouTube Music certificate. | 6.20.51 ~ 7.25.53 | @@ -89,11 +88,12 @@ See the [documentation](https://github.com/inotia00/revanced-documentation#readm | `Custom branding icon for YouTube Music` | Changes the YouTube Music app icon to the icon specified in patch options. | 6.20.51 ~ 7.25.53 | | `Custom branding name for YouTube Music` | Renames the YouTube Music app to the name specified in patch options. | 6.20.51 ~ 7.25.53 | | `Custom header for YouTube Music` | Applies a custom header in the top left corner within the app. | 6.20.51 ~ 7.25.53 | +| `Dark theme` | Changes the app's dark theme to the values specified in patch options. | 6.20.51 ~ 7.25.53 | | `Disable Cairo splash animation` | Adds an option to disable Cairo splash animation. | 7.06.54 ~ 7.25.53 | | `Disable DRC audio` | Adds an option to disable DRC (Dynamic Range Compression) audio. | 6.20.51 ~ 7.25.53 | | `Disable auto captions` | Adds an option to disable captions from being automatically enabled. | 6.20.51 ~ 7.25.53 | | `Disable dislike redirection` | Adds an option to disable redirection to the next track when clicking the Dislike button. | 6.20.51 ~ 7.25.53 | -| `Disable music video in album` | Adds option to redirect music videos from albums. | 6.20.51 ~ 7.25.53 | +| `Disable music video in album` | Adds option to redirect music videos from albums for non-premium users. | 6.20.51 ~ 7.25.53 | | `Enable OPUS codec` | Adds an options to enable the OPUS audio codec if the player response includes. | 6.20.51 ~ 7.25.53 | | `Enable debug logging` | Adds an option to enable debug logging. | 6.20.51 ~ 7.25.53 | | `Enable landscape mode` | Adds an option to enable landscape mode when rotating the screen on phones. | 6.20.51 ~ 7.25.53 | diff --git a/gradle.properties b/gradle.properties index 26f84248b..8e3ac8785 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.2.1-dev.3 +version = 5.2.1-dev.4 diff --git a/patches.json b/patches.json index d75696759..dccb9d4e1 100644 --- a/patches.json +++ b/patches.json @@ -43,26 +43,6 @@ }, "options": [] }, - { - "name": "Amoled", - "description": "Applies a pure black theme to some components.", - "use": true, - "dependencies": [ - "BytecodePatch", - "Settings for YouTube Music" - ], - "compatiblePackages": { - "com.google.android.apps.youtube.music": [ - "6.20.51", - "6.29.59", - "6.42.55", - "6.51.53", - "7.16.53", - "7.25.53" - ] - }, - "options": [] - }, { "name": "Bitrate default value", "description": "Sets the audio quality to \u0027Always High\u0027 when you first install the app.", @@ -636,6 +616,53 @@ } ] }, + { + "name": "Dark theme", + "description": "Changes the app\u0027s dark theme to the values specified in patch options.", + "use": true, + "dependencies": [ + "BytecodePatch" + ], + "compatiblePackages": { + "com.google.android.apps.youtube.music": [ + "6.20.51", + "6.29.59", + "6.42.55", + "6.51.53", + "7.16.53", + "7.25.53" + ] + }, + "options": [ + { + "key": "darkThemeBackgroundColor", + "title": "Dark theme background color", + "description": "Can be a hex color (#AARRGGBB) or a color resource reference.", + "required": false, + "type": "kotlin.String", + "default": "@android:color/black", + "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": "materialYou", + "title": "MaterialYou", + "description": "Applies the MaterialYou theme for Android 12+ devices.", + "required": true, + "type": "kotlin.Boolean", + "default": false, + "values": null + } + ] + }, { "name": "Description components", "description": "Adds options to hide and disable description components.", @@ -821,12 +848,11 @@ }, { "name": "Disable music video in album", - "description": "Adds option to redirect music videos from albums.", + "description": "Adds option to redirect music videos from albums for non-premium users.", "use": false, "dependencies": [ "Settings for YouTube Music", "BytecodePatch", - "BytecodePatch", "BytecodePatch" ], "compatiblePackages": { diff --git a/patches/api/patches.api b/patches/api/patches.api index 59f48b136..440ced4f9 100644 --- a/patches/api/patches.api +++ b/patches/api/patches.api @@ -22,10 +22,6 @@ public final class app/revanced/patches/music/flyoutmenu/components/FlyoutMenuCo public static final fun getFlyoutMenuComponentsPatch ()Lapp/revanced/patcher/patch/BytecodePatch; } -public final class app/revanced/patches/music/general/amoled/AmoledPatchKt { - public static final fun getAmoledPatch ()Lapp/revanced/patcher/patch/ResourcePatch; -} - public final class app/revanced/patches/music/general/autocaptions/AutoCaptionsPatchKt { public static final fun getAutoCaptionsPatch ()Lapp/revanced/patcher/patch/BytecodePatch; } @@ -82,6 +78,11 @@ public final class app/revanced/patches/music/layout/playeroverlay/PlayerOverlay public static final fun getPlayerOverlayFilterPatch ()Lapp/revanced/patcher/patch/ResourcePatch; } +public final class app/revanced/patches/music/layout/theme/DarkThemePatchKt { + public static final fun getDARK_COLOR ()[Ljava/lang/String; + public static final fun getDarkThemePatch ()Lapp/revanced/patcher/patch/ResourcePatch; +} + public final class app/revanced/patches/music/layout/translations/TranslationsPatchKt { public static final fun getTranslationsPatch ()Lapp/revanced/patcher/patch/ResourcePatch; } @@ -213,6 +214,7 @@ public final class app/revanced/patches/music/utils/resourceid/SharedResourceIdP public static final fun getColorGrey ()J public static final fun getDarkBackground ()J public static final fun getDesignBottomSheetDialog ()J + public static final fun getElementsContainer ()J public static final fun getEndButtonsContainer ()J public static final fun getFloatingLayout ()J public static final fun getHistoryMenuItem ()J @@ -491,6 +493,10 @@ public final class app/revanced/patches/shared/mapping/ResourceType : java/lang/ public static fun values ()[Lapp/revanced/patches/shared/mapping/ResourceType; } +public final class app/revanced/patches/shared/materialyou/BaseMaterialYouPatchKt { + public static final fun baseMaterialYou (Lapp/revanced/patcher/patch/ResourcePatchContext;)V +} + public final class app/revanced/patches/shared/opus/BaseOpusCodecsPatchKt { public static final fun baseOpusCodecsPatch (Ljava/lang/String;)Lapp/revanced/patcher/patch/BytecodePatch; }