From 7a828ea8826864505fac9b2bdb3a1261d9f4dc35 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Fri, 28 Jul 2023 22:11:23 +0400 Subject: [PATCH] fix: Remove version numbers from individual patches (#2709) --- .../activity/exportAll/patch/ExportAllActivitiesPatch.kt | 2 -- .../all/connectivity/wifi/spoof/patch/SpoofWifiPatch.kt | 2 -- .../gestures/patch/PredictiveBackGesturePatch.kt | 2 -- .../misc/debugging/patch/EnableAndroidDebuggingPatch.kt | 2 -- .../all/misc/packagename/patch/ChangePackageNamePatch.kt | 2 -- .../bytecode/patch/RemoveCaptureRestrictionPatch.kt | 2 -- .../patch/RemoveScreenshotRestrictionPatch.kt | 2 -- .../patches/backdrops/misc/pro/patch/ProUnlockPatch.kt | 2 -- .../fingerprints/IsPremiumPurchasedFingerprint.kt | 5 ++--- .../revanced/patches/candylinkvpn/patch/UnlockProPatch.kt | 4 +--- .../bootloader/patch/BootloaderDetectionPatch.kt | 2 -- .../detection/root/patch/RootDetectionPatch.kt | 2 -- .../fingerprints/OnApplicationCreateFingerprint.kt | 2 +- .../restrictions/patch/RemoveDeviceRestrictions.kt | 4 +--- .../patches/hexeditor/ad/patch/HexEditorAdsPatch.kt | 3 --- .../iconpackstudio/misc/pro/patch/UnlockProPatch.kt | 2 -- .../idaustria/detection/root/patch/RootDetectionPatch.kt | 2 -- .../detection/signature/patch/SpoofSignaturePatch.kt | 2 -- .../patches/inshorts/ad/patch/InshortsAdsPatch.kt | 2 -- .../patches/ads/timeline/patch/HideTimelineAdsPatch.kt | 1 - .../revanced/patches/irplus/ad/patch/IrplusAdsPatch.kt | 2 -- .../detection/license/patch/LicenseValidationPatch.kt | 2 -- .../signature/patch/SignatureVerificationPatch.kt | 2 -- .../memegenerator/misc/pro/patch/UnlockProVersionPatch.kt | 2 -- .../messenger/ads/inbox/patch/HideInboxAdsPatch.kt | 1 - .../DisableSwitchingEmojiToStickerInMessageInputField.kt | 1 - .../messenger/inputfield/patch/DisableTypingIndicator.kt | 2 -- .../revanced/patches/moneymanager/patch/UnlockProPatch.kt | 2 -- .../patches/music/ad/video/patch/MusicVideoAdsPatch.kt | 2 -- .../patches/music/audio/codecs/patch/CodecsUnlockPatch.kt | 2 -- .../audio/exclusiveaudio/patch/ExclusiveAudioPatch.kt | 2 -- .../layout/compactheader/patch/CompactHeaderPatch.kt | 2 -- .../minimizedplayback/patch/MinimizedPlaybackPatch.kt | 2 -- .../music/layout/premium/patch/HideGetPremiumPatch.kt | 2 -- .../upgradebutton/patch/RemoveUpgradeButtonPatch.kt | 2 -- .../androidauto/patch/BypassCertificateChecksPatch.kt | 2 -- .../misc/microg/patch/bytecode/MicroGBytecodePatch.kt | 2 -- .../premium/backgroundplay/patch/BackgroundPlayPatch.kt | 2 -- .../patches/myexpenses/misc/pro/patch/UnlockProPatch.kt | 2 -- .../resource/patch/RemoveBroadcastsRestrictionPatch.kt | 2 -- .../patches/nfctoolsse/misc/pro/patch/UnlockProPatch.kt | 2 -- .../revanced/patches/nova/prime/patch/UnlockPrimePatch.kt | 2 -- .../revanced/patches/nyx/misc/pro/patch/UnlockProPatch.kt | 2 -- .../detection/signature/patch/SignatureDetectionPatch.kt | 2 -- .../photomath/misc/unlockplus/patch/UnlockPlusPatch.kt | 2 -- .../app/revanced/patches/pixiv/ads/patch/HideAdsPatch.kt | 1 - .../patches/reddit/ad/banner/patch/HideBannerPatch.kt | 2 -- .../reddit/ad/comments/patch/HideCommentAdsPatch.kt | 2 -- .../patches/reddit/ad/general/patch/HideAdsPatch.kt | 2 -- .../syncforreddit/ads/patch/DisableAdsPatch.kt | 1 - .../patch/DisableScreenshotPopupPatch.kt | 2 -- .../reddit/layout/premiumicon/patch/PremiumIconPatch.kt | 2 -- .../misc/tracking/url/patch/SanitizeUrlQueryPatch.kt | 2 -- .../debugging/patch/RemoveDebuggingDetectionPatch.kt | 2 -- .../integrations/patch/AbstractIntegrationsPatch.kt | 2 -- .../misc/fix/verticalscroll/patch/VerticalScrollPatch.kt | 2 -- .../revanced/patches/songpal/badge/patch/BadgeTabPatch.kt | 2 -- .../songpal/badge/patch/RemoveNotificationBadgePatch.kt | 2 -- .../patches/spotify/layout/theme/patch/ThemePatch.kt | 2 -- .../patches/spotify/lite/ondemand/patch/OnDemandPatch.kt | 2 -- .../premium_navbar_tab/patch/PremiumNavbarTabPatch.kt | 2 -- .../tasker/trial/unlock/patch/UnlockLicensePatch.kt | 2 -- .../ticktick/misc/themeunlock/patch/UnlockThemePatch.kt | 2 -- .../app/revanced/patches/tiktok/ad/patch/HideAdsPatch.kt | 2 -- .../patches/tiktok/feedfilter/patch/FeedFilterPatch.kt | 2 -- .../downloads/fingerprints/ACLCommonShareFingerprint2.kt | 2 -- .../downloads/fingerprints/ACLCommonShareFingerprint3.kt | 2 -- .../tiktok/interaction/downloads/patch/DownloadsPatch.kt | 2 -- .../tiktok/interaction/seekbar/patch/ShowSeekbarPatch.kt | 2 -- .../tiktok/interaction/speed/patch/PlaybackSpeedPatch.kt | 2 -- .../fingerprints/MandatoryLoginServiceFingerprint2.kt | 2 -- .../patch/DisableLoginRequirementPatch.kt | 2 -- .../misc/login/fixgoogle/patch/FixGoogleLoginPatch.kt | 2 -- .../patches/tiktok/misc/settings/patch/SettingsPatch.kt | 2 -- .../patches/tiktok/misc/spoof/sim/patch/SpoofSimPatch.kt | 2 -- .../app/revanced/patches/trakt/patch/UnlockProPatch.kt | 2 -- .../fingerprints/AgendaDaysWidgetUnlockFingerprint.kt | 2 -- .../fingerprints/CalendarBigWidgetUnlockFingerprint.kt | 2 -- .../CalendarWideTimelineWidgetUnlockFingerprint.kt | 2 -- .../ScreentimeSmallWidgetUnlockFingerprint.kt | 2 -- .../twelvewidgets/unlock/patch/UnlockPaidWidgetsPatch.kt | 1 - .../patches/twitch/ad/audio/patch/AudioAdsPatch.kt | 2 -- .../patches/twitch/ad/embedded/patch/EmbeddedAdsPatch.kt | 2 -- .../patches/twitch/ad/video/patch/VideoAdsPatch.kt | 2 -- .../chat/antidelete/patch/ShowDeletedMessagesPatch.kt | 2 -- .../chat/autoclaim/patch/AutoClaimChannelPointsPatch.kt | 2 -- .../revanced/patches/twitch/debug/patch/DebugModePatch.kt | 2 -- .../misc/integrations/fingerprints/InitFingerprint.kt | 2 -- .../twitch/misc/settings/bytecode/patch/SettingsPatch.kt | 2 -- .../twitter/misc/dynamiccolor/patch/DynamicColorPatch.kt | 2 -- .../patches/twitter/misc/hook/json/patch/JsonHookPatch.kt | 2 -- .../twitter/misc/hook/patch/ads/patch/HideAdsPatch.kt | 2 -- .../recommendation/patch/HideRecommendedUsersPatch.kt | 2 -- .../patches/vsco/misc/pro/patch/UnlockProPatch.kt | 1 - .../misc/firebasegetcert/patch/FirebaseGetCertPatch.kt | 2 -- .../misc/promocode/patch/PromoCodeUnlockPatch.kt | 2 -- .../misc/unlockpro/annotations/UnlockProCompatibility.kt | 2 +- .../misc/unlockpro/fingerprints/CheckProFingerprint.kt | 2 +- .../windyapp/misc/unlockpro/patch/UnlockProPatch.kt | 8 +++----- .../youtube/ad/general/bytecode/patch/HideAdsPatch.kt | 2 -- .../ad/general/resource/patch/HideAdsResourcePatch.kt | 2 -- .../patch/HideGetPremiumVideoAdvertisementPatch.kt | 4 +--- .../patches/youtube/ad/video/patch/VideoAdsPatch.kt | 2 -- .../bytecode/patch/CopyVideoUrlBytecodePatch.kt | 2 -- .../bytecode/patch/ExternalDownloadsBytecodePatch.kt | 2 -- .../seekbar/patch/EnableSeekbarTappingPatch.kt | 2 -- .../seekbar/patch/EnableSeekbarTappingResourcePatch.kt | 2 -- .../patch/bytecode/SwipeControlsBytecodePatch.kt | 2 -- .../patch/resource/SwipeControlsResourcePatch.kt | 3 --- .../layout/autocaptions/patch/AutoCaptionsPatch.kt | 2 -- .../layout/branding/header/patch/PremiumHeadingPatch.kt | 2 -- .../layout/branding/icon/patch/CustomBrandingPatch.kt | 2 -- .../layout/buttons/action/patch/HideButtonsPatch.kt | 2 -- .../buttons/autoplay/patch/HideAutoplayButtonPatch.kt | 2 -- .../buttons/captions/patch/HideCaptionsButtonPatch.kt | 2 -- .../layout/buttons/cast/patch/HideCastButtonPatch.kt | 2 -- .../buttons/navigation/patch/NavigationButtonsPatch.kt | 2 -- .../navigation/patch/ResolvePivotBarFingerprintsPatch.kt | 2 -- .../buttons/player/hide/patch/HidePlayerButtonsPatch.kt | 2 -- .../hide/albumcards/bytecode/patch/AlbumCardsPatch.kt | 2 -- .../hide/breakingnews/bytecode/patch/BreakingNewsPatch.kt | 2 -- .../youtube/layout/hide/comments/patch/CommentsPatch.kt | 2 -- .../bytecode/patch/CrowdfundingBoxPatch.kt | 2 -- .../bytecode/patch/HideEndscreenCardsPatch.kt | 2 -- .../layout/hide/filterbar/patch/HideFilterBarPatch.kt | 2 -- .../hide/filterbar/patch/HideFilterBarResourcePatch.kt | 2 -- .../patch/HideFloatingMicrophoneButtonPatch.kt | 2 -- .../patch/HideFloatingMicrophoneButtonResourcePatch.kt | 2 -- .../hide/general/patch/HideLayoutComponentsPatch.kt | 2 -- .../layout/hide/infocards/patch/HideInfoCardsPatch.kt | 2 -- .../resource/patch/HideInfocardsResourcePatch.kt | 2 -- .../bytecode/patch/HideLoadMoreButtonPatch.kt | 2 -- .../bytecode/patch/HideEmailAddressPatch.kt | 2 -- .../overlay/bytecode/patch/HidePlayerOverlayPatch.kt | 2 -- .../youtube/layout/hide/seekbar/patch/HideSeekbarPatch.kt | 2 -- .../shorts/bytecode/patch/HideShortsComponentsPatch.kt | 2 -- .../resource/patch/HideShortsComponentsResourcePatch.kt | 2 -- .../youtube/layout/hide/time/patch/HideTimestampPatch.kt | 2 -- .../youtube/layout/hide/watchinvr/patch/WatchInVRPatch.kt | 2 -- .../layout/hide/watermark/patch/HideWatermarkPatch.kt | 2 -- .../remove/patch/FullscreenPanelsRemoverPatch.kt | 2 -- .../layout/panels/popup/patch/PlayerPopupPanelsPatch.kt | 2 -- .../background/patch/PlayerControlsBackgroundPatch.kt | 2 -- .../patch/ReturnYouTubeDislikePatch.kt | 2 -- .../youtube/layout/searchbar/patch/WideSearchbarPatch.kt | 2 -- .../seekbar/bytecode/patch/SeekbarColorBytecodePatch.kt | 2 -- .../bytecode/patch/SponsorBlockBytecodePatch.kt | 2 -- .../bytecode/patch/SpoofAppVersionPatch.kt | 2 -- .../patch/DisableShortsOnStartupPatch.kt | 2 -- .../tabletminiplayer/patch/TabletMiniPlayerPatch.kt | 2 -- .../layout/theme/bytecode/patch/LithoColorHookPatch.kt | 2 -- .../layout/theme/bytecode/patch/ThemeBytecodePatch.kt | 2 -- .../youtube/misc/autorepeat/patch/AutoRepeatPatch.kt | 4 +--- .../youtube/misc/debugging/patch/DebuggingPatch.kt | 2 -- .../backtoexitgesture/patch/FixBackToExitGesturePatch.kt | 2 -- .../youtube/misc/fix/playback/patch/ClientSpoofPatch.kt | 2 -- .../fix/playback/patch/SpoofSignatureVerificationPatch.kt | 2 -- .../misc/links/open/patch/OpenLinksExternallyPatch.kt | 2 -- .../youtube/misc/litho/filter/patch/LithoFilterPatch.kt | 2 -- .../misc/microg/patch/bytecode/MicroGBytecodePatch.kt | 2 -- .../minimizedplayback/patch/MinimizedPlaybackPatch.kt | 2 -- .../bytecode/patch/PlayerControlsBytecodePatch.kt | 2 -- .../misc/playeroverlay/patch/PlayerOverlaysHookPatch.kt | 2 -- .../youtube/misc/playertype/patch/PlayerTypeHookPatch.kt | 2 -- .../youtube/misc/settings/bytecode/patch/SettingsPatch.kt | 4 +--- .../youtube/misc/zoomhaptics/patch/ZoomHapticsPatch.kt | 2 -- .../video/hdrbrightness/patch/HDRBrightnessPatch.kt | 2 -- .../video/information/patch/VideoInformationPatch.kt | 2 -- .../video/quality/patch/RememberVideoQualityPatch.kt | 2 -- .../revanced/patches/youtube/video/speed/PlaybackSpeed.kt | 2 -- .../video/speed/custom/patch/CustomPlaybackSpeedPatch.kt | 2 -- .../speed/remember/patch/RememberPlaybackSpeedPatch.kt | 2 -- .../patches/youtube/video/videoid/patch/VideoIdPatch.kt | 2 -- .../videoqualitymenu/patch/OldVideoQualityMenuPatch.kt | 2 -- .../ad/general/fingerprints/ContainsAdFingerprint.kt | 3 +-- .../youtubevanced/ad/general/patch/HideAdsPatch.kt | 2 -- .../yuka/misc/unlockpremium/patch/UnlockPremiunPatch.kt | 2 -- 177 files changed, 14 insertions(+), 355 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/all/activity/exportAll/patch/ExportAllActivitiesPatch.kt b/src/main/kotlin/app/revanced/patches/all/activity/exportAll/patch/ExportAllActivitiesPatch.kt index b338fae4b..b80fb2428 100644 --- a/src/main/kotlin/app/revanced/patches/all/activity/exportAll/patch/ExportAllActivitiesPatch.kt +++ b/src/main/kotlin/app/revanced/patches/all/activity/exportAll/patch/ExportAllActivitiesPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.all.activity.exportAll.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess @@ -12,7 +11,6 @@ import app.revanced.patcher.patch.annotations.Patch @Patch(false) @Name("Export all activities") @Description("Makes all app activities exportable.") -@Version("0.0.1") class ExportAllActivitiesPatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { context.xmlEditor["AndroidManifest.xml"].use { editor -> diff --git a/src/main/kotlin/app/revanced/patches/all/connectivity/wifi/spoof/patch/SpoofWifiPatch.kt b/src/main/kotlin/app/revanced/patches/all/connectivity/wifi/spoof/patch/SpoofWifiPatch.kt index 481e50ed1..7bf265286 100644 --- a/src/main/kotlin/app/revanced/patches/all/connectivity/wifi/spoof/patch/SpoofWifiPatch.kt +++ b/src/main/kotlin/app/revanced/patches/all/connectivity/wifi/spoof/patch/SpoofWifiPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.all.connectivity.wifi.spoof.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.annotations.RequiresIntegrations import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod @@ -15,7 +14,6 @@ import java.util.* @Patch(false) @Name("Spoof wifi connection") @Description("Spoofs an existing Wi-Fi connection.") -@Version("0.0.1") @RequiresIntegrations internal class SpoofWifiPatch : AbstractTransformInstructionsPatch() { diff --git a/src/main/kotlin/app/revanced/patches/all/interaction/gestures/patch/PredictiveBackGesturePatch.kt b/src/main/kotlin/app/revanced/patches/all/interaction/gestures/patch/PredictiveBackGesturePatch.kt index 06f590231..412487660 100644 --- a/src/main/kotlin/app/revanced/patches/all/interaction/gestures/patch/PredictiveBackGesturePatch.kt +++ b/src/main/kotlin/app/revanced/patches/all/interaction/gestures/patch/PredictiveBackGesturePatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.all.interaction.gestures.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess @@ -12,7 +11,6 @@ import app.revanced.patcher.patch.annotations.Patch @Patch(false) @Name("Predictive back gesture") @Description("Enables the predictive back gesture introduced on Android 13.") -@Version("0.0.1") class PredictiveBackGesturePatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { context.xmlEditor["AndroidManifest.xml"].use { editor -> diff --git a/src/main/kotlin/app/revanced/patches/all/misc/debugging/patch/EnableAndroidDebuggingPatch.kt b/src/main/kotlin/app/revanced/patches/all/misc/debugging/patch/EnableAndroidDebuggingPatch.kt index 74e8ec8bd..e575ad086 100644 --- a/src/main/kotlin/app/revanced/patches/all/misc/debugging/patch/EnableAndroidDebuggingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/all/misc/debugging/patch/EnableAndroidDebuggingPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.all.misc.debugging.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.* import app.revanced.patcher.patch.annotations.Patch @@ -11,7 +10,6 @@ import org.w3c.dom.Element @Patch(false) @Name("Enable android debugging") @Description("Enables Android debugging capabilities.") -@Version("0.0.1") class EnableAndroidDebuggingPatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { context.xmlEditor["AndroidManifest.xml"].use { dom -> diff --git a/src/main/kotlin/app/revanced/patches/all/misc/packagename/patch/ChangePackageNamePatch.kt b/src/main/kotlin/app/revanced/patches/all/misc/packagename/patch/ChangePackageNamePatch.kt index fa43af627..0709e75c4 100644 --- a/src/main/kotlin/app/revanced/patches/all/misc/packagename/patch/ChangePackageNamePatch.kt +++ b/src/main/kotlin/app/revanced/patches/all/misc/packagename/patch/ChangePackageNamePatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.all.misc.packagename.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.* import app.revanced.patcher.patch.annotations.Patch @@ -11,7 +10,6 @@ import org.w3c.dom.Element @Patch(false) @Name("Change package name") @Description("Changes the package name.") -@Version("0.0.1") class ChangePackageNamePatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { packageName?.let { packageName -> diff --git a/src/main/kotlin/app/revanced/patches/all/screencapture/removerestriction/bytecode/patch/RemoveCaptureRestrictionPatch.kt b/src/main/kotlin/app/revanced/patches/all/screencapture/removerestriction/bytecode/patch/RemoveCaptureRestrictionPatch.kt index 328dcf3eb..499f262bc 100644 --- a/src/main/kotlin/app/revanced/patches/all/screencapture/removerestriction/bytecode/patch/RemoveCaptureRestrictionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/all/screencapture/removerestriction/bytecode/patch/RemoveCaptureRestrictionPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.all.screencapture.removerestriction.bytecode.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.annotations.RequiresIntegrations @@ -16,7 +15,6 @@ import org.jf.dexlib2.iface.instruction.Instruction @Patch(false) @Name("Remove screen capture restriction") @Description("Removes the restriction of capturing audio from apps that normally wouldn't allow it.") -@Version("0.0.1") @DependsOn([RemoveCaptureRestrictionResourcePatch::class]) @RequiresIntegrations internal class RemoveCaptureRestrictionPatch : AbstractTransformInstructionsPatch() { diff --git a/src/main/kotlin/app/revanced/patches/all/screenshot/removerestriction/patch/RemoveScreenshotRestrictionPatch.kt b/src/main/kotlin/app/revanced/patches/all/screenshot/removerestriction/patch/RemoveScreenshotRestrictionPatch.kt index e1bc8c88d..9f096e799 100644 --- a/src/main/kotlin/app/revanced/patches/all/screenshot/removerestriction/patch/RemoveScreenshotRestrictionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/all/screenshot/removerestriction/patch/RemoveScreenshotRestrictionPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.all.screenshot.removerestriction.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.annotations.RequiresIntegrations import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod @@ -15,7 +14,6 @@ import java.util.* @Patch(false) @Name("Remove screenshot restriction") @Description("Removes the restriction of taking screenshots in apps that normally wouldn't allow it.") -@Version("0.0.1") @RequiresIntegrations internal class RemoveScreenshotRestrictionPatch : AbstractTransformInstructionsPatch() { diff --git a/src/main/kotlin/app/revanced/patches/backdrops/misc/pro/patch/ProUnlockPatch.kt b/src/main/kotlin/app/revanced/patches/backdrops/misc/pro/patch/ProUnlockPatch.kt index e908b4ebd..ed9af5872 100644 --- a/src/main/kotlin/app/revanced/patches/backdrops/misc/pro/patch/ProUnlockPatch.kt +++ b/src/main/kotlin/app/revanced/patches/backdrops/misc/pro/patch/ProUnlockPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.backdrops.misc.pro.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -19,7 +18,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Name("Pro unlock") @Description("Unlocks pro-only functions.") @ProUnlockCompatibility -@Version("0.0.1") class ProUnlockPatch : BytecodePatch( listOf(ProUnlockFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/candylinkvpn/fingerprints/IsPremiumPurchasedFingerprint.kt b/src/main/kotlin/app/revanced/patches/candylinkvpn/fingerprints/IsPremiumPurchasedFingerprint.kt index 394b3c1f4..4dd0a1b0a 100644 --- a/src/main/kotlin/app/revanced/patches/candylinkvpn/fingerprints/IsPremiumPurchasedFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/candylinkvpn/fingerprints/IsPremiumPurchasedFingerprint.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.candylinkvpn.fingereprints +package app.revanced.patches.candylinkvpn.fingerprints import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint @@ -7,5 +7,4 @@ object IsPremiumPurchasedFingerprint : MethodFingerprint( methodDef.definingClass.endsWith("PreferenceProvider;") && methodDef.name == "isPremiumPurchased" } -) { -} +) \ No newline at end of file diff --git a/src/main/kotlin/app/revanced/patches/candylinkvpn/patch/UnlockProPatch.kt b/src/main/kotlin/app/revanced/patches/candylinkvpn/patch/UnlockProPatch.kt index 22b8103bb..c15c69348 100644 --- a/src/main/kotlin/app/revanced/patches/candylinkvpn/patch/UnlockProPatch.kt +++ b/src/main/kotlin/app/revanced/patches/candylinkvpn/patch/UnlockProPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.candylinkvpn.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -11,13 +10,12 @@ import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.Patch import app.revanced.patches.candylinkvpn.annotations.UnlockProCompatibility -import app.revanced.patches.candylinkvpn.fingereprints.IsPremiumPurchasedFingerprint +import app.revanced.patches.candylinkvpn.fingerprints.IsPremiumPurchasedFingerprint @Patch @Name("Unlock pro") @Description("Unlocks premium features.") @UnlockProCompatibility -@Version("0.0.1") class UnlockProPatch : BytecodePatch( listOf(IsPremiumPurchasedFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/finanzonline/detection/bootloader/patch/BootloaderDetectionPatch.kt b/src/main/kotlin/app/revanced/patches/finanzonline/detection/bootloader/patch/BootloaderDetectionPatch.kt index 2661b2e78..61ed8c575 100644 --- a/src/main/kotlin/app/revanced/patches/finanzonline/detection/bootloader/patch/BootloaderDetectionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/finanzonline/detection/bootloader/patch/BootloaderDetectionPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.finanzonline.detection.bootloader.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -19,7 +18,6 @@ import app.revanced.patches.finanzonline.detection.shared.annotations.DetectionC @Name("Remove bootloader detection") @Description("Removes the check for an unlocked bootloader.") @DetectionCompatibility -@Version("0.0.1") class BootloaderDetectionPatch : BytecodePatch( listOf(CreateKeyFingerprint, BootStateFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/finanzonline/detection/root/patch/RootDetectionPatch.kt b/src/main/kotlin/app/revanced/patches/finanzonline/detection/root/patch/RootDetectionPatch.kt index 2a13fa15f..a7a006614 100644 --- a/src/main/kotlin/app/revanced/patches/finanzonline/detection/root/patch/RootDetectionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/finanzonline/detection/root/patch/RootDetectionPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.finanzonline.detection.root.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -17,7 +16,6 @@ import app.revanced.patches.finanzonline.detection.shared.annotations.DetectionC @Name("Remove root detection") @Description("Removes the check for root permissions.") @DetectionCompatibility -@Version("0.0.1") class RootDetectionPatch : BytecodePatch( listOf(RootDetectionFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/googlerecorder/restrictions/fingerprints/OnApplicationCreateFingerprint.kt b/src/main/kotlin/app/revanced/patches/googlerecorder/restrictions/fingerprints/OnApplicationCreateFingerprint.kt index 9eb26b8bd..531093919 100644 --- a/src/main/kotlin/app/revanced/patches/googlerecorder/restrictions/fingerprints/OnApplicationCreateFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/googlerecorder/restrictions/fingerprints/OnApplicationCreateFingerprint.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.googlerecorder.restrictions.fingereprints +package app.revanced.patches.googlerecorder.restrictions.fingerprints import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint diff --git a/src/main/kotlin/app/revanced/patches/googlerecorder/restrictions/patch/RemoveDeviceRestrictions.kt b/src/main/kotlin/app/revanced/patches/googlerecorder/restrictions/patch/RemoveDeviceRestrictions.kt index 1f3215ebf..6e408c06c 100644 --- a/src/main/kotlin/app/revanced/patches/googlerecorder/restrictions/patch/RemoveDeviceRestrictions.kt +++ b/src/main/kotlin/app/revanced/patches/googlerecorder/restrictions/patch/RemoveDeviceRestrictions.kt @@ -5,7 +5,6 @@ import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name import app.revanced.patcher.annotation.Package -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -14,14 +13,13 @@ import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.Patch -import app.revanced.patches.googlerecorder.restrictions.fingereprints.OnApplicationCreateFingerprint +import app.revanced.patches.googlerecorder.restrictions.fingerprints.OnApplicationCreateFingerprint import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Patch @Name("Remove device restrictions") @Description("Removes restrictions from using the app on any device.") @Compatibility([Package("com.google.android.apps.recorder")]) -@Version("0.0.1") class RemoveDeviceRestrictions : BytecodePatch( listOf(OnApplicationCreateFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/hexeditor/ad/patch/HexEditorAdsPatch.kt b/src/main/kotlin/app/revanced/patches/hexeditor/ad/patch/HexEditorAdsPatch.kt index 5e70f7709..e5ad20d55 100644 --- a/src/main/kotlin/app/revanced/patches/hexeditor/ad/patch/HexEditorAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/hexeditor/ad/patch/HexEditorAdsPatch.kt @@ -2,9 +2,7 @@ package app.revanced.patches.hexeditor.ad.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext -import app.revanced.patcher.extensions.InstructionExtensions.removeInstruction import app.revanced.patcher.extensions.InstructionExtensions.replaceInstructions import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult @@ -17,7 +15,6 @@ import app.revanced.patches.hexeditor.ad.fingerprints.PrimaryAdsFingerprint @Name("Disable ads") @Description("Disables ads in HexEditor.") @HexEditorAdsCompatibility -@Version("0.0.1") class HexEditorAdsPatch : BytecodePatch( listOf( PrimaryAdsFingerprint diff --git a/src/main/kotlin/app/revanced/patches/iconpackstudio/misc/pro/patch/UnlockProPatch.kt b/src/main/kotlin/app/revanced/patches/iconpackstudio/misc/pro/patch/UnlockProPatch.kt index ab924ed2b..bb866bfff 100644 --- a/src/main/kotlin/app/revanced/patches/iconpackstudio/misc/pro/patch/UnlockProPatch.kt +++ b/src/main/kotlin/app/revanced/patches/iconpackstudio/misc/pro/patch/UnlockProPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.iconpackstudio.misc.pro.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -16,7 +15,6 @@ import app.revanced.patches.iconpackstudio.misc.pro.fingerprints.CheckProFingerp @Name("Unlock pro") @Description("Unlocks all pro features.") @UnlockProCompatibility -@Version("0.0.1") class UnlockProPatch : BytecodePatch( listOf( CheckProFingerprint diff --git a/src/main/kotlin/app/revanced/patches/idaustria/detection/root/patch/RootDetectionPatch.kt b/src/main/kotlin/app/revanced/patches/idaustria/detection/root/patch/RootDetectionPatch.kt index 6113e0f82..04c486bbc 100644 --- a/src/main/kotlin/app/revanced/patches/idaustria/detection/root/patch/RootDetectionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/idaustria/detection/root/patch/RootDetectionPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.idaustria.detection.root.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.patch.BytecodePatch @@ -16,7 +15,6 @@ import app.revanced.patches.idaustria.detection.shared.annotations.DetectionComp @Name("Remove root detection") @Description("Removes the check for root permissions and unlocked bootloader.") @DetectionCompatibility -@Version("0.0.1") class RootDetectionPatch : BytecodePatch( listOf(RootDetectionFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/idaustria/detection/signature/patch/SpoofSignaturePatch.kt b/src/main/kotlin/app/revanced/patches/idaustria/detection/signature/patch/SpoofSignaturePatch.kt index 4b1b4a242..6c1c229b7 100644 --- a/src/main/kotlin/app/revanced/patches/idaustria/detection/signature/patch/SpoofSignaturePatch.kt +++ b/src/main/kotlin/app/revanced/patches/idaustria/detection/signature/patch/SpoofSignaturePatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.idaustria.detection.signature.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -16,7 +15,6 @@ import app.revanced.patches.idaustria.detection.signature.fingerprints.SpoofSign @Name("Spoof signature") @Description("Spoofs the signature of the app.") @DetectionCompatibility -@Version("0.0.1") class SpoofSignaturePatch : BytecodePatch( listOf(SpoofSignatureFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/inshorts/ad/patch/InshortsAdsPatch.kt b/src/main/kotlin/app/revanced/patches/inshorts/ad/patch/InshortsAdsPatch.kt index b2a6a81f0..a0b314e75 100644 --- a/src/main/kotlin/app/revanced/patches/inshorts/ad/patch/InshortsAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/inshorts/ad/patch/InshortsAdsPatch.kt @@ -4,7 +4,6 @@ import app.revanced.extensions.toErrorResult import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult @@ -17,7 +16,6 @@ import app.revanced.patches.inshorts.ad.fingerprints.InshortsAdsFingerprint @Name("Hide ads") @Description("Removes ads from Inshorts.") @HideAdsCompatibility -@Version("0.0.1") class HideAdsPatch : BytecodePatch( listOf(InshortsAdsFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/instagram/patches/ads/timeline/patch/HideTimelineAdsPatch.kt b/src/main/kotlin/app/revanced/patches/instagram/patches/ads/timeline/patch/HideTimelineAdsPatch.kt index 1f3839220..3090f5be0 100644 --- a/src/main/kotlin/app/revanced/patches/instagram/patches/ads/timeline/patch/HideTimelineAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/instagram/patches/ads/timeline/patch/HideTimelineAdsPatch.kt @@ -25,7 +25,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Name("Hide timeline ads") @Description("Removes ads from the timeline.") @Compatibility([Package("com.instagram.android", arrayOf("275.0.0.27.98"))]) -@Version("0.0.1") class HideTimelineAdsPatch : BytecodePatch( listOf( ShowAdFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/irplus/ad/patch/IrplusAdsPatch.kt b/src/main/kotlin/app/revanced/patches/irplus/ad/patch/IrplusAdsPatch.kt index 6299ffaf3..c4e93e7c1 100644 --- a/src/main/kotlin/app/revanced/patches/irplus/ad/patch/IrplusAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/irplus/ad/patch/IrplusAdsPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.irplus.ad.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.patch.BytecodePatch @@ -17,7 +16,6 @@ import app.revanced.patches.irplus.ad.fingerprints.IrplusAdsFingerprint @Name("Remove ads") @Description("Removes all ads from the app.") @IrplusAdsCompatibility -@Version("0.0.1") class IrplusAdsPatch : BytecodePatch( listOf(IrplusAdsFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/memegenerator/detection/license/patch/LicenseValidationPatch.kt b/src/main/kotlin/app/revanced/patches/memegenerator/detection/license/patch/LicenseValidationPatch.kt index d360d4c10..34b11e486 100644 --- a/src/main/kotlin/app/revanced/patches/memegenerator/detection/license/patch/LicenseValidationPatch.kt +++ b/src/main/kotlin/app/revanced/patches/memegenerator/detection/license/patch/LicenseValidationPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.memegenerator.detection.license.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.replaceInstructions import app.revanced.patcher.patch.BytecodePatch @@ -11,7 +10,6 @@ import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patches.memegenerator.detection.license.fingerprint.LicenseValidationFingerprint @Description("Disables Firebase license validation.") -@Version("0.0.1") class LicenseValidationPatch : BytecodePatch( listOf(LicenseValidationFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/memegenerator/detection/signature/patch/SignatureVerificationPatch.kt b/src/main/kotlin/app/revanced/patches/memegenerator/detection/signature/patch/SignatureVerificationPatch.kt index 5a4c35e48..3105311b6 100644 --- a/src/main/kotlin/app/revanced/patches/memegenerator/detection/signature/patch/SignatureVerificationPatch.kt +++ b/src/main/kotlin/app/revanced/patches/memegenerator/detection/signature/patch/SignatureVerificationPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.memegenerator.detection.signature.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.replaceInstructions import app.revanced.patcher.patch.BytecodePatch @@ -11,7 +10,6 @@ import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patches.memegenerator.detection.signature.fingerprint.VerifySignatureFingerprint @Description("Disables detection of incorrect signature.") -@Version("0.0.1") class SignatureVerificationPatch : BytecodePatch( listOf(VerifySignatureFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/memegenerator/misc/pro/patch/UnlockProVersionPatch.kt b/src/main/kotlin/app/revanced/patches/memegenerator/misc/pro/patch/UnlockProVersionPatch.kt index e18cbc83a..74ec5da7a 100644 --- a/src/main/kotlin/app/revanced/patches/memegenerator/misc/pro/patch/UnlockProVersionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/memegenerator/misc/pro/patch/UnlockProVersionPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.memegenerator.misc.pro.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.replaceInstructions import app.revanced.patcher.patch.BytecodePatch @@ -24,7 +23,6 @@ import app.revanced.patches.memegenerator.misc.pro.fingerprint.IsFreeVersionFing LicenseValidationPatch::class ]) @UnlockProCompatibility -@Version("0.0.1") class UnlockProVersionPatch : BytecodePatch( listOf( IsFreeVersionFingerprint diff --git a/src/main/kotlin/app/revanced/patches/messenger/ads/inbox/patch/HideInboxAdsPatch.kt b/src/main/kotlin/app/revanced/patches/messenger/ads/inbox/patch/HideInboxAdsPatch.kt index 8ee290bb5..e2d272125 100644 --- a/src/main/kotlin/app/revanced/patches/messenger/ads/inbox/patch/HideInboxAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/messenger/ads/inbox/patch/HideInboxAdsPatch.kt @@ -14,7 +14,6 @@ import app.revanced.patches.messenger.ads.inbox.fingerprints.LoadInboxAdsFingerp @Name("Hide inbox ads") @Description("Hides ads in inbox.") @Compatibility([Package("com.facebook.orca")]) -@Version("0.0.1") class HideInboxAdsPatch : BytecodePatch( listOf(LoadInboxAdsFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/messenger/inputfield/patch/DisableSwitchingEmojiToStickerInMessageInputField.kt b/src/main/kotlin/app/revanced/patches/messenger/inputfield/patch/DisableSwitchingEmojiToStickerInMessageInputField.kt index 89572cf47..7aa77e12d 100644 --- a/src/main/kotlin/app/revanced/patches/messenger/inputfield/patch/DisableSwitchingEmojiToStickerInMessageInputField.kt +++ b/src/main/kotlin/app/revanced/patches/messenger/inputfield/patch/DisableSwitchingEmojiToStickerInMessageInputField.kt @@ -16,7 +16,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Name("Disable switching emoji to sticker in message input field") @Description("Disables switching from emoji to sticker search mode in message input field") @Compatibility([Package("com.facebook.orca")]) -@Version("0.0.1") class DisableSwitchingEmojiToStickerInMessageInputField : BytecodePatch(listOf(SwitchMessangeInputEmojiButtonFingerprint)) { override fun execute(context: BytecodeContext): PatchResult { SwitchMessangeInputEmojiButtonFingerprint.result?.let { diff --git a/src/main/kotlin/app/revanced/patches/messenger/inputfield/patch/DisableTypingIndicator.kt b/src/main/kotlin/app/revanced/patches/messenger/inputfield/patch/DisableTypingIndicator.kt index 2fef89bfe..bb75cc1e6 100644 --- a/src/main/kotlin/app/revanced/patches/messenger/inputfield/patch/DisableTypingIndicator.kt +++ b/src/main/kotlin/app/revanced/patches/messenger/inputfield/patch/DisableTypingIndicator.kt @@ -5,7 +5,6 @@ import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name import app.revanced.patcher.annotation.Package -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction import app.revanced.patcher.patch.BytecodePatch @@ -18,7 +17,6 @@ import app.revanced.patches.messenger.inputfield.fingerprints.SendTypingIndicato @Name("Disable typing indicator") @Description("Disables the indicator while typing a message") @Compatibility([Package("com.facebook.orca")]) -@Version("0.0.1") class DisableTypingIndicator : BytecodePatch(listOf(SendTypingIndicatorFingerprint)) { override fun execute(context: BytecodeContext): PatchResult { SendTypingIndicatorFingerprint.result?.mutableMethod?.replaceInstruction(0, "return-void") diff --git a/src/main/kotlin/app/revanced/patches/moneymanager/patch/UnlockProPatch.kt b/src/main/kotlin/app/revanced/patches/moneymanager/patch/UnlockProPatch.kt index 4cd870f99..9de5db3fc 100644 --- a/src/main/kotlin/app/revanced/patches/moneymanager/patch/UnlockProPatch.kt +++ b/src/main/kotlin/app/revanced/patches/moneymanager/patch/UnlockProPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.moneymanager.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -16,7 +15,6 @@ import app.revanced.patches.moneymanager.fingerprints.UnlockProFingerprint @Name("Unlock pro") @Description("Unlocks pro features.") @UnlockProCompatibility -@Version("0.0.1") class UnlockProPatch : BytecodePatch( listOf(UnlockProFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/music/ad/video/patch/MusicVideoAdsPatch.kt b/src/main/kotlin/app/revanced/patches/music/ad/video/patch/MusicVideoAdsPatch.kt index be94ffc94..ea852b9dc 100644 --- a/src/main/kotlin/app/revanced/patches/music/ad/video/patch/MusicVideoAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/ad/video/patch/MusicVideoAdsPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.music.ad.video.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint.Companion.resolve @@ -18,7 +17,6 @@ import app.revanced.patches.music.annotations.MusicCompatibility @Name("Music video ads") @Description("Removes ads in the music player.") @MusicCompatibility -@Version("0.0.1") class MusicVideoAdsPatch : BytecodePatch( listOf(ShowMusicVideoAdsConstructorFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/music/audio/codecs/patch/CodecsUnlockPatch.kt b/src/main/kotlin/app/revanced/patches/music/audio/codecs/patch/CodecsUnlockPatch.kt index 25b9d5cd6..679bdd8b7 100644 --- a/src/main/kotlin/app/revanced/patches/music/audio/codecs/patch/CodecsUnlockPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/audio/codecs/patch/CodecsUnlockPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.music.audio.codecs.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.patch.BytecodePatch @@ -19,7 +18,6 @@ import org.jf.dexlib2.Opcode @Name("Codecs unlock") @Description("Adds more audio codec options. The new audio codecs usually result in better audio quality.") @MusicCompatibility -@Version("0.0.1") class CodecsUnlockPatch : BytecodePatch( listOf( CodecsLockFingerprint, AllCodecsReferenceFingerprint diff --git a/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/patch/ExclusiveAudioPatch.kt b/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/patch/ExclusiveAudioPatch.kt index 7295420b4..c0a1d85d3 100644 --- a/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/patch/ExclusiveAudioPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/patch/ExclusiveAudioPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.music.audio.exclusiveaudio.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction @@ -17,7 +16,6 @@ import app.revanced.patches.music.audio.exclusiveaudio.fingerprints.AudioOnlyEna @Name("Exclusive audio playback") @Description("Enables the option to play music without video.") @MusicCompatibility -@Version("0.0.1") class ExclusiveAudioPatch : BytecodePatch( listOf(AudioOnlyEnablerFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/music/layout/compactheader/patch/CompactHeaderPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/compactheader/patch/CompactHeaderPatch.kt index 5602d4489..4cea853d6 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/compactheader/patch/CompactHeaderPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/compactheader/patch/CompactHeaderPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.music.layout.compactheader.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -17,7 +16,6 @@ import org.jf.dexlib2.builder.instruction.BuilderInstruction11x @Name("Compact header") @Description("Hides the music category bar at the top of the homepage.") @MusicCompatibility -@Version("0.0.1") class CompactHeaderPatch : BytecodePatch( listOf(CompactHeaderConstructorFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/music/layout/minimizedplayback/patch/MinimizedPlaybackPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/minimizedplayback/patch/MinimizedPlaybackPatch.kt index 7ee0b7a9e..387e74bbb 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/minimizedplayback/patch/MinimizedPlaybackPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/minimizedplayback/patch/MinimizedPlaybackPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.music.layout.minimizedplayback.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.patch.BytecodePatch @@ -16,7 +15,6 @@ import app.revanced.patches.music.layout.minimizedplayback.fingerprints.Minimize @Name("Minimized playback music") @Description("Enables minimized playback on Kids music.") @MusicCompatibility -@Version("0.0.1") class MinimizedPlaybackPatch : BytecodePatch( listOf(MinimizedPlaybackManagerFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/music/layout/premium/patch/HideGetPremiumPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/premium/patch/HideGetPremiumPatch.kt index ffd8ed24d..1852409ca 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/premium/patch/HideGetPremiumPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/premium/patch/HideGetPremiumPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.music.layout.premium.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction @@ -19,7 +18,6 @@ import app.revanced.patches.music.layout.premium.fingerprints.HideGetPremiumPare @Name("Hide get premium") @Description("Removes all \"Get Premium\" evidences from the avatar menu.") @MusicCompatibility -@Version("0.0.1") class HideGetPremiumPatch : BytecodePatch( listOf(HideGetPremiumParentFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/music/layout/upgradebutton/patch/RemoveUpgradeButtonPatch.kt b/src/main/kotlin/app/revanced/patches/music/layout/upgradebutton/patch/RemoveUpgradeButtonPatch.kt index 7e47eb2a2..05b1bb38e 100644 --- a/src/main/kotlin/app/revanced/patches/music/layout/upgradebutton/patch/RemoveUpgradeButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/layout/upgradebutton/patch/RemoveUpgradeButtonPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.music.layout.upgradebutton.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -22,7 +21,6 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c @Name("Upgrade button remover") @Description("Removes the upgrade tab from the pivot bar.") @MusicCompatibility -@Version("0.0.1") class RemoveUpgradeButtonPatch : BytecodePatch( listOf(PivotBarConstructorFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/music/misc/androidauto/patch/BypassCertificateChecksPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/androidauto/patch/BypassCertificateChecksPatch.kt index c2f43bb06..a59c1fc02 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/androidauto/patch/BypassCertificateChecksPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/androidauto/patch/BypassCertificateChecksPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.music.misc.androidauto.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -17,7 +16,6 @@ import app.revanced.patches.music.misc.androidauto.fingerprints.CheckCertificate @Name("Bypass certificate checks") @Description("Bypasses certificate checks which prevent YouTube Music from working on Android Auto.") @MusicCompatibility -@Version("0.0.1") class BypassCertificateChecksPatch : BytecodePatch( listOf(CheckCertificateFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/music/misc/microg/patch/bytecode/MicroGBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/microg/patch/bytecode/MicroGBytecodePatch.kt index 47a0d38ad..695672170 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/microg/patch/bytecode/MicroGBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/microg/patch/bytecode/MicroGBytecodePatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.music.misc.microg.patch.bytecode import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResultSuccess @@ -21,7 +20,6 @@ import app.revanced.util.microg.MicroGBytecodeHelper @Name("Vanced MicroG support") @Description("Allows YouTube Music ReVanced to run without root and under a different package name.") @MusicCompatibility -@Version("0.0.2") class MicroGBytecodePatch : BytecodePatch( listOf( ServiceCheckFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/music/premium/backgroundplay/patch/BackgroundPlayPatch.kt b/src/main/kotlin/app/revanced/patches/music/premium/backgroundplay/patch/BackgroundPlayPatch.kt index ed94b98da..a3404c44c 100644 --- a/src/main/kotlin/app/revanced/patches/music/premium/backgroundplay/patch/BackgroundPlayPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/premium/backgroundplay/patch/BackgroundPlayPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.music.premium.backgroundplay.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -16,7 +15,6 @@ import app.revanced.patches.music.premium.backgroundplay.fingerprints.Background @Name("Background play") @Description("Enables playing music in the background.") @MusicCompatibility -@Version("0.0.1") class BackgroundPlayPatch : BytecodePatch( listOf(BackgroundPlaybackDisableFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/myexpenses/misc/pro/patch/UnlockProPatch.kt b/src/main/kotlin/app/revanced/patches/myexpenses/misc/pro/patch/UnlockProPatch.kt index 9527598c6..83b4624be 100644 --- a/src/main/kotlin/app/revanced/patches/myexpenses/misc/pro/patch/UnlockProPatch.kt +++ b/src/main/kotlin/app/revanced/patches/myexpenses/misc/pro/patch/UnlockProPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.myexpenses.misc.pro.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -16,7 +15,6 @@ import app.revanced.patches.myexpenses.misc.pro.fingerprints.IsEnabledFingerprin @Name("Unlock pro") @Description("Unlocks all professional features.") @UnlockProCompatibility -@Version("0.0.1") class UnlockProPatch : BytecodePatch( listOf( IsEnabledFingerprint diff --git a/src/main/kotlin/app/revanced/patches/netguard/broadcasts/removerestriction/resource/patch/RemoveBroadcastsRestrictionPatch.kt b/src/main/kotlin/app/revanced/patches/netguard/broadcasts/removerestriction/resource/patch/RemoveBroadcastsRestrictionPatch.kt index 553898d8c..8bd7f6b1e 100644 --- a/src/main/kotlin/app/revanced/patches/netguard/broadcasts/removerestriction/resource/patch/RemoveBroadcastsRestrictionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/netguard/broadcasts/removerestriction/resource/patch/RemoveBroadcastsRestrictionPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.netguard.broadcasts.removerestriction.resource.patc import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess @@ -15,7 +14,6 @@ import org.w3c.dom.Element @Name("Remove broadcasts restriction") @Description("Enables starting/stopping NetGuard via broadcasts.") @RemoveBroadcastsRestrictionCompatibility -@Version("0.0.1") class RemoveBroadcastsRestrictionPatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { context.xmlEditor["AndroidManifest.xml"].use { dom -> diff --git a/src/main/kotlin/app/revanced/patches/nfctoolsse/misc/pro/patch/UnlockProPatch.kt b/src/main/kotlin/app/revanced/patches/nfctoolsse/misc/pro/patch/UnlockProPatch.kt index d76987ed5..7e9ca2600 100644 --- a/src/main/kotlin/app/revanced/patches/nfctoolsse/misc/pro/patch/UnlockProPatch.kt +++ b/src/main/kotlin/app/revanced/patches/nfctoolsse/misc/pro/patch/UnlockProPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.nfctoolsse.misc.pro.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -17,7 +16,6 @@ import app.revanced.patches.nfctoolsse.misc.pro.fingerprints.IsLicenseRegistered @Patch @Name("Unlock pro") @Description("Unlocks all pro features.") -@Version("0.0.1") @UnlockProCompatibility class UnlockProPatch : BytecodePatch( listOf( diff --git a/src/main/kotlin/app/revanced/patches/nova/prime/patch/UnlockPrimePatch.kt b/src/main/kotlin/app/revanced/patches/nova/prime/patch/UnlockPrimePatch.kt index 362955f3d..4c1546041 100644 --- a/src/main/kotlin/app/revanced/patches/nova/prime/patch/UnlockPrimePatch.kt +++ b/src/main/kotlin/app/revanced/patches/nova/prime/patch/UnlockPrimePatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.nova.prime.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.patch.BytecodePatch @@ -18,7 +17,6 @@ import org.jf.dexlib2.builder.instruction.BuilderInstruction11x @Name("Unlock prime") @Description("Unlocks Nova Prime and all functions of the app.") @UnlockPrimeCompatibility -@Version("0.0.1") class UnlockPrimePatch : BytecodePatch( listOf( UnlockPrimeFingerprint diff --git a/src/main/kotlin/app/revanced/patches/nyx/misc/pro/patch/UnlockProPatch.kt b/src/main/kotlin/app/revanced/patches/nyx/misc/pro/patch/UnlockProPatch.kt index 47c6a6216..3aebe8305 100644 --- a/src/main/kotlin/app/revanced/patches/nyx/misc/pro/patch/UnlockProPatch.kt +++ b/src/main/kotlin/app/revanced/patches/nyx/misc/pro/patch/UnlockProPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.nyx.misc.pro.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -16,7 +15,6 @@ import app.revanced.patches.nyx.misc.pro.fingerprints.CheckProFingerprint @Name("Unlock pro") @Description("Unlocks all pro features.") @UnlockProCompatibility -@Version("0.0.1") class UnlockProPatch : BytecodePatch( listOf( CheckProFingerprint diff --git a/src/main/kotlin/app/revanced/patches/photomath/detection/signature/patch/SignatureDetectionPatch.kt b/src/main/kotlin/app/revanced/patches/photomath/detection/signature/patch/SignatureDetectionPatch.kt index c1aa53f62..5d2d5b03f 100644 --- a/src/main/kotlin/app/revanced/patches/photomath/detection/signature/patch/SignatureDetectionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/photomath/detection/signature/patch/SignatureDetectionPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.photomath.detection.signature.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.getInstruction import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction @@ -13,7 +12,6 @@ import app.revanced.patches.photomath.detection.signature.fingerprints.CheckSign import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Description("Disables detection of incorrect signature.") -@Version("0.0.2") class SignatureDetectionPatch : BytecodePatch( listOf( CheckSignatureFingerprint diff --git a/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/patch/UnlockPlusPatch.kt b/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/patch/UnlockPlusPatch.kt index d2b38d4b7..b0dc015bd 100644 --- a/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/patch/UnlockPlusPatch.kt +++ b/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/patch/UnlockPlusPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.photomath.misc.unlockplus.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -20,7 +19,6 @@ import app.revanced.patches.photomath.misc.unlockplus.fingerprints.IsPlusUnlocke @DependsOn([SignatureDetectionPatch::class]) @Description("Unlocks plus features.") @UnlockPlusCompatibilty -@Version("0.0.1") class UnlockPlusPatch : BytecodePatch( listOf( IsPlusUnlockedFingerprint diff --git a/src/main/kotlin/app/revanced/patches/pixiv/ads/patch/HideAdsPatch.kt b/src/main/kotlin/app/revanced/patches/pixiv/ads/patch/HideAdsPatch.kt index cbbfc10ed..d2d975aa9 100644 --- a/src/main/kotlin/app/revanced/patches/pixiv/ads/patch/HideAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/pixiv/ads/patch/HideAdsPatch.kt @@ -14,7 +14,6 @@ import app.revanced.patches.pixiv.ads.fingerprints.IsNotPremiumFingerprint @Name("Hide ads") @Description("Hides ads.") @Compatibility([Package("jp.pxv.android")]) -@Version("0.0.1") class HideAdsPatch : BytecodePatch(listOf(IsNotPremiumFingerprint)) { override fun execute(context: BytecodeContext): PatchResult { // Always return false in the "isNotPremium" method which normally returns !this.accountManager.isPremium. diff --git a/src/main/kotlin/app/revanced/patches/reddit/ad/banner/patch/HideBannerPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/ad/banner/patch/HideBannerPatch.kt index fe9cbbe49..11df0eded 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/ad/banner/patch/HideBannerPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/ad/banner/patch/HideBannerPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.reddit.ad.banner.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess @@ -10,7 +9,6 @@ import app.revanced.patcher.patch.ResourcePatch @Name("Hide subreddit banner") @Description("Hides banner ads from comments on subreddits.") -@Version("0.0.1") class HideBannerPatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { context.xmlEditor[RESOURCE_FILE_PATH].use { diff --git a/src/main/kotlin/app/revanced/patches/reddit/ad/comments/patch/HideCommentAdsPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/ad/comments/patch/HideCommentAdsPatch.kt index 4e5dfb75d..7c307e0b4 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/ad/comments/patch/HideCommentAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/ad/comments/patch/HideCommentAdsPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.reddit.ad.comments.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -12,7 +11,6 @@ import app.revanced.patches.reddit.ad.comments.fingerprints.HideCommentAdsFinger @Name("Hide comment ads") @Description("Removes all comment ads.") -@Version("0.0.1") class HideCommentAdsPatch : BytecodePatch( listOf(HideCommentAdsFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/reddit/ad/general/patch/HideAdsPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/ad/general/patch/HideAdsPatch.kt index 8ae3e49d2..3fb1c2140 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/ad/general/patch/HideAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/ad/general/patch/HideAdsPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.reddit.ad.general.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.removeInstruction @@ -29,7 +28,6 @@ import org.jf.dexlib2.iface.reference.MethodReference @DependsOn([HideBannerPatch::class, HideCommentAdsPatch::class]) @HideAdsCompatibility @RequiresIntegrations -@Version("0.0.2") class HideAdsPatch : BytecodePatch( listOf(AdPostFingerprint, NewAdPostFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/reddit/customclients/syncforreddit/ads/patch/DisableAdsPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/customclients/syncforreddit/ads/patch/DisableAdsPatch.kt index a74342ab0..7953aef1f 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/customclients/syncforreddit/ads/patch/DisableAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/customclients/syncforreddit/ads/patch/DisableAdsPatch.kt @@ -17,7 +17,6 @@ import app.revanced.patches.reddit.customclients.syncforreddit.detection.piracy. @DependsOn([DisablePiracyDetectionPatch::class]) @Description("Disables ads.") @Compatibility([Package("com.laurencedawson.reddit_sync")]) -@Version("0.0.1") class DisableAdsPatch : BytecodePatch(listOf(IsAdsEnabledFingerprint)) { override fun execute(context: BytecodeContext): PatchResult { IsAdsEnabledFingerprint.result?.mutableMethod?.apply { diff --git a/src/main/kotlin/app/revanced/patches/reddit/layout/disablescreenshotpopup/patch/DisableScreenshotPopupPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/layout/disablescreenshotpopup/patch/DisableScreenshotPopupPatch.kt index efc242138..740252f29 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/layout/disablescreenshotpopup/patch/DisableScreenshotPopupPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/layout/disablescreenshotpopup/patch/DisableScreenshotPopupPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.reddit.layout.disablescreenshotpopup.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.patch.BytecodePatch @@ -17,7 +16,6 @@ import app.revanced.patches.reddit.layout.disablescreenshotpopup.fingerprints.Di @Name("Disable screenshot popup") @Description("Disables the popup that shows up when taking a screenshot.") @DisableScreenshotPopupCompatibility -@Version("0.0.1") class DisableScreenshotPopupPatch : BytecodePatch( listOf(DisableScreenshotPopupFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/reddit/layout/premiumicon/patch/PremiumIconPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/layout/premiumicon/patch/PremiumIconPatch.kt index b21b6cdbd..8233d8115 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/layout/premiumicon/patch/PremiumIconPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/layout/premiumicon/patch/PremiumIconPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.reddit.layout.premiumicon.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -16,7 +15,6 @@ import app.revanced.patches.reddit.layout.premiumicon.fingerprints.PremiumIconFi @Name("Premium icon reddit") @Description("Unlocks premium Reddit app icons.") @PremiumIconCompatibility -@Version("0.0.1") class PremiumIconPatch : BytecodePatch( listOf( PremiumIconFingerprint diff --git a/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/patch/SanitizeUrlQueryPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/patch/SanitizeUrlQueryPatch.kt index 20782566b..cb1735b85 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/patch/SanitizeUrlQueryPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/patch/SanitizeUrlQueryPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.reddit.misc.tracking.url.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -17,7 +16,6 @@ import app.revanced.patches.reddit.misc.tracking.url.fingerprints.ShareLinkForma @Name("Sanitize sharing links") @Description("Removes (tracking) query parameters from the URLs when sharing links.") @SanitizeUrlQueryCompatibility -@Version("0.0.1") class SanitizeUrlQueryPatch : BytecodePatch( listOf(ShareLinkFormatterFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/scbeasy/detection/debugging/patch/RemoveDebuggingDetectionPatch.kt b/src/main/kotlin/app/revanced/patches/scbeasy/detection/debugging/patch/RemoveDebuggingDetectionPatch.kt index 6dbdd04a5..026b31554 100644 --- a/src/main/kotlin/app/revanced/patches/scbeasy/detection/debugging/patch/RemoveDebuggingDetectionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/scbeasy/detection/debugging/patch/RemoveDebuggingDetectionPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.scbeasy.detection.debugging.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -16,7 +15,6 @@ import app.revanced.patches.scbeasy.detection.debugging.fingerprints.DebuggingDe @Name("Remove debugging detection") @Description("Removes the USB and wireless debugging checks.") @RemoveDebuggingDetectionCompatibility -@Version("0.0.1") class RemoveDebuggingDetectionPatch : BytecodePatch( listOf(DebuggingDetectionFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/shared/integrations/patch/AbstractIntegrationsPatch.kt b/src/main/kotlin/app/revanced/patches/shared/integrations/patch/AbstractIntegrationsPatch.kt index c95d914a0..bff3bd199 100644 --- a/src/main/kotlin/app/revanced/patches/shared/integrations/patch/AbstractIntegrationsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/shared/integrations/patch/AbstractIntegrationsPatch.kt @@ -1,7 +1,6 @@ package app.revanced.patches.shared.integrations.patch import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint @@ -15,7 +14,6 @@ import org.jf.dexlib2.iface.ClassDef import org.jf.dexlib2.iface.Method @Description("Applies mandatory patches to implement the ReVanced integrations into the application.") -@Version("0.0.1") abstract class AbstractIntegrationsPatch( private val integrationsDescriptor: String, private val hooks: Iterable diff --git a/src/main/kotlin/app/revanced/patches/shared/misc/fix/verticalscroll/patch/VerticalScrollPatch.kt b/src/main/kotlin/app/revanced/patches/shared/misc/fix/verticalscroll/patch/VerticalScrollPatch.kt index 96aa87b28..f33bb09b3 100644 --- a/src/main/kotlin/app/revanced/patches/shared/misc/fix/verticalscroll/patch/VerticalScrollPatch.kt +++ b/src/main/kotlin/app/revanced/patches/shared/misc/fix/verticalscroll/patch/VerticalScrollPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.shared.misc.fix.verticalscroll.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -15,7 +14,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Description("Fixes issues with refreshing the feed when the first component is of type EmptyComponent.") @VerticalScrollCompatibility -@Version("0.0.1") class VerticalScrollPatch : BytecodePatch( listOf(CanScrollVerticallyFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/songpal/badge/patch/BadgeTabPatch.kt b/src/main/kotlin/app/revanced/patches/songpal/badge/patch/BadgeTabPatch.kt index 8781446e5..d4f7ffbdb 100644 --- a/src/main/kotlin/app/revanced/patches/songpal/badge/patch/BadgeTabPatch.kt +++ b/src/main/kotlin/app/revanced/patches/songpal/badge/patch/BadgeTabPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.songpal.badge.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.removeInstructions @@ -18,7 +17,6 @@ import app.revanced.patches.songpal.badge.fingerprints.CreateTabsFingerprint @Name("Remove badge tab") @Description("Removes the badge tab from the activity tab.") @BadgeCompatibility -@Version("0.0.1") class BadgeTabPatch : BytecodePatch( listOf(CreateTabsFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/songpal/badge/patch/RemoveNotificationBadgePatch.kt b/src/main/kotlin/app/revanced/patches/songpal/badge/patch/RemoveNotificationBadgePatch.kt index db620194c..59f626eb8 100644 --- a/src/main/kotlin/app/revanced/patches/songpal/badge/patch/RemoveNotificationBadgePatch.kt +++ b/src/main/kotlin/app/revanced/patches/songpal/badge/patch/RemoveNotificationBadgePatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.songpal.badge.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -17,7 +16,6 @@ import app.revanced.patches.songpal.badge.fingerprints.ShowNotificationFingerpri @Name("Remove notification badge") @Description("Removes the red notification badge from the activity tab.") @BadgeCompatibility -@Version("0.0.1") class RemoveNotificationBadgePatch : BytecodePatch( listOf(ShowNotificationFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/spotify/layout/theme/patch/ThemePatch.kt b/src/main/kotlin/app/revanced/patches/spotify/layout/theme/patch/ThemePatch.kt index 6bf4be26b..356a2d9e8 100644 --- a/src/main/kotlin/app/revanced/patches/spotify/layout/theme/patch/ThemePatch.kt +++ b/src/main/kotlin/app/revanced/patches/spotify/layout/theme/patch/ThemePatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.spotify.layout.theme.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.* import app.revanced.patcher.patch.annotations.Patch @@ -13,7 +12,6 @@ import org.w3c.dom.Element @Name("Spotify theme") @Description("Applies a custom theme.") @ThemeCompatibility -@Version("0.0.1") class ThemePatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { context.xmlEditor["res/values/colors.xml"].use { editor -> diff --git a/src/main/kotlin/app/revanced/patches/spotify/lite/ondemand/patch/OnDemandPatch.kt b/src/main/kotlin/app/revanced/patches/spotify/lite/ondemand/patch/OnDemandPatch.kt index a69dc4fd2..0ee130dfb 100644 --- a/src/main/kotlin/app/revanced/patches/spotify/lite/ondemand/patch/OnDemandPatch.kt +++ b/src/main/kotlin/app/revanced/patches/spotify/lite/ondemand/patch/OnDemandPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.spotify.lite.ondemand.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.patch.BytecodePatch @@ -17,7 +16,6 @@ import app.revanced.patches.spotify.lite.ondemand.fingerprints.OnDemandFingerpri @Name("Enable on demand") @Description("Enables listening to songs on-demand, allowing to play any song from playlists, albums or artists without limitations. This does not remove ads.") @OnDemandCompatibility -@Version("0.0.1") class OnDemandPatch : BytecodePatch( listOf( OnDemandFingerprint diff --git a/src/main/kotlin/app/revanced/patches/spotify/premium_navbar_tab/patch/PremiumNavbarTabPatch.kt b/src/main/kotlin/app/revanced/patches/spotify/premium_navbar_tab/patch/PremiumNavbarTabPatch.kt index ded56811b..5c3376d63 100644 --- a/src/main/kotlin/app/revanced/patches/spotify/premium_navbar_tab/patch/PremiumNavbarTabPatch.kt +++ b/src/main/kotlin/app/revanced/patches/spotify/premium_navbar_tab/patch/PremiumNavbarTabPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.spotify.premium_navbar_tab.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.removeInstruction import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint.Companion.resolve @@ -22,7 +21,6 @@ import org.jf.dexlib2.iface.instruction.WideLiteralInstruction @Name("Hide premium navbar") @Description("Removes the premium tab from the navbar.") @PremiumNavbarTabCompatibility -@Version("0.0.1") @DependsOn([ResourceMappingPatch::class]) class PremiumNavbarTabPatch : BytecodePatch( listOf( diff --git a/src/main/kotlin/app/revanced/patches/tasker/trial/unlock/patch/UnlockLicensePatch.kt b/src/main/kotlin/app/revanced/patches/tasker/trial/unlock/patch/UnlockLicensePatch.kt index 13c1b972e..b96823f02 100644 --- a/src/main/kotlin/app/revanced/patches/tasker/trial/unlock/patch/UnlockLicensePatch.kt +++ b/src/main/kotlin/app/revanced/patches/tasker/trial/unlock/patch/UnlockLicensePatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.tasker.trial.unlock.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.patch.BytecodePatch @@ -16,7 +15,6 @@ import app.revanced.patches.tasker.trial.unlock.fingerprints.CheckLicenseFingerp @Name("Unlock trial") @Description("Unlocks the trial version.") @UnlockTrialCompatibility -@Version("0.0.1") class UnlockLicensePatch : BytecodePatch( listOf( CheckLicenseFingerprint diff --git a/src/main/kotlin/app/revanced/patches/ticktick/misc/themeunlock/patch/UnlockThemePatch.kt b/src/main/kotlin/app/revanced/patches/ticktick/misc/themeunlock/patch/UnlockThemePatch.kt index 4f448c225..c7e5023e6 100644 --- a/src/main/kotlin/app/revanced/patches/ticktick/misc/themeunlock/patch/UnlockThemePatch.kt +++ b/src/main/kotlin/app/revanced/patches/ticktick/misc/themeunlock/patch/UnlockThemePatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.ticktick.misc.themeunlock.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.removeInstructions @@ -18,7 +17,6 @@ import app.revanced.patches.ticktick.misc.themeunlock.fingerprints.SetThemeFinge @Name("Unlock themes") @Description("Unlocks all themes that are inaccessible until a certain level is reached.") @UnlockThemesCompatibility -@Version("0.0.1") class UnlockProPatch : BytecodePatch( listOf( CheckLockedThemesFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/tiktok/ad/patch/HideAdsPatch.kt b/src/main/kotlin/app/revanced/patches/tiktok/ad/patch/HideAdsPatch.kt index 01c849d90..84fedb65c 100644 --- a/src/main/kotlin/app/revanced/patches/tiktok/ad/patch/HideAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/tiktok/ad/patch/HideAdsPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.tiktok.ad.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.patch.BytecodePatch @@ -22,7 +21,6 @@ import org.jf.dexlib2.iface.reference.FieldReference @Name("Hide ads") @Description("Removes ads from TikTok.") @HideAdsCompatibility -@Version("0.0.1") class HideAdsPatch : BytecodePatch( listOf( FeedItemListCloneFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/tiktok/feedfilter/patch/FeedFilterPatch.kt b/src/main/kotlin/app/revanced/patches/tiktok/feedfilter/patch/FeedFilterPatch.kt index 4e2235c36..21fb62f1f 100644 --- a/src/main/kotlin/app/revanced/patches/tiktok/feedfilter/patch/FeedFilterPatch.kt +++ b/src/main/kotlin/app/revanced/patches/tiktok/feedfilter/patch/FeedFilterPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.tiktok.feedfilter.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.patch.BytecodePatch @@ -23,7 +22,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Name("Feed filter") @Description("Filters tiktok videos: removing ads, removing livestreams.") @FeedFilterCompatibility -@Version("0.0.1") class FeedFilterPatch : BytecodePatch( listOf( FeedApiServiceLIZFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/tiktok/interaction/downloads/fingerprints/ACLCommonShareFingerprint2.kt b/src/main/kotlin/app/revanced/patches/tiktok/interaction/downloads/fingerprints/ACLCommonShareFingerprint2.kt index 5892fa554..a0e29c6a2 100644 --- a/src/main/kotlin/app/revanced/patches/tiktok/interaction/downloads/fingerprints/ACLCommonShareFingerprint2.kt +++ b/src/main/kotlin/app/revanced/patches/tiktok/interaction/downloads/fingerprints/ACLCommonShareFingerprint2.kt @@ -1,7 +1,6 @@ package app.revanced.patches.tiktok.interaction.downloads.fingerprints import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.extensions.or import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint import app.revanced.patches.tiktok.interaction.downloads.annotations.DownloadsCompatibility @@ -9,7 +8,6 @@ import org.jf.dexlib2.AccessFlags @Name("Acl common share get show type") @DownloadsCompatibility -@Version("0.0.1") object ACLCommonShareFingerprint2 : MethodFingerprint( "I", AccessFlags.PUBLIC or AccessFlags.FINAL, diff --git a/src/main/kotlin/app/revanced/patches/tiktok/interaction/downloads/fingerprints/ACLCommonShareFingerprint3.kt b/src/main/kotlin/app/revanced/patches/tiktok/interaction/downloads/fingerprints/ACLCommonShareFingerprint3.kt index e6bffdc10..df0c093cd 100644 --- a/src/main/kotlin/app/revanced/patches/tiktok/interaction/downloads/fingerprints/ACLCommonShareFingerprint3.kt +++ b/src/main/kotlin/app/revanced/patches/tiktok/interaction/downloads/fingerprints/ACLCommonShareFingerprint3.kt @@ -1,7 +1,6 @@ package app.revanced.patches.tiktok.interaction.downloads.fingerprints import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.extensions.or import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint import app.revanced.patches.tiktok.interaction.downloads.annotations.DownloadsCompatibility @@ -9,7 +8,6 @@ import org.jf.dexlib2.AccessFlags @Name("Acl common share get transcode") @DownloadsCompatibility -@Version("0.0.1") object ACLCommonShareFingerprint3 : MethodFingerprint( "I", AccessFlags.PUBLIC or AccessFlags.FINAL, diff --git a/src/main/kotlin/app/revanced/patches/tiktok/interaction/downloads/patch/DownloadsPatch.kt b/src/main/kotlin/app/revanced/patches/tiktok/interaction/downloads/patch/DownloadsPatch.kt index 831023657..9fc217eaa 100644 --- a/src/main/kotlin/app/revanced/patches/tiktok/interaction/downloads/patch/DownloadsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/tiktok/interaction/downloads/patch/DownloadsPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.tiktok.interaction.downloads.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstruction @@ -35,7 +34,6 @@ import org.jf.dexlib2.iface.reference.StringReference @Name("Downloads") @Description("Removes download restrictions and changes the default path to download to.") @DownloadsCompatibility -@Version("0.0.1") class DownloadsPatch : BytecodePatch( listOf( ACLCommonShareFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/tiktok/interaction/seekbar/patch/ShowSeekbarPatch.kt b/src/main/kotlin/app/revanced/patches/tiktok/interaction/seekbar/patch/ShowSeekbarPatch.kt index 21d0e7765..f0cf94359 100644 --- a/src/main/kotlin/app/revanced/patches/tiktok/interaction/seekbar/patch/ShowSeekbarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/tiktok/interaction/seekbar/patch/ShowSeekbarPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.tiktok.interaction.seekbar.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -19,7 +18,6 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction22t @Name("Show seekbar") @Description("Shows progress bar for all video.") @ShowSeekbarCompatibility -@Version("0.0.1") class ShowSeekbarPatch : BytecodePatch( listOf( SetSeekBarShowTypeFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/tiktok/interaction/speed/patch/PlaybackSpeedPatch.kt b/src/main/kotlin/app/revanced/patches/tiktok/interaction/speed/patch/PlaybackSpeedPatch.kt index 12d816a88..f0a1c9eec 100644 --- a/src/main/kotlin/app/revanced/patches/tiktok/interaction/speed/patch/PlaybackSpeedPatch.kt +++ b/src/main/kotlin/app/revanced/patches/tiktok/interaction/speed/patch/PlaybackSpeedPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.tiktok.interaction.speed.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -19,7 +18,6 @@ import org.jf.dexlib2.Opcode @Name("Playback speed") @Description("Enables the playback speed option for all videos.") @PlaybackSpeedCompatibility -@Version("0.0.1") class PlaybackSpeedPatch : BytecodePatch( listOf( SpeedControlParentFingerprint diff --git a/src/main/kotlin/app/revanced/patches/tiktok/misc/login/disablerequirement/fingerprints/MandatoryLoginServiceFingerprint2.kt b/src/main/kotlin/app/revanced/patches/tiktok/misc/login/disablerequirement/fingerprints/MandatoryLoginServiceFingerprint2.kt index c4e057b46..623e0359f 100644 --- a/src/main/kotlin/app/revanced/patches/tiktok/misc/login/disablerequirement/fingerprints/MandatoryLoginServiceFingerprint2.kt +++ b/src/main/kotlin/app/revanced/patches/tiktok/misc/login/disablerequirement/fingerprints/MandatoryLoginServiceFingerprint2.kt @@ -1,13 +1,11 @@ package app.revanced.patches.tiktok.misc.login.disablerequirement.fingerprints import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint import app.revanced.patches.tiktok.misc.login.disablerequirement.annotations.DisableLoginRequirementCompatibility @Name("Mandatory login service fingerprint2") @DisableLoginRequirementCompatibility -@Version("0.0.1") object MandatoryLoginServiceFingerprint2 : MethodFingerprint( customFingerprint = { methodDef, _ -> methodDef.definingClass.endsWith("/MandatoryLoginService;") && diff --git a/src/main/kotlin/app/revanced/patches/tiktok/misc/login/disablerequirement/patch/DisableLoginRequirementPatch.kt b/src/main/kotlin/app/revanced/patches/tiktok/misc/login/disablerequirement/patch/DisableLoginRequirementPatch.kt index 614f7bddd..51c02a321 100644 --- a/src/main/kotlin/app/revanced/patches/tiktok/misc/login/disablerequirement/patch/DisableLoginRequirementPatch.kt +++ b/src/main/kotlin/app/revanced/patches/tiktok/misc/login/disablerequirement/patch/DisableLoginRequirementPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.tiktok.misc.login.disablerequirement.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -17,7 +16,6 @@ import app.revanced.patches.tiktok.misc.login.disablerequirement.fingerprints.Ma @Name("Disable login requirement") @Description("Do not force login.") @DisableLoginRequirementCompatibility -@Version("0.0.1") class DisableLoginRequirementPatch : BytecodePatch( listOf( MandatoryLoginServiceFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/tiktok/misc/login/fixgoogle/patch/FixGoogleLoginPatch.kt b/src/main/kotlin/app/revanced/patches/tiktok/misc/login/fixgoogle/patch/FixGoogleLoginPatch.kt index 2b9c77b13..c1f31787a 100644 --- a/src/main/kotlin/app/revanced/patches/tiktok/misc/login/fixgoogle/patch/FixGoogleLoginPatch.kt +++ b/src/main/kotlin/app/revanced/patches/tiktok/misc/login/fixgoogle/patch/FixGoogleLoginPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.tiktok.misc.login.fixgoogle.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -17,7 +16,6 @@ import app.revanced.patches.tiktok.misc.login.fixgoogle.fingerprints.GoogleOneTa @Name("Fix google login") @Description("Allows logging in with a Google account.") @FixGoogleLoginCompatibility -@Version("0.0.1") class FixGoogleLoginPatch : BytecodePatch( listOf( GoogleOneTapAuthAvailableFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/tiktok/misc/settings/patch/SettingsPatch.kt b/src/main/kotlin/app/revanced/patches/tiktok/misc/settings/patch/SettingsPatch.kt index 67f932867..633cf1e31 100644 --- a/src/main/kotlin/app/revanced/patches/tiktok/misc/settings/patch/SettingsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/tiktok/misc/settings/patch/SettingsPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.tiktok.misc.settings.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels @@ -26,7 +25,6 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c @Name("Settings") @Description("Adds ReVanced settings to TikTok.") @SettingsCompatibility -@Version("0.0.1") class SettingsPatch : BytecodePatch( listOf( AdPersonalizationActivityOnCreateFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/tiktok/misc/spoof/sim/patch/SpoofSimPatch.kt b/src/main/kotlin/app/revanced/patches/tiktok/misc/spoof/sim/patch/SpoofSimPatch.kt index 308f2dd9c..cc9d2987f 100644 --- a/src/main/kotlin/app/revanced/patches/tiktok/misc/spoof/sim/patch/SpoofSimPatch.kt +++ b/src/main/kotlin/app/revanced/patches/tiktok/misc/spoof/sim/patch/SpoofSimPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.tiktok.misc.spoof.sim.patch import app.revanced.extensions.findMutableMethodOf import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -28,7 +27,6 @@ import org.jf.dexlib2.iface.reference.MethodReference @Name("Sim spoof") @Description("Spoofs the information which is retrieved from the sim-card.") @SpoofSimCompatibility -@Version("0.0.1") class SpoofSimPatch : BytecodePatch() { private companion object { val replacements = hashMapOf( diff --git a/src/main/kotlin/app/revanced/patches/trakt/patch/UnlockProPatch.kt b/src/main/kotlin/app/revanced/patches/trakt/patch/UnlockProPatch.kt index 46752e413..d18563523 100644 --- a/src/main/kotlin/app/revanced/patches/trakt/patch/UnlockProPatch.kt +++ b/src/main/kotlin/app/revanced/patches/trakt/patch/UnlockProPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.trakt.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint.Companion.resolve @@ -20,7 +19,6 @@ import app.revanced.patches.trakt.fingerprints.RemoteUserFingerprint @Name("Unlock pro") @Description("Unlocks pro features.") @UnlockProCompatibility -@Version("0.0.1") class UnlockProPatch : BytecodePatch( listOf(RemoteUserFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/fingerprints/AgendaDaysWidgetUnlockFingerprint.kt b/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/fingerprints/AgendaDaysWidgetUnlockFingerprint.kt index 33277fe7f..d3330bd5c 100644 --- a/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/fingerprints/AgendaDaysWidgetUnlockFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/fingerprints/AgendaDaysWidgetUnlockFingerprint.kt @@ -1,5 +1,3 @@ package app.revanced.patches.twelvewidgets.unlock.fingerprints -import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint - object AgendaDaysWidgetUnlockFingerprint : MethodUnlockFingerprint("AgendaDaysWidgetConfigureActivity") diff --git a/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/fingerprints/CalendarBigWidgetUnlockFingerprint.kt b/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/fingerprints/CalendarBigWidgetUnlockFingerprint.kt index 4245820d6..ed930a26c 100644 --- a/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/fingerprints/CalendarBigWidgetUnlockFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/fingerprints/CalendarBigWidgetUnlockFingerprint.kt @@ -1,5 +1,3 @@ package app.revanced.patches.twelvewidgets.unlock.fingerprints -import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint - object CalendarBigWidgetUnlockFingerprint : MethodUnlockFingerprint("CalendarBigWidgetConfigureActivity") diff --git a/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/fingerprints/CalendarWideTimelineWidgetUnlockFingerprint.kt b/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/fingerprints/CalendarWideTimelineWidgetUnlockFingerprint.kt index 3b7bb2ed1..c4f79eff5 100644 --- a/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/fingerprints/CalendarWideTimelineWidgetUnlockFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/fingerprints/CalendarWideTimelineWidgetUnlockFingerprint.kt @@ -1,6 +1,4 @@ package app.revanced.patches.twelvewidgets.unlock.fingerprints -import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint - object CalendarWideTimelineWidgetUnlockFingerprint : MethodUnlockFingerprint("CalendarWideTimelineWidgetConfigureActivity") diff --git a/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/fingerprints/ScreentimeSmallWidgetUnlockFingerprint.kt b/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/fingerprints/ScreentimeSmallWidgetUnlockFingerprint.kt index f2c0252de..7cfdc0246 100644 --- a/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/fingerprints/ScreentimeSmallWidgetUnlockFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/fingerprints/ScreentimeSmallWidgetUnlockFingerprint.kt @@ -1,5 +1,3 @@ package app.revanced.patches.twelvewidgets.unlock.fingerprints -import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint - object ScreentimeSmallWidgetUnlockFingerprint : MethodUnlockFingerprint("ScreentimeSmallWidgetConfigureActivity") diff --git a/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/patch/UnlockPaidWidgetsPatch.kt b/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/patch/UnlockPaidWidgetsPatch.kt index b39ff9f87..715eba431 100644 --- a/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/patch/UnlockPaidWidgetsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/twelvewidgets/unlock/patch/UnlockPaidWidgetsPatch.kt @@ -15,7 +15,6 @@ import app.revanced.patches.twelvewidgets.unlock.fingerprints.* @Name("Unlock paid widgets") @Description("Unlocks paid widgets of the app") @Compatibility([Package("com.dci.dev.androidtwelvewidgets")]) -@Version("0.0.1") class UnlockPaidWidgetsPatch : BytecodePatch( listOf( AgendaDaysWidgetUnlockFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/twitch/ad/audio/patch/AudioAdsPatch.kt b/src/main/kotlin/app/revanced/patches/twitch/ad/audio/patch/AudioAdsPatch.kt index 4c34a5610..c9f22061a 100644 --- a/src/main/kotlin/app/revanced/patches/twitch/ad/audio/patch/AudioAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/twitch/ad/audio/patch/AudioAdsPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.twitch.ad.audio.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -24,7 +23,6 @@ import app.revanced.patches.twitch.misc.settings.bytecode.patch.SettingsPatch @Name("Block audio ads") @Description("Blocks audio ads in streams and VODs.") @AudioAdsCompatibility -@Version("0.0.1") class AudioAdsPatch : BytecodePatch( listOf(AudioAdsPresenterPlayFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/twitch/ad/embedded/patch/EmbeddedAdsPatch.kt b/src/main/kotlin/app/revanced/patches/twitch/ad/embedded/patch/EmbeddedAdsPatch.kt index 7b269e0f9..1c61a7adb 100644 --- a/src/main/kotlin/app/revanced/patches/twitch/ad/embedded/patch/EmbeddedAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/twitch/ad/embedded/patch/EmbeddedAdsPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.twitch.ad.embedded.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.MethodFingerprintExtensions.name import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -26,7 +25,6 @@ import app.revanced.patches.twitch.misc.settings.bytecode.patch.SettingsPatch @Name("Block embedded ads") @Description("Blocks embedded stream ads using services like TTV.lol or PurpleAdBlocker.") @EmbeddedAdsCompatibility -@Version("0.0.1") class EmbeddedAdsPatch : BytecodePatch( listOf(CreateUsherClientFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/twitch/ad/video/patch/VideoAdsPatch.kt b/src/main/kotlin/app/revanced/patches/twitch/ad/video/patch/VideoAdsPatch.kt index 84846403a..9f21b2589 100644 --- a/src/main/kotlin/app/revanced/patches/twitch/ad/video/patch/VideoAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/twitch/ad/video/patch/VideoAdsPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.twitch.ad.video.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels @@ -28,7 +27,6 @@ import app.revanced.patches.twitch.misc.settings.bytecode.patch.SettingsPatch @Name("Block video ads") @Description("Blocks video ads in streams and VODs.") @VideoAdsCompatibility -@Version("0.0.1") class VideoAdsPatch : AbstractAdPatch( "Lapp/revanced/twitch/patches/VideoAdsPatch;->shouldBlockVideoAds()Z", "show_video_ads", diff --git a/src/main/kotlin/app/revanced/patches/twitch/chat/antidelete/patch/ShowDeletedMessagesPatch.kt b/src/main/kotlin/app/revanced/patches/twitch/chat/antidelete/patch/ShowDeletedMessagesPatch.kt index ec47cc836..5ba5bfd87 100644 --- a/src/main/kotlin/app/revanced/patches/twitch/chat/antidelete/patch/ShowDeletedMessagesPatch.kt +++ b/src/main/kotlin/app/revanced/patches/twitch/chat/antidelete/patch/ShowDeletedMessagesPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.twitch.chat.antidelete.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels @@ -29,7 +28,6 @@ import app.revanced.patches.twitch.misc.settings.bytecode.patch.SettingsPatch @Name("Show deleted messages") @Description("Shows deleted chat messages behind a clickable spoiler.") @ShowDeletedMessagesCompatibility -@Version("0.0.1") class ShowDeletedMessagesPatch : BytecodePatch( listOf( SetHasModAccessFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/twitch/chat/autoclaim/patch/AutoClaimChannelPointsPatch.kt b/src/main/kotlin/app/revanced/patches/twitch/chat/autoclaim/patch/AutoClaimChannelPointsPatch.kt index 699f32e66..294791846 100644 --- a/src/main/kotlin/app/revanced/patches/twitch/chat/autoclaim/patch/AutoClaimChannelPointsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/twitch/chat/autoclaim/patch/AutoClaimChannelPointsPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.twitch.chat.autoclaim.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -24,7 +23,6 @@ import app.revanced.patches.twitch.misc.settings.bytecode.patch.SettingsPatch @Name("Auto claim channel points") @Description("Automatically claim Channel Points.") @AutoClaimChannelPointsCompatibility -@Version("0.0.1") class AutoClaimChannelPointPatch : BytecodePatch( listOf(CommunityPointsButtonViewDelegateFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/twitch/debug/patch/DebugModePatch.kt b/src/main/kotlin/app/revanced/patches/twitch/debug/patch/DebugModePatch.kt index 8e16b5cb2..6453739f6 100644 --- a/src/main/kotlin/app/revanced/patches/twitch/debug/patch/DebugModePatch.kt +++ b/src/main/kotlin/app/revanced/patches/twitch/debug/patch/DebugModePatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.twitch.debug.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -25,7 +24,6 @@ import app.revanced.patches.twitch.misc.settings.bytecode.patch.SettingsPatch @Name("Debug mode") @Description("Enables Twitch's internal debugging mode.") @DebugModeCompatibility -@Version("0.0.1") class DebugModePatch : BytecodePatch( listOf( IsDebugConfigEnabledFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/twitch/misc/integrations/fingerprints/InitFingerprint.kt b/src/main/kotlin/app/revanced/patches/twitch/misc/integrations/fingerprints/InitFingerprint.kt index 61ec3f1b7..fbb3997b7 100644 --- a/src/main/kotlin/app/revanced/patches/twitch/misc/integrations/fingerprints/InitFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/twitch/misc/integrations/fingerprints/InitFingerprint.kt @@ -1,13 +1,11 @@ package app.revanced.patches.twitch.misc.integrations.fingerprints import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patches.twitch.misc.integrations.annotations.IntegrationsCompatibility import app.revanced.patches.shared.integrations.patch.AbstractIntegrationsPatch.IntegrationsFingerprint @Name("Init fingerprint") @IntegrationsCompatibility -@Version("0.0.1") object InitFingerprint : IntegrationsFingerprint( customFingerprint = { methodDef, _ -> methodDef.definingClass.endsWith("/TwitchApplication;") && diff --git a/src/main/kotlin/app/revanced/patches/twitch/misc/settings/bytecode/patch/SettingsPatch.kt b/src/main/kotlin/app/revanced/patches/twitch/misc/settings/bytecode/patch/SettingsPatch.kt index c7ff5569f..fdcdcc8a9 100644 --- a/src/main/kotlin/app/revanced/patches/twitch/misc/settings/bytecode/patch/SettingsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/twitch/misc/settings/bytecode/patch/SettingsPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.twitch.misc.settings.bytecode.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels @@ -36,7 +35,6 @@ import java.io.Closeable @Name("Settings") @Description("Adds settings menu to Twitch.") @SettingsCompatibility -@Version("0.0.1") class SettingsPatch : BytecodePatch( listOf( SettingsActivityOnCreateFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/twitter/misc/dynamiccolor/patch/DynamicColorPatch.kt b/src/main/kotlin/app/revanced/patches/twitter/misc/dynamiccolor/patch/DynamicColorPatch.kt index f86b54e4a..190bd0940 100644 --- a/src/main/kotlin/app/revanced/patches/twitter/misc/dynamiccolor/patch/DynamicColorPatch.kt +++ b/src/main/kotlin/app/revanced/patches/twitter/misc/dynamiccolor/patch/DynamicColorPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.twitter.misc.dynamiccolor.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultError @@ -17,7 +16,6 @@ import java.nio.file.Files @Name("Dynamic color") @Description("Replaces the default Twitter Blue with the users Material You palette.") @DynamicColorCompatibility -@Version("0.0.1") class DynamicColorPatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { val resDirectory = context["res"] diff --git a/src/main/kotlin/app/revanced/patches/twitter/misc/hook/json/patch/JsonHookPatch.kt b/src/main/kotlin/app/revanced/patches/twitter/misc/hook/json/patch/JsonHookPatch.kt index 972a6ad18..18cad2797 100644 --- a/src/main/kotlin/app/revanced/patches/twitter/misc/hook/json/patch/JsonHookPatch.kt +++ b/src/main/kotlin/app/revanced/patches/twitter/misc/hook/json/patch/JsonHookPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.twitter.misc.hook.json.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.removeInstructions @@ -21,7 +20,6 @@ import java.io.InvalidClassException @Name("Json hook") @Description("Hooks the stream which reads JSON responses.") -@Version("0.0.1") @RequiresIntegrations class JsonHookPatch : BytecodePatch( listOf(LoganSquareFingerprint) diff --git a/src/main/kotlin/app/revanced/patches/twitter/misc/hook/patch/ads/patch/HideAdsPatch.kt b/src/main/kotlin/app/revanced/patches/twitter/misc/hook/patch/ads/patch/HideAdsPatch.kt index 2af14a1ac..e978c5d67 100644 --- a/src/main/kotlin/app/revanced/patches/twitter/misc/hook/patch/ads/patch/HideAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/twitter/misc/hook/patch/ads/patch/HideAdsPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.twitter.misc.hook.patch.ads.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.patch.annotations.Patch import app.revanced.patches.twitter.misc.hook.json.patch.JsonHookPatch @@ -14,5 +13,4 @@ import app.revanced.patches.twitter.misc.hook.patch.ads.annotations.HideAdsCompa @DependsOn([JsonHookPatch::class]) @Description("Hides ads.") @HideAdsCompatibility -@Version("0.0.1") class HideAdsPatch : BaseHookPatchPatch("Lapp/revanced/twitter/patches/hook/patch/ads/AdsHook;") \ No newline at end of file diff --git a/src/main/kotlin/app/revanced/patches/twitter/misc/hook/patch/recommendation/patch/HideRecommendedUsersPatch.kt b/src/main/kotlin/app/revanced/patches/twitter/misc/hook/patch/recommendation/patch/HideRecommendedUsersPatch.kt index cd0e0662b..c4c9bc084 100644 --- a/src/main/kotlin/app/revanced/patches/twitter/misc/hook/patch/recommendation/patch/HideRecommendedUsersPatch.kt +++ b/src/main/kotlin/app/revanced/patches/twitter/misc/hook/patch/recommendation/patch/HideRecommendedUsersPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.twitter.misc.hook.patch.recommendation.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.patch.annotations.Patch import app.revanced.patches.twitter.misc.hook.json.patch.JsonHookPatch @@ -14,7 +13,6 @@ import app.revanced.patches.twitter.misc.hook.patch.recommendation.annotations.H @DependsOn([JsonHookPatch::class]) @Description("Hides recommended users.") @HideRecommendedUsersCompatibility -@Version("0.0.1") class HideRecommendedUsersPatch : BaseHookPatchPatch( "Lapp/revanced/twitter/patches/hook/patch/recommendation/RecommendedUsersHook;" ) \ No newline at end of file diff --git a/src/main/kotlin/app/revanced/patches/vsco/misc/pro/patch/UnlockProPatch.kt b/src/main/kotlin/app/revanced/patches/vsco/misc/pro/patch/UnlockProPatch.kt index d5bd249ab..a96f53dc4 100644 --- a/src/main/kotlin/app/revanced/patches/vsco/misc/pro/patch/UnlockProPatch.kt +++ b/src/main/kotlin/app/revanced/patches/vsco/misc/pro/patch/UnlockProPatch.kt @@ -15,7 +15,6 @@ import app.revanced.patches.vsco.misc.pro.fingerprints.RevCatSubscriptionFingerp @Name("Unlock pro") @Description("Unlocks pro features.") @Compatibility([Package("com.vsco.cam")]) -@Version("0.0.1") class UnlockProPatch : BytecodePatch( listOf(RevCatSubscriptionFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/warnwetter/misc/firebasegetcert/patch/FirebaseGetCertPatch.kt b/src/main/kotlin/app/revanced/patches/warnwetter/misc/firebasegetcert/patch/FirebaseGetCertPatch.kt index 8ba21e6c6..c481655ce 100644 --- a/src/main/kotlin/app/revanced/patches/warnwetter/misc/firebasegetcert/patch/FirebaseGetCertPatch.kt +++ b/src/main/kotlin/app/revanced/patches/warnwetter/misc/firebasegetcert/patch/FirebaseGetCertPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.warnwetter.misc.firebasegetcert.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -15,7 +14,6 @@ import app.revanced.patches.warnwetter.misc.firebasegetcert.fingerprints.GetReqi @Name("Spoof cert patch") @Description("Spoofs the X-Android-Cert header.") @FirebaseGetCertPatchCompatibility -@Version("0.0.1") class FirebaseGetCertPatch : BytecodePatch( listOf( GetReqistrationCertFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/warnwetter/misc/promocode/patch/PromoCodeUnlockPatch.kt b/src/main/kotlin/app/revanced/patches/warnwetter/misc/promocode/patch/PromoCodeUnlockPatch.kt index 0fc35eabb..4d8b84a40 100644 --- a/src/main/kotlin/app/revanced/patches/warnwetter/misc/promocode/patch/PromoCodeUnlockPatch.kt +++ b/src/main/kotlin/app/revanced/patches/warnwetter/misc/promocode/patch/PromoCodeUnlockPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.warnwetter.misc.promocode.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -23,7 +22,6 @@ import app.revanced.patches.warnwetter.misc.promocode.fingerprints.PromoCodeUnlo @Name("Promo code unlock") @Description("Disables the validation of promo code. Any code will work to unlock all features.") @PromoCodeUnlockCompatibility -@Version("0.0.1") class PromoCodeUnlockPatch : BytecodePatch( listOf( PromoCodeUnlockFingerprint diff --git a/src/main/kotlin/app/revanced/patches/windyapp/misc/unlockpro/annotations/UnlockProCompatibility.kt b/src/main/kotlin/app/revanced/patches/windyapp/misc/unlockpro/annotations/UnlockProCompatibility.kt index 4e6747399..fecdfb21c 100644 --- a/src/main/kotlin/app/revanced/patches/windyapp/misc/unlockpro/annotations/UnlockProCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/windyapp/misc/unlockpro/annotations/UnlockProCompatibility.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.windyapp.misc.pro.annotations +package app.revanced.patches.windyapp.misc.unlockpro.annotations import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Package diff --git a/src/main/kotlin/app/revanced/patches/windyapp/misc/unlockpro/fingerprints/CheckProFingerprint.kt b/src/main/kotlin/app/revanced/patches/windyapp/misc/unlockpro/fingerprints/CheckProFingerprint.kt index 353aa6a4e..3dafd79ea 100644 --- a/src/main/kotlin/app/revanced/patches/windyapp/misc/unlockpro/fingerprints/CheckProFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/windyapp/misc/unlockpro/fingerprints/CheckProFingerprint.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.windyapp.misc.pro.fingerprints +package app.revanced.patches.windyapp.misc.unlockpro.fingerprints import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint diff --git a/src/main/kotlin/app/revanced/patches/windyapp/misc/unlockpro/patch/UnlockProPatch.kt b/src/main/kotlin/app/revanced/patches/windyapp/misc/unlockpro/patch/UnlockProPatch.kt index d5ce0e7f3..5827a324b 100644 --- a/src/main/kotlin/app/revanced/patches/windyapp/misc/unlockpro/patch/UnlockProPatch.kt +++ b/src/main/kotlin/app/revanced/patches/windyapp/misc/unlockpro/patch/UnlockProPatch.kt @@ -1,22 +1,20 @@ -package app.revanced.patches.windyapp.misc.pro.patch +package app.revanced.patches.windyapp.misc.unlockpro.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.Patch -import app.revanced.patches.windyapp.misc.pro.annotations.UnlockProCompatibility -import app.revanced.patches.windyapp.misc.pro.fingerprints.CheckProFingerprint +import app.revanced.patches.windyapp.misc.unlockpro.annotations.UnlockProCompatibility +import app.revanced.patches.windyapp.misc.unlockpro.fingerprints.CheckProFingerprint @Patch @Name("Unlock pro") @Description("Unlocks all pro features.") @UnlockProCompatibility -@Version("0.0.1") class UnlockProPatch : BytecodePatch( listOf( CheckProFingerprint diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/HideAdsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/HideAdsPatch.kt index 14bb58164..db9b4045b 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/HideAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/HideAdsPatch.kt @@ -4,7 +4,6 @@ import app.revanced.extensions.findMutableMethodOf import app.revanced.extensions.injectHideViewCall import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult @@ -32,7 +31,6 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c @Name("Hide ads") @Description("Removes general ads.") @HideAdsCompatibility -@Version("0.0.1") class HideAdsPatch : BytecodePatch() { override fun execute(context: BytecodeContext): PatchResult { context.classes.forEach { classDef -> diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/general/resource/patch/HideAdsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/general/resource/patch/HideAdsResourcePatch.kt index f039603d5..b021d523e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ad/general/resource/patch/HideAdsResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ad/general/resource/patch/HideAdsResourcePatch.kt @@ -1,6 +1,5 @@ package app.revanced.patches.youtube.ad.general.resource.patch -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess @@ -22,7 +21,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch.P ] ) @HideAdsCompatibility -@Version("0.0.1") class HideAdsResourcePatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { PreferenceScreen.ADS.addPreferences( diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/getpremium/bytecode/patch/HideGetPremiumVideoAdvertisementPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/getpremium/bytecode/patch/HideGetPremiumVideoAdvertisementPatch.kt index e700b0947..1aed88895 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ad/getpremium/bytecode/patch/HideGetPremiumVideoAdvertisementPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ad/getpremium/bytecode/patch/HideGetPremiumVideoAdvertisementPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.ad.getpremium.bytecode.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -21,8 +20,7 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @DependsOn([IntegrationsPatch::class, SettingsPatch::class]) @Name("Hide get premium") @HideGetPremiumCompatibility -@Version("0.0.1") -class HideGetPremiumPatch : BytecodePatch(listOf(GetPremiumViewFingerprint,)) { +class HideGetPremiumPatch : BytecodePatch(listOf(GetPremiumViewFingerprint)) { override fun execute(context: BytecodeContext): PatchResult { SettingsPatch.PreferenceScreen.ADS.addPreferences( SwitchPreference( diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt index 12b89bb58..b26d8b3ba 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.ad.video.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -24,7 +23,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @Name("Video ads") @Description("Removes ads in the video player.") @VideoAdsCompatibility -@Version("0.0.1") class VideoAdsPatch : BytecodePatch( listOf( LoadVideoAdsFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/interaction/copyvideourl/bytecode/patch/CopyVideoUrlBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/interaction/copyvideourl/bytecode/patch/CopyVideoUrlBytecodePatch.kt index a6ba81fea..a6db2560c 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/interaction/copyvideourl/bytecode/patch/CopyVideoUrlBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/interaction/copyvideourl/bytecode/patch/CopyVideoUrlBytecodePatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.interaction.copyvideourl.bytecode.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult @@ -23,7 +22,6 @@ import app.revanced.patches.youtube.video.information.patch.VideoInformationPatc VideoInformationPatch::class ]) @CopyVideoUrlCompatibility -@Version("0.0.1") class CopyVideoUrlBytecodePatch : BytecodePatch() { private companion object { const val INTEGRATIONS_PLAYER_PACKAGE = "Lapp/revanced/integrations/videoplayer" diff --git a/src/main/kotlin/app/revanced/patches/youtube/interaction/downloads/bytecode/patch/ExternalDownloadsBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/interaction/downloads/bytecode/patch/ExternalDownloadsBytecodePatch.kt index 10f28711e..1b7a82ac4 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/interaction/downloads/bytecode/patch/ExternalDownloadsBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/interaction/downloads/bytecode/patch/ExternalDownloadsBytecodePatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.interaction.downloads.bytecode.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult @@ -19,7 +18,6 @@ import app.revanced.patches.youtube.video.information.patch.VideoInformationPatc @DependsOn([ExternalDownloadsResourcePatch::class, PlayerControlsBytecodePatch::class, VideoInformationPatch::class]) @Description("Adds support to download and save YouTube videos using an external app.") @ExternalDownloadsCompatibility -@Version("0.0.1") class ExternalDownloadsBytecodePatch : BytecodePatch() { private companion object { const val BUTTON_DESCRIPTOR = "Lapp/revanced/integrations/videoplayer/ExternalDownloadButton;" diff --git a/src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/patch/EnableSeekbarTappingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/patch/EnableSeekbarTappingPatch.kt index 4b16474b1..51a6b89ff 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/patch/EnableSeekbarTappingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/patch/EnableSeekbarTappingPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.interaction.seekbar.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -27,7 +26,6 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c @Name("Seekbar tapping") @Description("Enables tap-to-seek on the seekbar of the video player.") @SeekbarTappingCompatibility -@Version("0.0.1") class EnableSeekbarTappingPatch : BytecodePatch( listOf(AccessibilityPlayerProgressTimeFingerprint, SeekbarTappingFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/patch/EnableSeekbarTappingResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/patch/EnableSeekbarTappingResourcePatch.kt index d2281ad27..29c62c377 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/patch/EnableSeekbarTappingResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/interaction/seekbar/patch/EnableSeekbarTappingResourcePatch.kt @@ -1,6 +1,5 @@ package app.revanced.patches.youtube.interaction.seekbar.patch -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultError @@ -13,7 +12,6 @@ import app.revanced.patches.shared.settings.preference.impl.SwitchPreference import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @DependsOn([SettingsPatch::class, ResourceMappingPatch::class]) -@Version("0.0.1") class EnableSeekbarTappingResourcePatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { SettingsPatch.PreferenceScreen.INTERACTIONS.addPreferences( diff --git a/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/patch/bytecode/SwipeControlsBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/patch/bytecode/SwipeControlsBytecodePatch.kt index 30793eb59..198fe8c47 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/patch/bytecode/SwipeControlsBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/patch/bytecode/SwipeControlsBytecodePatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.interaction.swipecontrols.patch.bytecode import app.revanced.extensions.transformMethods import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult @@ -25,7 +24,6 @@ import org.jf.dexlib2.immutable.ImmutableMethod @Name("Swipe controls") @Description("Adds volume and brightness swipe controls.") @SwipeControlsCompatibility -@Version("0.0.3") @DependsOn( [ IntegrationsPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/patch/resource/SwipeControlsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/patch/resource/SwipeControlsResourcePatch.kt index 090374db7..5d67f7215 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/patch/resource/SwipeControlsResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/patch/resource/SwipeControlsResourcePatch.kt @@ -1,7 +1,5 @@ package app.revanced.patches.youtube.interaction.swipecontrols.patch.resource -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess @@ -13,7 +11,6 @@ import app.revanced.util.resources.ResourceUtils import app.revanced.util.resources.ResourceUtils.copyResources @DependsOn([SettingsPatch::class]) -@Version("0.0.1") class SwipeControlsResourcePatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { SettingsPatch.PreferenceScreen.INTERACTIONS.addPreferences( diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/autocaptions/patch/AutoCaptionsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/autocaptions/patch/AutoCaptionsPatch.kt index ea0521bd8..ae4048ada 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/autocaptions/patch/AutoCaptionsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/autocaptions/patch/AutoCaptionsPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.layout.autocaptions.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels @@ -25,7 +24,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @Name("Disable auto captions") @Description("Disable forced captions from being automatically enabled.") @HideCaptionsButtonCompatibility -@Version("0.0.1") class AutoCaptionsPatch : BytecodePatch( listOf( StartVideoInformerFingerprint, SubtitleButtonControllerFingerprint, SubtitleTrackFingerprint diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/patch/PremiumHeadingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/patch/PremiumHeadingPatch.kt index d022cace5..74c52a4bc 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/patch/PremiumHeadingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/patch/PremiumHeadingPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.layout.branding.header.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultError @@ -18,7 +17,6 @@ import kotlin.io.path.exists @Name("Premium heading") @Description("Shows premium branding on the home screen.") @PremiumHeadingCompatibility -@Version("0.0.1") class PremiumHeadingPatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { val resDirectory = context["res"] diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingPatch.kt index b52b13f5a..cc01995ae 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/branding/icon/patch/CustomBrandingPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.layout.branding.icon.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.* import app.revanced.patcher.patch.annotations.Patch @@ -16,7 +15,6 @@ import java.nio.file.Files @Name("Custom branding") @Description("Changes the YouTube launcher icon and name to your choice (defaults to ReVanced).") @CustomBrandingCompatibility -@Version("0.0.1") class CustomBrandingPatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { fun copyResources(resourceGroups: List) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/action/patch/HideButtonsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/action/patch/HideButtonsPatch.kt index 0d50e73eb..855d4ecc8 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/action/patch/HideButtonsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/action/patch/HideButtonsPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.layout.buttons.action.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess @@ -22,7 +21,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @Name("Hide video action buttons") @Description("Adds the options to hide action buttons under a video.") @HideButtonsCompatibility -@Version("0.0.1") class HideButtonsPatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { SettingsPatch.PreferenceScreen.LAYOUT.addPreferences( diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/autoplay/patch/HideAutoplayButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/autoplay/patch/HideAutoplayButtonPatch.kt index c4ca37056..39ae7b3c5 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/autoplay/patch/HideAutoplayButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/autoplay/patch/HideAutoplayButtonPatch.kt @@ -4,7 +4,6 @@ import app.revanced.extensions.findIndexForIdResource import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -31,7 +30,6 @@ import org.jf.dexlib2.iface.reference.MethodReference @Name("Hide autoplay button") @Description("Hides the autoplay button in the video player.") @AutoplayButtonCompatibility -@Version("0.0.1") class HideAutoplayButtonPatch : BytecodePatch( listOf(LayoutConstructorFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/captions/patch/HideCaptionsButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/captions/patch/HideCaptionsButtonPatch.kt index 5acee3c89..62452075d 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/captions/patch/HideCaptionsButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/captions/patch/HideCaptionsButtonPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.layout.buttons.captions.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.patch.BytecodePatch @@ -23,7 +22,6 @@ import org.jf.dexlib2.Opcode @Name("Hide captions button") @Description("Hides the captions button on video player.") @HideCaptionsButtonCompatibility -@Version("0.0.1") class HideCaptionsButtonPatch : BytecodePatch(listOf( SubtitleButtonControllerFingerprint, )) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/cast/patch/HideCastButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/cast/patch/HideCastButtonPatch.kt index 922223aed..966dfd7df 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/cast/patch/HideCastButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/cast/patch/HideCastButtonPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.layout.buttons.cast.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -22,7 +21,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @Name("Hide cast button") @Description("Hides the cast button in the video player.") @CastButtonCompatibility -@Version("0.0.1") class HideCastButtonPatch : BytecodePatch() { override fun execute(context: BytecodeContext): PatchResult { SettingsPatch.PreferenceScreen.LAYOUT.addPreferences( diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/navigation/patch/NavigationButtonsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/navigation/patch/NavigationButtonsPatch.kt index 47583fc7b..ef8fd1fa0 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/navigation/patch/NavigationButtonsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/navigation/patch/NavigationButtonsPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.buttons.navigation.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -36,7 +35,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Name("Navigation buttons") @Description("Adds options to hide or change navigation buttons.") @NavigationButtonsCompatibility -@Version("0.0.1") class NavigationButtonsPatch : BytecodePatch(listOf(AddCreateButtonViewFingerprint)) { override fun execute(context: BytecodeContext): PatchResult { SettingsPatch.PreferenceScreen.LAYOUT.addPreferences( diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/navigation/patch/ResolvePivotBarFingerprintsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/navigation/patch/ResolvePivotBarFingerprintsPatch.kt index 1f9740579..74f89732c 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/navigation/patch/ResolvePivotBarFingerprintsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/navigation/patch/ResolvePivotBarFingerprintsPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.layout.buttons.navigation.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint.Companion.resolve import app.revanced.patcher.patch.BytecodePatch @@ -16,7 +15,6 @@ import app.revanced.patches.youtube.layout.buttons.navigation.fingerprints.Pivot @DependsOn([ResourceMappingPatch::class]) @Description("Resolves necessary fingerprints.") -@Version("0.0.1") class ResolvePivotBarFingerprintsPatch : BytecodePatch( listOf(PivotBarConstructorFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/player/hide/patch/HidePlayerButtonsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/player/hide/patch/HidePlayerButtonsPatch.kt index 46e3a1023..5c9071295 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/player/hide/patch/HidePlayerButtonsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/player/hide/patch/HidePlayerButtonsPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.buttons.player.hide.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -25,7 +24,6 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction3rc @Name("Hide player buttons") @Description("Adds the option to hide video player previous and next buttons.") @HidePlayerButtonsCompatibility -@Version("0.0.1") class HidePlayerButtonsPatch : BytecodePatch( listOf(PlayerControlsVisibilityModelFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/albumcards/bytecode/patch/AlbumCardsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/albumcards/bytecode/patch/AlbumCardsPatch.kt index 2865cc36e..e4322b9e1 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/albumcards/bytecode/patch/AlbumCardsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/albumcards/bytecode/patch/AlbumCardsPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.hide.albumcards.bytecode.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -23,7 +22,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Name("Hide album cards") @Description("Hides the album cards below the artist description.") @AlbumCardsCompatibility -@Version("0.0.1") class AlbumCardsPatch : BytecodePatch( listOf( AlbumCardsFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/breakingnews/bytecode/patch/BreakingNewsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/breakingnews/bytecode/patch/BreakingNewsPatch.kt index b9a85653c..c9ababc1f 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/breakingnews/bytecode/patch/BreakingNewsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/breakingnews/bytecode/patch/BreakingNewsPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.hide.breakingnews.bytecode.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -23,7 +22,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Name("Hide breaking news shelf") @Description("Hides the breaking news shelf on the homepage tab.") @BreakingNewsCompatibility -@Version("0.0.1") class BreakingNewsPatch : BytecodePatch( listOf(BreakingNewsFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/patch/CommentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/patch/CommentsPatch.kt index b42ec0116..cbee51221 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/patch/CommentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/patch/CommentsPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.layout.hide.comments.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess @@ -21,7 +20,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @Description("Hides components related to comments.") @HideCommentsCompatibility @DependsOn([SettingsPatch::class, LithoFilterPatch::class]) -@Version("0.0.1") class CommentsPatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { LithoFilterPatch.addFilter(FILTER_CLASS_DESCRIPTOR) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/crowdfundingbox/bytecode/patch/CrowdfundingBoxPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/crowdfundingbox/bytecode/patch/CrowdfundingBoxPatch.kt index c36397c63..df3d6d1fd 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/crowdfundingbox/bytecode/patch/CrowdfundingBoxPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/crowdfundingbox/bytecode/patch/CrowdfundingBoxPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.hide.crowdfundingbox.bytecode.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -23,7 +22,6 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @Name("Hide crowdfunding box") @Description("Hides the crowdfunding box between the player and video description.") @CrowdfundingBoxCompatibility -@Version("0.0.1") class CrowdfundingBoxPatch : BytecodePatch( listOf( CrowdfundingBoxFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/bytecode/patch/HideEndscreenCardsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/bytecode/patch/HideEndscreenCardsPatch.kt index f21a324be..acfd9113b 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/bytecode/patch/HideEndscreenCardsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/bytecode/patch/HideEndscreenCardsPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.hide.endscreencards.bytecode.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -26,7 +25,6 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction21c @Name("Hide endscreen cards") @Description("Hides the suggested video cards at the end of a video in fullscreen.") @HideEndscreenCardsCompatibility -@Version("0.0.1") class HideEndscreenCardsPatch : BytecodePatch( listOf( LayoutCircleFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/filterbar/patch/HideFilterBarPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/filterbar/patch/HideFilterBarPatch.kt index d6be9eccb..45d2f6ae9 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/filterbar/patch/HideFilterBarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/filterbar/patch/HideFilterBarPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.hide.filterbar.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -25,7 +24,6 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @Description("Hides the filter bar in video feeds.") @DependsOn([HideFilterBarResourcePatch::class]) @HideFilterBar -@Version("0.0.1") class HideFilterBarPatch : BytecodePatch( listOf( RelatedChipCloudFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/filterbar/patch/HideFilterBarResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/filterbar/patch/HideFilterBarResourcePatch.kt index 45bddf581..ab0e32411 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/filterbar/patch/HideFilterBarResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/filterbar/patch/HideFilterBarResourcePatch.kt @@ -1,6 +1,5 @@ package app.revanced.patches.youtube.layout.hide.filterbar.patch -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess @@ -13,7 +12,6 @@ import app.revanced.patches.shared.settings.preference.impl.SwitchPreference import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @DependsOn([SettingsPatch::class, ResourceMappingPatch::class]) -@Version("0.0.1") class HideFilterBarResourcePatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { SettingsPatch.PreferenceScreen.LAYOUT.addPreferences( diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/floatingmicrophone/patch/HideFloatingMicrophoneButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/floatingmicrophone/patch/HideFloatingMicrophoneButtonPatch.kt index 98f80a165..5e8fd945f 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/floatingmicrophone/patch/HideFloatingMicrophoneButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/floatingmicrophone/patch/HideFloatingMicrophoneButtonPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.hide.floatingmicrophone.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -21,7 +20,6 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @Description("Hides the floating microphone button which appears in search.") @DependsOn([HideFloatingMicrophoneButtonResourcePatch::class]) @HideFloatingMicrophoneButtonCompatibility -@Version("0.0.1") class HideFloatingMicrophoneButtonPatch : BytecodePatch( listOf(ShowFloatingMicrophoneButtonFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/floatingmicrophone/patch/HideFloatingMicrophoneButtonResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/floatingmicrophone/patch/HideFloatingMicrophoneButtonResourcePatch.kt index ede1d0642..e3e03d980 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/floatingmicrophone/patch/HideFloatingMicrophoneButtonResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/floatingmicrophone/patch/HideFloatingMicrophoneButtonResourcePatch.kt @@ -1,6 +1,5 @@ package app.revanced.patches.youtube.layout.hide.floatingmicrophone.patch -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultError @@ -15,7 +14,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @DependsOn([SettingsPatch::class, ResourceMappingPatch::class]) @HideFloatingMicrophoneButtonCompatibility -@Version("0.0.1") class HideFloatingMicrophoneButtonResourcePatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { SettingsPatch.PreferenceScreen.LAYOUT.addPreferences( diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/patch/HideLayoutComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/patch/HideLayoutComponentsPatch.kt index 397c7409c..640479490 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/patch/HideLayoutComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/patch/HideLayoutComponentsPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.hide.general.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels @@ -28,7 +27,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch.P @Description("Hides general layout components.") @DependsOn([LithoFilterPatch::class, SettingsPatch::class]) @HideLayoutComponentsCompatibility -@Version("0.0.1") class HideLayoutComponentsPatch : BytecodePatch( listOf(ConvertElementToFlatBufferFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/infocards/patch/HideInfoCardsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/infocards/patch/HideInfoCardsPatch.kt index 9e26cb046..2d39ae8e5 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/infocards/patch/HideInfoCardsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/infocards/patch/HideInfoCardsPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.layout.hide.infocards.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels @@ -29,7 +28,6 @@ import org.jf.dexlib2.iface.instruction.ReferenceInstruction @Name("Hide info cards") @Description("Hides info cards in videos.") @HideInfocardsCompatibility -@Version("0.0.1") class HideInfoCardsPatch : BytecodePatch( listOf( InfocardsIncognitoParentFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/infocards/resource/patch/HideInfocardsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/infocards/resource/patch/HideInfocardsResourcePatch.kt index 5d63010c2..9b36d35f4 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/infocards/resource/patch/HideInfocardsResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/infocards/resource/patch/HideInfocardsResourcePatch.kt @@ -1,6 +1,5 @@ package app.revanced.patches.youtube.layout.hide.infocards.resource.patch -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess @@ -14,7 +13,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @HideInfocardsCompatibility @DependsOn([SettingsPatch::class, ResourceMappingPatch::class]) -@Version("0.0.1") class HideInfocardsResourcePatch : ResourcePatch { internal companion object { var drawerResourceId: Long = -1 diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/loadmorebutton/bytecode/patch/HideLoadMoreButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/loadmorebutton/bytecode/patch/HideLoadMoreButtonPatch.kt index fc7341aac..3f0d69ee8 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/loadmorebutton/bytecode/patch/HideLoadMoreButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/loadmorebutton/bytecode/patch/HideLoadMoreButtonPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.hide.loadmorebutton.bytecode.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -22,7 +21,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Description("Hides the button under videos that loads similar videos.") @DependsOn([HideLoadMoreButtonResourcePatch::class]) @HideLoadMoreButtonCompatibility -@Version("0.0.1") class HideLoadMoreButtonPatch : BytecodePatch(listOf(HideLoadMoreButtonFingerprint)) { override fun execute(context: BytecodeContext): PatchResult { HideLoadMoreButtonFingerprint.result?.let { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/personalinformation/bytecode/patch/HideEmailAddressPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/personalinformation/bytecode/patch/HideEmailAddressPatch.kt index 83332cd9a..1314b56c5 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/personalinformation/bytecode/patch/HideEmailAddressPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/personalinformation/bytecode/patch/HideEmailAddressPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.hide.personalinformation.bytecode.pa import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -23,7 +22,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Name("Hide email address") @Description("Hides the email address in the account switcher.") @HideEmailAddressCompatibility -@Version("0.0.1") class HideEmailAddressPatch : BytecodePatch( listOf( AccountSwitcherAccessibilityLabelFingerprint diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/player/overlay/bytecode/patch/HidePlayerOverlayPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/player/overlay/bytecode/patch/HidePlayerOverlayPatch.kt index 15107cf85..d802ae3b1 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/player/overlay/bytecode/patch/HidePlayerOverlayPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/player/overlay/bytecode/patch/HidePlayerOverlayPatch.kt @@ -4,7 +4,6 @@ import app.revanced.extensions.indexOfFirstConstantInstructionValue import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -23,7 +22,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Description("Hides the dark background overlay from the player when player controls are visible.") @DependsOn([HidePlayerOverlayResourcePatch::class]) @HidePlayerOverlayPatchCompatibility -@Version("0.0.2") class HidePlayerOverlayPatch : BytecodePatch(listOf(CreatePlayerOverviewFingerprint)) { override fun execute(context: BytecodeContext): PatchResult { CreatePlayerOverviewFingerprint.result?.let { result -> diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/seekbar/patch/HideSeekbarPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/seekbar/patch/HideSeekbarPatch.kt index 2d0f9f059..9cc247aff 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/seekbar/patch/HideSeekbarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/seekbar/patch/HideSeekbarPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.layout.hide.seekbar.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint.Companion.resolve @@ -33,7 +32,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @Name("Hide seekbar") @Description("Hides the seekbar.") @HideSeekbarCompatibility -@Version("0.0.1") class HideSeekbarPatch : BytecodePatch( listOf(SeekbarFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/bytecode/patch/HideShortsComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/bytecode/patch/HideShortsComponentsPatch.kt index 764610074..859588f8f 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/bytecode/patch/HideShortsComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/bytecode/patch/HideShortsComponentsPatch.kt @@ -5,7 +5,6 @@ import app.revanced.extensions.injectHideViewCall import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -38,7 +37,6 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @Name("Hide Shorts components") @Description("Hides components from YouTube Shorts.") @HideShortsComponentsCompatibility -@Version("0.0.1") class HideShortsComponentsPatch : BytecodePatch( listOf( CreateShortsButtonsFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/resource/patch/HideShortsComponentsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/resource/patch/HideShortsComponentsResourcePatch.kt index ad5f2e921..fb0664240 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/resource/patch/HideShortsComponentsResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/resource/patch/HideShortsComponentsResourcePatch.kt @@ -1,6 +1,5 @@ package app.revanced.patches.youtube.layout.hide.shorts.resource.patch -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess @@ -13,7 +12,6 @@ import app.revanced.patches.shared.settings.preference.impl.SwitchPreference import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @DependsOn([SettingsPatch::class, ResourceMappingPatch::class]) -@Version("0.0.1") class HideShortsComponentsResourcePatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { SettingsPatch.PreferenceScreen.LAYOUT.addPreferences( diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/time/patch/HideTimestampPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/time/patch/HideTimestampPatch.kt index 241a5282a..8753a7846 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/time/patch/HideTimestampPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/time/patch/HideTimestampPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.hide.time.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.patch.BytecodePatch @@ -23,7 +22,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @Name("Hide timestamp") @Description("Hides timestamp in video player.") @HideTimeCompatibility -@Version("0.0.1") class HideTimestampPatch : BytecodePatch( listOf( TimeCounterFingerprint diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/watchinvr/patch/WatchInVRPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/watchinvr/patch/WatchInVRPatch.kt index 277ce2c0c..08857d26d 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/watchinvr/patch/WatchInVRPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/watchinvr/patch/WatchInVRPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.layout.hide.watchinvr.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.patch.BytecodePatch @@ -22,7 +21,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @Name("Hide watch in VR") @Description("Hides the option to watch in VR from the player settings flyout panel.") @WatchInVRCompatibility -@Version("0.0.1") class WatchInVRPatch : BytecodePatch( listOf( WatchInVRFingerprint diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/watermark/patch/HideWatermarkPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/watermark/patch/HideWatermarkPatch.kt index 349bbdbb0..c9e5694ef 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/watermark/patch/HideWatermarkPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/watermark/patch/HideWatermarkPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.layout.hide.watermark.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.removeInstruction @@ -26,7 +25,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @Name("Hide watermark") @Description("Hides creator's watermarks on videos.") @HideWatermarkCompatibility -@Version("0.0.1") class HideWatermarkPatch : BytecodePatch( listOf( HideWatermarkParentFingerprint diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/panels/fullscreen/remove/patch/FullscreenPanelsRemoverPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/panels/fullscreen/remove/patch/FullscreenPanelsRemoverPatch.kt index acdc245cb..ab36bb885 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/panels/fullscreen/remove/patch/FullscreenPanelsRemoverPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/panels/fullscreen/remove/patch/FullscreenPanelsRemoverPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.layout.panels.fullscreen.remove.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.removeInstruction @@ -26,7 +25,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @DependsOn([IntegrationsPatch::class, SettingsPatch::class]) @Description("Disables video description and comments panel in fullscreen view.") @FullscreenPanelsCompatibility -@Version("0.0.1") class FullscreenPanelsRemoverPatch : BytecodePatch( listOf( FullscreenViewAdderParentFingerprint diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/patch/PlayerPopupPanelsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/patch/PlayerPopupPanelsPatch.kt index 8d63933c0..1f5d4c7d0 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/patch/PlayerPopupPanelsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/panels/popup/patch/PlayerPopupPanelsPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.panels.popup.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.patch.BytecodePatch @@ -23,7 +22,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @Name("Disable player popup panels") @Description("Disables panels from appearing automatically when going into fullscreen (playlist or live chat).") @PlayerPopupPanelsCompatibility -@Version("0.0.1") class PlayerPopupPanelsPatch : BytecodePatch( listOf( EngagementPanelControllerFingerprint diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/player/background/patch/PlayerControlsBackgroundPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/player/background/patch/PlayerControlsBackgroundPatch.kt index af370df14..c074af397 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/player/background/patch/PlayerControlsBackgroundPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/player/background/patch/PlayerControlsBackgroundPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.player.background.patch import app.revanced.extensions.doRecursively import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess @@ -16,7 +15,6 @@ import org.w3c.dom.Element @Name("Remove player controls background") @Description("Removes the background from the video player controls.") @PlayerControlsBackgroundCompatibility -@Version("0.0.1") class PlayerControlsBackgroundPatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { context.xmlEditor[RESOURCE_FILE_PATH].use { editor -> diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/patch/ReturnYouTubeDislikePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/patch/ReturnYouTubeDislikePatch.kt index 351ded3b4..f55afa767 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/patch/ReturnYouTubeDislikePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/patch/ReturnYouTubeDislikePatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.returnyoutubedislike.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -42,7 +41,6 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @Name("Return YouTube Dislike") @Description("Shows the dislike count of videos using the Return YouTube Dislike API.") @ReturnYouTubeDislikeCompatibility -@Version("0.0.1") class ReturnYouTubeDislikePatch : BytecodePatch( listOf( TextComponentConstructorFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/searchbar/patch/WideSearchbarPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/searchbar/patch/WideSearchbarPatch.kt index b96174990..d31a5a25e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/searchbar/patch/WideSearchbarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/searchbar/patch/WideSearchbarPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.searchbar.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -27,7 +26,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @Name("Wide searchbar") @Description("Replaces the search icon with a wide search bar. This will hide the YouTube logo when active.") @WideSearchbarCompatibility -@Version("0.0.1") class WideSearchbarPatch : BytecodePatch( listOf( SetWordmarkHeaderFingerprint, CreateSearchSuggestionsFingerprint diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/bytecode/patch/SeekbarColorBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/bytecode/patch/SeekbarColorBytecodePatch.kt index 6735d097d..156203606 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/bytecode/patch/SeekbarColorBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/bytecode/patch/SeekbarColorBytecodePatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.seekbar.bytecode.patch import app.revanced.extensions.indexOfFirstConstantInstructionValue import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -27,7 +26,6 @@ import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction @Description("Hide or set a custom seekbar color") @DependsOn([IntegrationsPatch::class, LithoColorHookPatch::class, SeekbarColorResourcePatch::class]) @SeekbarColorCompatibility -@Version("0.0.1") class SeekbarColorBytecodePatch : BytecodePatch( listOf(PlayerSeekbarColorFingerprint, ShortsSeekbarColorFingerprint, SetSeekbarClickedColorFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/sponsorblock/bytecode/patch/SponsorBlockBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/sponsorblock/bytecode/patch/SponsorBlockBytecodePatch.kt index c42ae3d0b..84450c9b0 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/sponsorblock/bytecode/patch/SponsorBlockBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/sponsorblock/bytecode/patch/SponsorBlockBytecodePatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.sponsorblock.bytecode.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstruction @@ -56,7 +55,6 @@ import org.jf.dexlib2.iface.reference.StringReference @Name("SponsorBlock") @Description("Integrates SponsorBlock which allows skipping video segments such as sponsored content.") @SponsorBlockCompatibility -@Version("0.0.1") class SponsorBlockBytecodePatch : BytecodePatch( listOf( SeekbarFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/spoofappversion/bytecode/patch/SpoofAppVersionPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/spoofappversion/bytecode/patch/SpoofAppVersionPatch.kt index bbcfd1f9a..f935b2b03 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/spoofappversion/bytecode/patch/SpoofAppVersionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/spoofappversion/bytecode/patch/SpoofAppVersionPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.spoofappversion.bytecode.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -26,7 +25,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Name("Spoof app version") @Description("Tricks YouTube into thinking, you are running an older version of the app. One of the side effects also includes restoring the old UI.") @SpoofAppVersionCompatibility -@Version("0.0.1") class SpoofAppVersionPatch : BytecodePatch( listOf( SpoofAppVersionFingerprint diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/startupshortsreset/patch/DisableShortsOnStartupPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/startupshortsreset/patch/DisableShortsOnStartupPatch.kt index 59be31ee9..13f355346 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/startupshortsreset/patch/DisableShortsOnStartupPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/startupshortsreset/patch/DisableShortsOnStartupPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.layout.startupshortsreset.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.patch.BytecodePatch @@ -22,7 +21,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @Name("Disable Shorts on startup") @Description("Disables playing YouTube Shorts when launching YouTube.") @StartupShortsResetCompatibility -@Version("0.0.1") class DisableShortsOnStartupPatch : BytecodePatch( listOf( UserWasInShortsFingerprint diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/tabletminiplayer/patch/TabletMiniPlayerPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/tabletminiplayer/patch/TabletMiniPlayerPatch.kt index 967b1f4dc..c642800de 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/tabletminiplayer/patch/TabletMiniPlayerPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/tabletminiplayer/patch/TabletMiniPlayerPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.tabletminiplayer.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint @@ -29,7 +28,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Name("Tablet mini player") @Description("Enables the tablet mini player layout.") @TabletMiniPlayerCompatibility -@Version("0.0.1") class TabletMiniPlayerPatch : BytecodePatch( listOf( MiniPlayerDimensionsCalculatorParentFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/bytecode/patch/LithoColorHookPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/bytecode/patch/LithoColorHookPatch.kt index e1a82abc5..0bd734f31 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/bytecode/patch/LithoColorHookPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/bytecode/patch/LithoColorHookPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.layout.theme.bytecode.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -16,7 +15,6 @@ import app.revanced.patches.youtube.layout.theme.bytecode.fingerprints.LithoThem @Name("Litho color hook") @Description("Adds a hook to set color of Litho components.") @ThemeCompatibility -@Version("0.0.1") class LithoColorHookPatch : BytecodePatch(listOf(LithoThemeFingerprint)) { override fun execute(context: BytecodeContext): PatchResult { LithoThemeFingerprint.result?.let { diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/bytecode/patch/ThemeBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/bytecode/patch/ThemeBytecodePatch.kt index d9374747e..c12180e23 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/bytecode/patch/ThemeBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/bytecode/patch/ThemeBytecodePatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.layout.theme.bytecode.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.patch.* import app.revanced.patcher.patch.annotations.DependsOn @@ -16,7 +15,6 @@ import app.revanced.patches.youtube.layout.theme.resource.ThemeResourcePatch @Description("Applies a custom theme.") @DependsOn([LithoColorHookPatch::class, SeekbarColorBytecodePatch::class, ThemeResourcePatch::class]) @ThemeCompatibility -@Version("0.0.1") class ThemeBytecodePatch : BytecodePatch() { override fun execute(context: BytecodeContext): PatchResult { diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/autorepeat/patch/AutoRepeatPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/autorepeat/patch/AutoRepeatPatch.kt index 372156ca3..42c2df571 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/autorepeat/patch/AutoRepeatPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/autorepeat/patch/AutoRepeatPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.misc.autorepeat.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.extensions.InstructionExtensions.removeInstruction @@ -26,7 +25,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @Name("Always autorepeat") @Description("Always repeats the playing video again.") @AutoRepeatCompatibility -@Version("0.0.1") class AutoRepeatPatch : BytecodePatch( listOf( AutoRepeatParentFingerprint @@ -50,7 +48,7 @@ class AutoRepeatPatch : BytecodePatch( val playMethod = parentResult.mutableMethod AutoRepeatFingerprint.resolve(context, parentResult.classDef) //String is: Laamp;->E()V - val methodToCall = playMethod.definingClass + "->" + playMethod.name + "()V"; + val methodToCall = playMethod.definingClass + "->" + playMethod.name + "()V" //This is the method we search for val result = AutoRepeatFingerprint.result diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/debugging/patch/DebuggingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/debugging/patch/DebuggingPatch.kt index 76cc5813d..8993ae107 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/debugging/patch/DebuggingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/debugging/patch/DebuggingPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.misc.debugging.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess @@ -20,7 +19,6 @@ import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch @DependsOn([IntegrationsPatch::class, SettingsPatch::class]) @Description("Adds debugging options.") @DebuggingCompatibility -@Version("0.0.2") class DebuggingPatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { SettingsPatch.PreferenceScreen.MISC.addPreferences( diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/fix/backtoexitgesture/patch/FixBackToExitGesturePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/fix/backtoexitgesture/patch/FixBackToExitGesturePatch.kt index fa6d5eeb5..152f9853e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/fix/backtoexitgesture/patch/FixBackToExitGesturePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/fix/backtoexitgesture/patch/FixBackToExitGesturePatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.misc.fix.backtoexitgesture.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint @@ -19,7 +18,6 @@ import app.revanced.patches.youtube.misc.fix.backtoexitgesture.fingerprints.Recy @Description("Fixes the swipe back to exit gesture.") @FixBackToExitGestureCompatibility -@Version("0.0.1") class FixBackToExitGesturePatch : BytecodePatch( listOf( RecyclerViewTopScrollingParentFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/patch/ClientSpoofPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/patch/ClientSpoofPatch.kt index 2dbc58f46..6e1e35954 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/patch/ClientSpoofPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/patch/ClientSpoofPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.misc.fix.playback.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -21,7 +20,6 @@ import org.jf.dexlib2.iface.instruction.FiveRegisterInstruction @Description("Spoofs a patched client to allow playback.") @ClientSpoofCompatibility @DependsOn([SpoofSignatureVerificationPatch::class]) -@Version("0.0.1") class ClientSpoofPatch : BytecodePatch( listOf(UserAgentHeaderBuilderFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/patch/SpoofSignatureVerificationPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/patch/SpoofSignatureVerificationPatch.kt index 00b41556f..f06edc381 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/patch/SpoofSignatureVerificationPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/patch/SpoofSignatureVerificationPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.misc.fix.playback.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -27,7 +26,6 @@ import org.jf.dexlib2.iface.instruction.ReferenceInstruction IntegrationsPatch::class, PlayerTypeHookPatch::class ]) -@Version("0.0.1") class SpoofSignatureVerificationPatch : BytecodePatch( listOf( ProtobufParameterBuilderFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/links/open/patch/OpenLinksExternallyPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/links/open/patch/OpenLinksExternallyPatch.kt index c8679ec20..bc5199173 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/links/open/patch/OpenLinksExternallyPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/links/open/patch/OpenLinksExternallyPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.misc.links.open.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -23,7 +22,6 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction21c @Name("Open links externally") @Description("Open links outside of the app directly in your browser.") @OpenLinksExternallyCompatibility -@Version("0.0.1") class OpenLinksExternallyPatch : BytecodePatch( listOf( GetCustomTabPackageNameFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/litho/filter/patch/LithoFilterPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/litho/filter/patch/LithoFilterPatch.kt index 026c03f73..6ad8cfffb 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/litho/filter/patch/LithoFilterPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/litho/filter/patch/LithoFilterPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.misc.litho.filter.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -31,7 +30,6 @@ import java.io.Closeable @DependsOn([IntegrationsPatch::class]) @Description("Hooks the method which parses the bytes into a ComponentContext to filter components.") -@Version("0.0.1") class LithoFilterPatch : BytecodePatch( listOf(ComponentContextParserFingerprint, LithoFilterFingerprint, ProtobufBufferReferenceFingerprint) ), Closeable { diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/bytecode/MicroGBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/bytecode/MicroGBytecodePatch.kt index 4252652ff..0833b12a4 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/bytecode/MicroGBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/bytecode/MicroGBytecodePatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.misc.microg.patch.bytecode import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult @@ -30,7 +29,6 @@ import app.revanced.util.microg.MicroGBytecodeHelper @Name("Vanced MicroG support") @Description("Allows YouTube ReVanced to run without root and under a different package name with Vanced MicroG.") @MicroGPatchCompatibility -@Version("0.0.1") class MicroGBytecodePatch : BytecodePatch( listOf( ServiceCheckFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/minimizedplayback/patch/MinimizedPlaybackPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/minimizedplayback/patch/MinimizedPlaybackPatch.kt index 5f71f7712..d9c8b8ef8 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/minimizedplayback/patch/MinimizedPlaybackPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/minimizedplayback/patch/MinimizedPlaybackPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.misc.minimizedplayback.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstruction @@ -33,7 +32,6 @@ import org.jf.dexlib2.iface.reference.MethodReference @Description("Enables minimized and background playback.") @DependsOn([IntegrationsPatch::class, PlayerTypeHookPatch::class, SettingsPatch::class]) @MinimizedPlaybackCompatibility -@Version("0.0.1") class MinimizedPlaybackPatch : BytecodePatch( listOf( MinimizedPlaybackManagerFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/playercontrols/bytecode/patch/PlayerControlsBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/playercontrols/bytecode/patch/PlayerControlsBytecodePatch.kt index 39153983e..2658d4502 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/playercontrols/bytecode/patch/PlayerControlsBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/playercontrols/bytecode/patch/PlayerControlsBytecodePatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.misc.playercontrols.bytecode.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.fingerprint.method.impl.MethodFingerprintResult @@ -20,7 +19,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @DependsOn([BottomControlsResourcePatch::class]) @Description("Manages the code for the player controls of the YouTube player.") @PlayerControlsCompatibility -@Version("0.0.1") class PlayerControlsBytecodePatch : BytecodePatch( listOf(PlayerControlsVisibilityFingerprint, BottomControlsInflateFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/playeroverlay/patch/PlayerOverlaysHookPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/playeroverlay/patch/PlayerOverlaysHookPatch.kt index f1c4922a0..f78b879f1 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/playeroverlay/patch/PlayerOverlaysHookPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/playeroverlay/patch/PlayerOverlaysHookPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.misc.playeroverlay.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.patch.BytecodePatch @@ -16,7 +15,6 @@ import app.revanced.patches.youtube.misc.playeroverlay.fingerprint.PlayerOverlay @Name("Player overlays hook") @Description("Hook for adding custom overlays to the video player.") @PlayerOverlaysHookCompatibility -@Version("0.0.1") @DependsOn([IntegrationsPatch::class]) class PlayerOverlaysHookPatch : BytecodePatch( listOf( diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/playertype/patch/PlayerTypeHookPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/playertype/patch/PlayerTypeHookPatch.kt index c91514fd5..ddf02cbdf 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/playertype/patch/PlayerTypeHookPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/playertype/patch/PlayerTypeHookPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.misc.playertype.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -21,7 +20,6 @@ import org.jf.dexlib2.iface.instruction.ReferenceInstruction @Name("Player type hook") @Description("Hook to get the current player type and video playback state.") @PlayerTypeHookCompatibility -@Version("0.0.1") @DependsOn([IntegrationsPatch::class]) class PlayerTypeHookPatch : BytecodePatch( listOf(PlayerTypeFingerprint, VideoStateFingerprint) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/settings/bytecode/patch/SettingsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/settings/bytecode/patch/SettingsPatch.kt index 04286dd41..9bc4f4648 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/settings/bytecode/patch/SettingsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/settings/bytecode/patch/SettingsPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.misc.settings.bytecode.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -24,10 +23,9 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction import org.jf.dexlib2.util.MethodUtil import java.io.Closeable -@DependsOn([IntegrationsPatch::class, SettingsResourcePatch::class, ]) +@DependsOn([IntegrationsPatch::class, SettingsResourcePatch::class]) @Name("Settings") @Description("Adds settings for ReVanced to YouTube.") -@Version("0.0.1") class SettingsPatch : BytecodePatch( listOf(LicenseActivityFingerprint, SetThemeFingerprint) ), Closeable { diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/zoomhaptics/patch/ZoomHapticsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/zoomhaptics/patch/ZoomHapticsPatch.kt index df9181763..719aa0013 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/zoomhaptics/patch/ZoomHapticsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/zoomhaptics/patch/ZoomHapticsPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.misc.zoomhaptics.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -23,7 +22,6 @@ import app.revanced.patches.youtube.misc.zoomhaptics.fingerprints.ZoomHapticsFin @Description("Disables haptics when zooming.") @DependsOn([SettingsPatch::class]) @ZoomHapticsCompatibility -@Version("0.0.1") class ZoomHapticsPatch : BytecodePatch( listOf(ZoomHapticsFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/hdrbrightness/patch/HDRBrightnessPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/hdrbrightness/patch/HDRBrightnessPatch.kt index 95163dfcc..69de86968 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/hdrbrightness/patch/HDRBrightnessPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/hdrbrightness/patch/HDRBrightnessPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.video.hdrbrightness.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch @@ -24,7 +23,6 @@ import org.jf.dexlib2.iface.reference.FieldReference @Name("HDR auto brightness") @Description("Makes the brightness of HDR videos follow the system default.") @HDRBrightnessCompatibility -@Version("0.0.2") @DependsOn([IntegrationsPatch::class, SettingsPatch::class]) class HDRBrightnessPatch : BytecodePatch( listOf(HDRBrightnessFingerprint) diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/information/patch/VideoInformationPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/information/patch/VideoInformationPatch.kt index fad68dea4..3b3a3dcae 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/information/patch/VideoInformationPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/information/patch/VideoInformationPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.video.information.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.toMethodWalker import app.revanced.patcher.extensions.InstructionExtensions.addInstruction @@ -36,7 +35,6 @@ import org.jf.dexlib2.util.MethodUtil @Name("Video information") @Description("Hooks YouTube to get information about the current playing video.") @VideoInformationCompatibility -@Version("0.0.1") @DependsOn([IntegrationsPatch::class, VideoIdPatch::class]) class VideoInformationPatch : BytecodePatch( listOf( diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/quality/patch/RememberVideoQualityPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/quality/patch/RememberVideoQualityPatch.kt index be50e29b1..6cf2e8979 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/quality/patch/RememberVideoQualityPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/quality/patch/RememberVideoQualityPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.video.quality.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -36,7 +35,6 @@ import org.jf.dexlib2.iface.reference.FieldReference @Name("Remember video quality") @Description("Adds the ability to remember the video quality you chose in the video quality flyout.") @RememberVideoQualityCompatibility -@Version("0.0.1") class RememberVideoQualityPatch : BytecodePatch( listOf( VideoQualitySetterFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/speed/PlaybackSpeed.kt b/src/main/kotlin/app/revanced/patches/youtube/video/speed/PlaybackSpeed.kt index 33d6376d8..5eb3a30a7 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/speed/PlaybackSpeed.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/speed/PlaybackSpeed.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.video.speed import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult @@ -17,7 +16,6 @@ import app.revanced.patches.youtube.video.speed.remember.patch.RememberPlaybackS @Description("Adds custom playback speeds and ability to remember the playback speed you chose in the video playback speed flyout.") @DependsOn([CustomPlaybackSpeedPatch::class, RememberPlaybackSpeedPatch::class]) @PlaybackSpeedCompatibility -@Version("0.0.1") class PlaybackSpeed : BytecodePatch() { override fun execute(context: BytecodeContext): PatchResult { return PatchResultSuccess() // All patches this patch depends on succeed. diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/speed/custom/patch/CustomPlaybackSpeedPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/speed/custom/patch/CustomPlaybackSpeedPatch.kt index 782a61b60..f3c08a83a 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/speed/custom/patch/CustomPlaybackSpeedPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/speed/custom/patch/CustomPlaybackSpeedPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.video.speed.custom.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.addInstructions @@ -34,7 +33,6 @@ import org.jf.dexlib2.immutable.ImmutableField @Name("Custom playback speed") @Description("Adds custom playback speed options.") @DependsOn([IntegrationsPatch::class, LithoFilterPatch::class, SettingsPatch::class, BottomSheetHookPatch::class]) -@Version("0.0.1") class CustomPlaybackSpeedPatch : BytecodePatch( listOf( SpeedArrayGeneratorFingerprint, diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/speed/remember/patch/RememberPlaybackSpeedPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/speed/remember/patch/RememberPlaybackSpeedPatch.kt index 67a211d60..620e74399 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/speed/remember/patch/RememberPlaybackSpeedPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/speed/remember/patch/RememberPlaybackSpeedPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.video.speed.remember.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -26,7 +25,6 @@ import org.jf.dexlib2.iface.instruction.ReferenceInstruction @Name("Remember playback speed") @Description("Adds the ability to remember the playback speed you chose in the playback speed flyout.") @DependsOn([IntegrationsPatch::class, SettingsPatch::class, VideoInformationPatch::class, CustomPlaybackSpeedPatch::class]) -@Version("0.0.1") class RememberPlaybackSpeedPatch : BytecodePatch( listOf( InitializePlaybackSpeedValuesFingerprint diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/videoid/patch/VideoIdPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/videoid/patch/VideoIdPatch.kt index 840c2ef90..8f7b19024 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/videoid/patch/VideoIdPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/videoid/patch/VideoIdPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtube.video.videoid.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -21,7 +20,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Name("Video id hook") @Description("Hooks to detect when the video id changes") @VideoIdCompatibility -@Version("0.0.1") @DependsOn([IntegrationsPatch::class]) class VideoIdPatch : BytecodePatch( listOf(VideoIdFingerprint, VideoIdFingerprintBackgroundPlay) diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/videoqualitymenu/patch/OldVideoQualityMenuPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/videoqualitymenu/patch/OldVideoQualityMenuPatch.kt index 86e3ef92b..ed50f07d2 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/videoqualitymenu/patch/OldVideoQualityMenuPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/videoqualitymenu/patch/OldVideoQualityMenuPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.youtube.video.videoqualitymenu.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -28,7 +27,6 @@ import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Name("Old video quality menu") @Description("Shows the old video quality with the advanced video quality options instead of the new one.") @OldVideoQualityMenuCompatibility -@Version("0.0.1") class OldVideoQualityMenuPatch : BytecodePatch( listOf(VideoQualityMenuViewInflateFingerprint) ) { diff --git a/src/main/kotlin/app/revanced/patches/youtubevanced/ad/general/fingerprints/ContainsAdFingerprint.kt b/src/main/kotlin/app/revanced/patches/youtubevanced/ad/general/fingerprints/ContainsAdFingerprint.kt index 0b0c1a9b5..3d77a1447 100644 --- a/src/main/kotlin/app/revanced/patches/youtubevanced/ad/general/fingerprints/ContainsAdFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/youtubevanced/ad/general/fingerprints/ContainsAdFingerprint.kt @@ -21,5 +21,4 @@ object ContainsAdFingerprint:MethodFingerprint( customFingerprint = { methodDef, _ -> methodDef.name == "containsAd" && methodDef.definingClass.endsWith("LithoAdRemoval;") } -) { -} \ No newline at end of file +) \ No newline at end of file diff --git a/src/main/kotlin/app/revanced/patches/youtubevanced/ad/general/patch/HideAdsPatch.kt b/src/main/kotlin/app/revanced/patches/youtubevanced/ad/general/patch/HideAdsPatch.kt index 03c7f0158..439a44a2f 100644 --- a/src/main/kotlin/app/revanced/patches/youtubevanced/ad/general/patch/HideAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtubevanced/ad/general/patch/HideAdsPatch.kt @@ -3,7 +3,6 @@ package app.revanced.patches.youtubevanced.ad.general.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.extensions.InstructionExtensions.getInstruction @@ -22,7 +21,6 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction21c @Description("Removes general ads.") @DependsOn([VerticalScrollPatch::class]) @HideAdsCompatibility -@Version("0.0.1") class HideAdsPatch : BytecodePatch( listOf( ContainsAdFingerprint diff --git a/src/main/kotlin/app/revanced/patches/yuka/misc/unlockpremium/patch/UnlockPremiunPatch.kt b/src/main/kotlin/app/revanced/patches/yuka/misc/unlockpremium/patch/UnlockPremiunPatch.kt index 1dc17a41b..e409dd081 100644 --- a/src/main/kotlin/app/revanced/patches/yuka/misc/unlockpremium/patch/UnlockPremiunPatch.kt +++ b/src/main/kotlin/app/revanced/patches/yuka/misc/unlockpremium/patch/UnlockPremiunPatch.kt @@ -2,7 +2,6 @@ package app.revanced.patches.yuka.misc.unlockpremium.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint.Companion.resolve @@ -18,7 +17,6 @@ import app.revanced.patches.yuka.misc.unlockpremium.fingerprints.YukaUserConstru @Name("Unlock premium") @Description("Unlocks premium features.") @UnlockPremiumCompatibility -@Version("0.0.1") class UnlockPremiunPatch : BytecodePatch( listOf( YukaUserConstructorFingerprint