fix: patch description consistency (#134)

This commit is contained in:
bogadana 2022-07-08 06:30:59 +02:00 committed by GitHub
parent 277526eeea
commit da5896dde0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 28 additions and 28 deletions

View File

@ -17,7 +17,7 @@ import app.revanced.patches.music.audio.exclusiveaudio.fingerprints.ExclusiveAud
@Patch @Patch
@Name("exclusive-audio-playback") @Name("exclusive-audio-playback")
@Description("Add the option to play music without video.") @Description("Adds the option to play music without video.")
@ExclusiveAudioCompatibility @ExclusiveAudioCompatibility
@Version("0.0.1") @Version("0.0.1")
class ExclusiveAudioPatch : BytecodePatch( class ExclusiveAudioPatch : BytecodePatch(

View File

@ -20,7 +20,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c
@Patch @Patch
@Name("upgrade-button-remover") @Name("upgrade-button-remover")
@Description("Remove the upgrade tab from the pivot bar in YouTube music.") @Description("Removes the upgrade tab from the pivot bar in YouTube music.")
@RemoveUpgradeButtonCompatibility @RemoveUpgradeButtonCompatibility
@Version("0.0.1") @Version("0.0.1")
class RemoveUpgradeButtonPatch : BytecodePatch( class RemoveUpgradeButtonPatch : BytecodePatch(

View File

@ -42,7 +42,7 @@ import org.jf.dexlib2.immutable.reference.ImmutableMethodReference
dependencies = [ResourceIdMappingProviderResourcePatch::class, IntegrationsPatch::class] dependencies = [ResourceIdMappingProviderResourcePatch::class, IntegrationsPatch::class]
) )
@Name("general-ads") @Name("general-ads")
@Description("Patch to remove general ads in bytecode.") @Description("Removes general ads in bytecode.")
@GeneralAdsCompatibility @GeneralAdsCompatibility
@Version("0.0.1") @Version("0.0.1")
class GeneralBytecodeAdsPatch : BytecodePatch() { class GeneralBytecodeAdsPatch : BytecodePatch() {

View File

@ -19,7 +19,7 @@ import app.revanced.patches.youtube.misc.integrations.patch.IntegrationsPatch
@Patch @Patch
@Dependencies(dependencies = [IntegrationsPatch::class]) @Dependencies(dependencies = [IntegrationsPatch::class])
@Name("video-ads") @Name("video-ads")
@Description("Patch to remove ads in the YouTube video player.") @Description("Removes ads in the YouTube video player.")
@VideoAdsCompatibility @VideoAdsCompatibility
@Version("0.0.1") @Version("0.0.1")
class VideoAdsPatch : BytecodePatch( class VideoAdsPatch : BytecodePatch(
@ -40,4 +40,4 @@ class VideoAdsPatch : BytecodePatch(
return PatchResultSuccess() return PatchResultSuccess()
} }
} }

View File

@ -21,7 +21,7 @@ import org.jf.dexlib2.immutable.reference.ImmutableMethodReference
@Patch @Patch
@Name("fenster-swipe-controls") @Name("fenster-swipe-controls")
@Description("volume and brightness swipe controls") @Description("Adds volume and brightness swipe controls.")
@FensterCompatibility @FensterCompatibility
@Version("0.0.1") @Version("0.0.1")
@Dependencies(dependencies = [IntegrationsPatch::class]) @Dependencies(dependencies = [IntegrationsPatch::class])
@ -118,4 +118,4 @@ class FensterPatch : BytecodePatch(
throw PatchResultError("failed to inject onTouchEvent hook into NextGenWatchLayout: none found") throw PatchResultError("failed to inject onTouchEvent hook into NextGenWatchLayout: none found")
} }
} }
} }

View File

@ -24,7 +24,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c
@Patch @Patch
@Dependencies(dependencies = [IntegrationsPatch::class]) @Dependencies(dependencies = [IntegrationsPatch::class])
@Name("seekbar-tapping") @Name("seekbar-tapping")
@Description("Enable tapping on the seekbar of the YouTube player.") @Description("Enables tapping on the seekbar of the YouTube player.")
@SeekbarTappingCompatibility @SeekbarTappingCompatibility
@Version("0.0.1") @Version("0.0.1")
class EnableSeekbarTappingPatch : BytecodePatch( class EnableSeekbarTappingPatch : BytecodePatch(
@ -92,4 +92,4 @@ class EnableSeekbarTappingPatch : BytecodePatch(
) )
return PatchResultSuccess() return PatchResultSuccess()
} }
} }

View File

