From f1288e4bb8fb1b9f394d73fd814d97db8704b8e0 Mon Sep 17 00:00:00 2001 From: KAZI MMT <82371061+kazimmt@users.noreply.github.com> Date: Tue, 23 May 2023 01:28:51 +0600 Subject: [PATCH] feat(reddit): remove compatibility version constraints (#2226) --- .../banner/annotations/HideBannerCompatibility.kt | 13 +------------ .../general/annotations/HideAdsCompatibility.kt | 15 +-------------- .../annotations/SanitizeUrlQueryCompatibility.kt | 6 +++++- 3 files changed, 7 insertions(+), 27 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/reddit/ad/banner/annotations/HideBannerCompatibility.kt b/src/main/kotlin/app/revanced/patches/reddit/ad/banner/annotations/HideBannerCompatibility.kt index ffac6ed55..90daa6b62 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/ad/banner/annotations/HideBannerCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/ad/banner/annotations/HideBannerCompatibility.kt @@ -5,18 +5,7 @@ import app.revanced.patcher.annotation.Package @Compatibility( [Package( - "com.reddit.frontpage", arrayOf( - "2023.05.0", - "2023.06.0", - "2023.07.0", - "2023.07.1", - "2023.08.0", - "2023.09.0", - "2023.09.1", - "2023.10.0", - "2023.11.0", - "2023.12.0" - ) + "com.reddit.frontpage" )] ) @Target(AnnotationTarget.CLASS) diff --git a/src/main/kotlin/app/revanced/patches/reddit/ad/general/annotations/HideAdsCompatibility.kt b/src/main/kotlin/app/revanced/patches/reddit/ad/general/annotations/HideAdsCompatibility.kt index 64e444224..f8dbd2d66 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/ad/general/annotations/HideAdsCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/ad/general/annotations/HideAdsCompatibility.kt @@ -5,20 +5,7 @@ import app.revanced.patcher.annotation.Package @Compatibility( [Package( - "com.reddit.frontpage", arrayOf( - "2021.45.0", - "2022.43.0", - "2023.05.0", - "2023.06.0", - "2023.07.0", - "2023.07.1", - "2023.08.0", - "2023.09.0", - "2023.09.1", - "2023.10.0", - "2023.11.0", - "2023.12.0" - ) + "com.reddit.frontpage" )] ) @Target(AnnotationTarget.CLASS) diff --git a/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/annotations/SanitizeUrlQueryCompatibility.kt b/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/annotations/SanitizeUrlQueryCompatibility.kt index 2643ebe87..6ba4a8902 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/annotations/SanitizeUrlQueryCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/annotations/SanitizeUrlQueryCompatibility.kt @@ -3,6 +3,10 @@ package app.revanced.patches.reddit.misc.tracking.url.annotations import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Package -@Compatibility([Package("com.reddit.frontpage", arrayOf("2023.12.0", "2023.17.1"))]) +@Compatibility( + [Package( + "com.reddit.frontpage" + )] +) @Target(AnnotationTarget.CLASS) internal annotation class SanitizeUrlQueryCompatibility \ No newline at end of file