From 2f7cdc86c8ae65c9d2ff38682a3190869546c1b5 Mon Sep 17 00:00:00 2001 From: inotia00 Date: Wed, 21 Jun 2023 12:00:29 +0900 Subject: [PATCH] add support YouTube v18.23.36, v18.24.36 --- README-template.md | 105 ++---------------- .../utils/annotations/YouTubeCompatibility.kt | 4 +- 2 files changed, 15 insertions(+), 94 deletions(-) diff --git a/README-template.md b/README-template.md index f9ddf51ba..dd2bb8579 100644 --- a/README-template.md +++ b/README-template.md @@ -1,8 +1,8 @@ -## 🧩 Patches +## 🧩 ReVanced Patches -The official Patch bundle provided by ReVanced and the community. +The official ReVanced Extended Patches. -> Looking for the JSON variant of this? [Click here](patches.json). +## 📋 List of patches in this repository {{ table }} @@ -10,113 +10,32 @@ The official Patch bundle provided by ReVanced and the community. This section explains the JSON format for the [patches.json](patches.json) file. -The file contains an array of objects, each object representing a patch. The object contains the following properties: - -| key | description | -|-------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| `name` | The name of the patch. | -| `description` | The description of the patch. | -| `version` | The version of the patch. | -| `excluded` | Whether the patch is excluded by default. If `true`, the patch must never be included by default. | -| `options` | An array of options for this patch. | -| `options.key` | The key of the option. | -| `options.title` | The title of the option. | -| `options.description` | The description of the option. | -| `options.required` | Whether the option is required. | -| `options.choices?` | An array of choices of the option. This may be `null` if this option has no choices. The element type of this array may be any type. It can be a `String`, `Int` or something else. | -| `dependencies` | An array of dependencies, which are patch names. | -| `compatiblePackages` | An array of packages compatible with this patch. | -| `compatiblePackages.name` | The name of the package. | -| `compatiblePackages.versions` | An array of versions of the package compatible with this patch. If empty, all versions are seemingly compatible. | - Example: ```json [ { - "name": "remember-video-quality", - "description": "Adds the ability to remember the video quality you chose in the video quality flyout.", + "name": "default-video-quality", + "description": "Adds ability to set default video quality settings.", "version": "0.0.1", "excluded": false, "options": [], "dependencies": [ - "integrations", - "video-id-hook" + "settings" ], "compatiblePackages": [ { "name": "com.google.android.youtube", "versions": [ - "17.22.36", - "17.24.35", - "17.26.35", - "17.27.39", - "17.28.34", - "17.29.34", - "17.32.35", - "17.33.42" + "18.19.36", + "18.20.39", + "18.21.35", + "18.22.37", + "18.23.36", + "18.24.36" ] } ] - }, - { - "name": "theme", - "description": "Enables a custom theme.", - "version": "0.0.1", - "excluded": false, - "deprecated": false, - "options": [ - { - "key": "theme", - "title": "Theme", - "description": "Select a theme.", - "required": true, - "choices": [ - "Amoled" - ] - } - ], - "dependencies": [ - "locale-config-fix" - ], - "compatiblePackages": [ - { - "name": "com.google.android.youtube", - "versions": [] - } - ] - }, - { - "name": "custom-branding", - "description": "Changes the YouTube launcher icon and name to your choice (defaults to ReVanced).", - "version": "0.0.1", - "excluded": false, - "deprecated": false, - "options": [ - { - "key": "appName", - "title": "Application Name", - "description": "The name of the application it will show on your home screen.", - "required": true, - "choices": null - }, - { - "key": "appIconPath", - "title": "Application Icon Path", - "description": "A path to the icon of the application.", - "required": false, - "choices": null - } - ], - "dependencies": [ - "locale-config-fix" - ], - "compatiblePackages": [ - { - "name": "com.google.android.youtube", - "versions": [] - } - ] } ] ``` \ No newline at end of file diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/annotations/YouTubeCompatibility.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/annotations/YouTubeCompatibility.kt index f5dd1cdca..d89f1922a 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/annotations/YouTubeCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/annotations/YouTubeCompatibility.kt @@ -9,7 +9,9 @@ import app.revanced.patcher.annotation.Package "18.19.36", "18.20.39", "18.21.35", - "18.22.37" + "18.22.37", + "18.23.36", + "18.24.36" ) )] )