This commit is contained in:
inotia00
2023-02-15 11:57:57 +09:00
parent ec8bf1c2bb
commit 79a808db5c
213 changed files with 1710 additions and 3027 deletions

View File

@ -11,9 +11,8 @@ import app.revanced.patcher.patch.annotations.DependsOn
import app.revanced.patcher.patch.annotations.Patch
import app.revanced.patches.shared.annotation.YouTubeCompatibility
import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsPatch
import app.revanced.patches.youtube.swipe.swipebrightnessinhdr.bytecode.patch.SwipeGestureBrightnessInHDRPatch
import app.revanced.patches.youtube.swipe.swipecontrols.bytecode.patch.SwipeControlsBytecodePatch
import app.revanced.util.resources.ResourceHelper
import app.revanced.patches.youtube.swipe.swipecontrolshdr.patch.SwipeControlsHDRPatch
import app.revanced.util.resources.ResourceUtils
import app.revanced.util.resources.ResourceUtils.copyResources
@ -24,7 +23,7 @@ import app.revanced.util.resources.ResourceUtils.copyResources
[
SettingsPatch::class,
SwipeControlsBytecodePatch::class,
SwipeGestureBrightnessInHDRPatch::class
SwipeControlsHDRPatch::class
]
)
@YouTubeCompatibility
@ -35,17 +34,14 @@ class SwipeControlsPatch : ResourcePatch {
/*
add settings
*/
ResourceHelper.addSettings(
context,
"PREFERENCE_CATEGORY: REVANCED_SETTINGS",
"PREFERENCE: SWIPE_SETTINGS",
"SETTINGS: SWIPE_CONTROLS"
SettingsPatch.addPreference(
arrayOf(
"PREFERENCE: SWIPE_SETTINGS",
"SETTINGS: SWIPE_CONTROLS"
)
)
ResourceHelper.patchSuccess(
context,
"swipe-controls"
)
SettingsPatch.updatePatchStatus("swipe-controls")
context.copyResources(
"youtube/swipecontrols",

View File

@ -1,4 +1,4 @@
package app.revanced.patches.youtube.swipe.swipebrightnessinhdr.bytecode.fingerprints
package app.revanced.patches.youtube.swipe.swipecontrolshdr.fingerprints
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint

View File

@ -1,4 +1,4 @@
package app.revanced.patches.youtube.swipe.swipebrightnessinhdr.bytecode.patch
package app.revanced.patches.youtube.swipe.swipecontrolshdr.patch
import app.revanced.extensions.toErrorResult
import app.revanced.patcher.annotation.Name
@ -11,13 +11,13 @@ import app.revanced.patcher.patch.PatchResult
import app.revanced.patcher.patch.PatchResultSuccess
import app.revanced.patcher.util.smali.ExternalLabel
import app.revanced.patches.shared.annotation.YouTubeCompatibility
import app.revanced.patches.youtube.swipe.swipebrightnessinhdr.bytecode.fingerprints.HDRVideoFingerprint
import app.revanced.patches.youtube.swipe.swipecontrolshdr.fingerprints.HDRVideoFingerprint
import app.revanced.util.integrations.Constants.SWIPE_PATH
@Name("enable-swipe-gesture-brightness-in-hdr-patch")
@Name("swipe-controls-hdr")
@YouTubeCompatibility
@Version("0.0.1")
class SwipeGestureBrightnessInHDRPatch : BytecodePatch(
class SwipeControlsHDRPatch : BytecodePatch(
listOf(
HDRVideoFingerprint
)