From d984bdc8b17dea127880b696ee1bed1503762707 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Mon, 20 Feb 2023 02:15:12 +0400 Subject: [PATCH] feat(twitter): constrain patches compatibility to working versions (#1646) --- .../ad/timeline/annotations/TimelineAdsCompatibility.kt | 6 +++++- .../layout/hideviews/annotations/HideViewsCompatibility.kt | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/twitter/ad/timeline/annotations/TimelineAdsCompatibility.kt b/src/main/kotlin/app/revanced/patches/twitter/ad/timeline/annotations/TimelineAdsCompatibility.kt index 54ce87619..80f03c3e7 100644 --- a/src/main/kotlin/app/revanced/patches/twitter/ad/timeline/annotations/TimelineAdsCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/twitter/ad/timeline/annotations/TimelineAdsCompatibility.kt @@ -3,7 +3,11 @@ package app.revanced.patches.twitter.ad.timeline.annotations import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Package -@Compatibility([Package("com.twitter.android")]) +@Compatibility( + [Package( + "com.twitter.android", arrayOf("9.65.3-release.0") + )] +) @Target(AnnotationTarget.CLASS) @Retention(AnnotationRetention.RUNTIME) internal annotation class TimelineAdsCompatibility \ No newline at end of file diff --git a/src/main/kotlin/app/revanced/patches/twitter/layout/hideviews/annotations/HideViewsCompatibility.kt b/src/main/kotlin/app/revanced/patches/twitter/layout/hideviews/annotations/HideViewsCompatibility.kt index 0a88046bb..85b9839c2 100644 --- a/src/main/kotlin/app/revanced/patches/twitter/layout/hideviews/annotations/HideViewsCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/twitter/layout/hideviews/annotations/HideViewsCompatibility.kt @@ -5,7 +5,7 @@ import app.revanced.patcher.annotation.Package @Compatibility( [Package( - "com.twitter.android", arrayOf("9.69.1-release.0") + "com.twitter.android", arrayOf("9.69.1-release.0", "9.71.0-release.0") )] ) @Target(AnnotationTarget.CLASS)