@ -20,7 +20,7 @@ import org.jf.dexlib2.iface.instruction.WideLiteralInstruction
@Patch @Patch
@Dependencies(dependencies = [ResourceIdMappingProviderResourcePatch::class]) @Dependencies(dependencies = [ResourceIdMappingProviderResourcePatch::class])
@Name("hide-autoplay-button") @Name("hide-autoplay-button")
@Description("Disable the autoplay button.") @Description("Disables the autoplay button.")
@AutoplayButtonCompatibility @AutoplayButtonCompatibility
@Version("0.0.1") @Version("0.0.1")
class HideAutoplayButton : BytecodePatch( class HideAutoplayButton : BytecodePatch(

View File

@ -16,7 +16,7 @@ import app.revanced.patches.youtube.misc.integrations.patch.IntegrationsPatch
@Patch @Patch
@Dependencies(dependencies = [IntegrationsPatch::class]) @Dependencies(dependencies = [IntegrationsPatch::class])
@Name("hide-cast-button") @Name("hide-cast-button")
@Description("Patch to hide the cast button.") @Description("Hides the cast button.")
@CastButtonCompatibility @CastButtonCompatibility
@Version("0.0.1") @Version("0.0.1")
class HideCastButtonPatch : BytecodePatch() { class HideCastButtonPatch : BytecodePatch() {

View File

@ -24,7 +24,7 @@ import org.jf.dexlib2.iface.reference.MethodReference
@Patch @Patch
@Dependencies(dependencies = [IntegrationsPatch::class, ResourceIdMappingProviderResourcePatch::class]) @Dependencies(dependencies = [IntegrationsPatch::class, ResourceIdMappingProviderResourcePatch::class])
@Name("disable-create-button") @Name("disable-create-button")
@Description("Disable the create button.") @Description("Disables the create button.")
@CreateButtonCompatibility @CreateButtonCompatibility
@Version("0.0.1") @Version("0.0.1")
class CreateButtonRemoverPatch : BytecodePatch( class CreateButtonRemoverPatch : BytecodePatch(

View File

@ -19,7 +19,7 @@ import org.jf.dexlib2.iface.reference.MethodReference
@Patch @Patch
@Name("disable-fullscreen-panels") @Name("disable-fullscreen-panels")
@Description("Disable comments panel in fullscreen view.") @Description("Disables comments panel in fullscreen view.")
@FullscreenPanelsCompatibility @FullscreenPanelsCompatibility
@Version("0.0.1") @Version("0.0.1")
class FullscreenPanelsRemovalPatch : BytecodePatch( class FullscreenPanelsRemovalPatch : BytecodePatch(

View File

@ -21,7 +21,7 @@ import org.jf.dexlib2.iface.reference.MethodReference
@Patch @Patch
@Name("minimized-playback") @Name("minimized-playback")
@Description("Enable minimized and background playback.") @Description("Enables minimized and background playback.")
@MinimizedPlaybackCompatibility @MinimizedPlaybackCompatibility
@Version("0.0.1") @Version("0.0.1")
class MinimizedPlaybackPatch : BytecodePatch( class MinimizedPlaybackPatch : BytecodePatch(

View File

@ -22,7 +22,7 @@ import org.jf.dexlib2.builder.instruction.BuilderInstruction21t
@Patch @Patch
@Dependencies(dependencies = [IntegrationsPatch::class]) @Dependencies(dependencies = [IntegrationsPatch::class])
@Name("old-quality-layout") @Name("old-quality-layout")
@Description("Enable the original quality flyout menu.") @Description("Enables the original quality flyout menu.")
@OldQualityLayoutCompatibility @OldQualityLayoutCompatibility
@Version("0.0.1") @Version("0.0.1")
class OldQualityLayoutPatch : BytecodePatch( class OldQualityLayoutPatch : BytecodePatch(
@ -51,4 +51,4 @@ class OldQualityLayoutPatch : BytecodePatch(
return PatchResultSuccess() return PatchResultSuccess()
} }
} }

View File

@ -13,7 +13,7 @@ import app.revanced.patches.youtube.layout.reels.fingerprints.HideReelsFingerpri
//@Patch TODO: this is currently in the general-bytecode-ads patch due to the integrations having a preference for including reels or not. Move it here. //@Patch TODO: this is currently in the general-bytecode-ads patch due to the integrations having a preference for including reels or not. Move it here.
@Name("hide-reels") @Name("hide-reels")
@Description("Hide reels on the page.") @Description("Hides reels on the page.")
@HideReelsCompatibility @HideReelsCompatibility
@Version("0.0.1") @Version("0.0.1")
class HideReelsPatch : BytecodePatch( class HideReelsPatch : BytecodePatch(
@ -33,4 +33,4 @@ class HideReelsPatch : BytecodePatch(
return PatchResultSuccess() return PatchResultSuccess()
} }
} }

View File

@ -19,7 +19,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
@Patch @Patch
@Dependencies(dependencies = [IntegrationsPatch::class]) @Dependencies(dependencies = [IntegrationsPatch::class])
@Name("hide-shorts-button") @Name("hide-shorts-button")
@Description("Hide the shorts button.") @Description("Hides the shorts button.")
@ShortsButtonCompatibility @ShortsButtonCompatibility
@Version("0.0.1") @Version("0.0.1")
class ShortsButtonRemoverPatch : BytecodePatch( class ShortsButtonRemoverPatch : BytecodePatch(

View File

@ -21,7 +21,7 @@ import app.revanced.patches.youtube.misc.integrations.patch.IntegrationsPatch
@Patch @Patch
@Dependencies(dependencies = [IntegrationsPatch::class]) @Dependencies(dependencies = [IntegrationsPatch::class])
@Name("hide-watermark") @Name("hide-watermark")
@Description("Hide the creator's watermark on video's.") @Description("Hides the creator's watermark on videos.")
@HideWatermarkCompatibility @HideWatermarkCompatibility
@Version("0.0.1") @Version("0.0.1")
class HideWatermarkPatch : BytecodePatch( class HideWatermarkPatch : BytecodePatch(

View File

@ -23,7 +23,7 @@ import app.revanced.patches.youtube.misc.integrations.patch.IntegrationsPatch
@Patch(include = false) @Patch(include = false)
@Dependencies(dependencies = [IntegrationsPatch::class]) @Dependencies(dependencies = [IntegrationsPatch::class])
@Name("enable-wide-searchbar") @Name("enable-wide-searchbar")
@Description("Replaces the search-icon with a wide searchbar. This will hide the youtube logo when this is active.") @Description("Replaces the search icon with a wide search bar. This will hide the YouTube logo when active.")
@WideSearchbarCompatibility @WideSearchbarCompatibility
@Version("0.0.1") @Version("0.0.1")
class WideSearchbarPatch : BytecodePatch( class WideSearchbarPatch : BytecodePatch(

View File

@ -13,7 +13,7 @@ import org.w3c.dom.Element
@Patch(false) @Patch(false)
@Name("enable-debugging") @Name("enable-debugging")
@Description("Enable app debugging by patching the manifest file") @Description("Enables app debugging by patching the manifest file.")
@EnableDebuggingCompatibility @EnableDebuggingCompatibility
@Version("0.0.1") @Version("0.0.1")
class EnableDebuggingPatch : ResourcePatch() { class EnableDebuggingPatch : ResourcePatch() {
@ -32,4 +32,4 @@ class EnableDebuggingPatch : ResourcePatch() {
return PatchResultSuccess() return PatchResultSuccess()
} }
} }

View File

@ -20,7 +20,7 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
@Patch @Patch
@Name("hdr-max-brightness") @Name("hdr-max-brightness")
@Description("Set brightness to max for HDR videos in fullscreen mode.") @Description("Sets brightness to max for HDR videos in fullscreen mode.")
@HDRBrightnessCompatibility @HDRBrightnessCompatibility
@Version("0.0.1") @Version("0.0.1")
class HDRBrightnessPatch : BytecodePatch( class HDRBrightnessPatch : BytecodePatch(

View File

@ -11,7 +11,7 @@ import app.revanced.patches.youtube.misc.manifest.annotations.FixLocaleConfigErr
import org.w3c.dom.Element import org.w3c.dom.Element
@Name("locale-config-fix") @Name("locale-config-fix")
@Description("Fix an error when building the resources by patching the manifest file.") @Description("Fixes an error when building the resources by patching the manifest file.")
@FixLocaleConfigErrorCompatibility @FixLocaleConfigErrorCompatibility
@Version("0.0.1") @Version("0.0.1")
class FixLocaleConfigErrorPatch : ResourcePatch() { class FixLocaleConfigErrorPatch : ResourcePatch() {

View File

@ -11,7 +11,7 @@ import app.revanced.patcher.patch.impl.ResourcePatch
import org.w3c.dom.Element import org.w3c.dom.Element
@Name("resource-id-mapping-provider-resource-patch-dependency") @Name("resource-id-mapping-provider-resource-patch-dependency")
@Description("This patch acts as a provider/ dependency for resource mappings.") @Description("Acts as a provider/dependency for resource mappings.")
@Version("0.0.1") @Version("0.0.1")
class ResourceIdMappingProviderResourcePatch : ResourcePatch() { class ResourceIdMappingProviderResourcePatch : ResourcePatch() {
companion object { companion object {

View File

@ -37,7 +37,7 @@ import org.jf.dexlib2.immutable.reference.ImmutableStringReference
] ]
) )
@Name("microg-support") @Name("microg-support")
@Description("Patch to allow YouTube ReVanced to run without root and under a different package name.") @Description("Allows YouTube ReVanced to run without root and under a different package name.")
@MicroGPatchCompatibility @MicroGPatchCompatibility
@Version("0.0.1") @Version("0.0.1")
class MicroGBytecodePatch : BytecodePatch( class MicroGBytecodePatch : BytecodePatch(
@ -168,4 +168,4 @@ class MicroGBytecodePatch : BytecodePatch(
index, "const-string v$register, \"$REVANCED_PACKAGE_NAME\"" index, "const-string v$register, \"$REVANCED_PACKAGE_NAME\""
) )
} }
} }