From 7d4294f691e1e2e8a2679e2504a9fd5dc7e05201 Mon Sep 17 00:00:00 2001 From: EvadeMaster <93124920+EvadeMaster@users.noreply.github.com> Date: Sun, 12 Mar 2023 19:30:52 +0700 Subject: [PATCH] feat(twitch): constraint compatibility to `14.6.1` (#1736) --- .../ad/audio/annotations/AudioAdsCompatibility.kt | 15 ++++++++++++++- .../annotations/EmbeddedAdsCompatibility.kt | 15 ++++++++++++++- .../ad/video/annotations/VideoAdsCompatibility.kt | 15 ++++++++++++++- .../debug/annotations/DebugModeCompatibility.kt | 2 +- .../annotations/IntegrationsCompatibility.kt | 2 +- .../settings/annotations/SettingsCompatibility.kt | 2 +- 6 files changed, 45 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/twitch/ad/audio/annotations/AudioAdsCompatibility.kt b/src/main/kotlin/app/revanced/patches/twitch/ad/audio/annotations/AudioAdsCompatibility.kt index e65cd1dcd..042c4c1d5 100644 --- a/src/main/kotlin/app/revanced/patches/twitch/ad/audio/annotations/AudioAdsCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/twitch/ad/audio/annotations/AudioAdsCompatibility.kt @@ -3,7 +3,20 @@ package app.revanced.patches.twitch.ad.audio.annotations import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Package -@Compatibility([Package("tv.twitch.android.app")]) +@Compatibility( + [ + Package( + "tv.twitch.android.app", arrayOf( + "14.3.3", + "14.4.0", + "14.5.0", + "14.5.2", + "14.6.0", + "14.6.1" + ) + ) + ] +) @Target(AnnotationTarget.CLASS) internal annotation class AudioAdsCompatibility diff --git a/src/main/kotlin/app/revanced/patches/twitch/ad/embedded/annotations/EmbeddedAdsCompatibility.kt b/src/main/kotlin/app/revanced/patches/twitch/ad/embedded/annotations/EmbeddedAdsCompatibility.kt index f0f905a7a..6f86e6411 100644 --- a/src/main/kotlin/app/revanced/patches/twitch/ad/embedded/annotations/EmbeddedAdsCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/twitch/ad/embedded/annotations/EmbeddedAdsCompatibility.kt @@ -3,7 +3,20 @@ package app.revanced.patches.twitch.ad.embedded.annotations import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Package -@Compatibility([Package("tv.twitch.android.app")]) +@Compatibility( + [ + Package( + "tv.twitch.android.app", arrayOf( + "14.3.3", + "14.4.0", + "14.5.0", + "14.5.2", + "14.6.0", + "14.6.1" + ) + ) + ] +) @Target(AnnotationTarget.CLASS) internal annotation class EmbeddedAdsCompatibility diff --git a/src/main/kotlin/app/revanced/patches/twitch/ad/video/annotations/VideoAdsCompatibility.kt b/src/main/kotlin/app/revanced/patches/twitch/ad/video/annotations/VideoAdsCompatibility.kt index dcb60c80b..8bda487db 100644 --- a/src/main/kotlin/app/revanced/patches/twitch/ad/video/annotations/VideoAdsCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/twitch/ad/video/annotations/VideoAdsCompatibility.kt @@ -3,7 +3,20 @@ package app.revanced.patches.twitch.ad.video.annotations import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Package -@Compatibility([Package("tv.twitch.android.app")]) +@Compatibility( + [ + Package( + "tv.twitch.android.app", arrayOf( + "14.3.3", + "14.4.0", + "14.5.0", + "14.5.2", + "14.6.0", + "14.6.1" + ) + ) + ] +) @Target(AnnotationTarget.CLASS) internal annotation class VideoAdsCompatibility diff --git a/src/main/kotlin/app/revanced/patches/twitch/debug/annotations/DebugModeCompatibility.kt b/src/main/kotlin/app/revanced/patches/twitch/debug/annotations/DebugModeCompatibility.kt index 078bae90d..6d0846096 100644 --- a/src/main/kotlin/app/revanced/patches/twitch/debug/annotations/DebugModeCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/twitch/debug/annotations/DebugModeCompatibility.kt @@ -3,7 +3,7 @@ package app.revanced.patches.twitch.debug.annotations import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Package -@Compatibility([Package("tv.twitch.android.app")]) +mpatibility([Package("tv.twitch.android.app")]) @Target(AnnotationTarget.CLASS) internal annotation class DebugModeCompatibility diff --git a/src/main/kotlin/app/revanced/patches/twitch/misc/integrations/annotations/IntegrationsCompatibility.kt b/src/main/kotlin/app/revanced/patches/twitch/misc/integrations/annotations/IntegrationsCompatibility.kt index 40778ece2..9acac1302 100644 --- a/src/main/kotlin/app/revanced/patches/twitch/misc/integrations/annotations/IntegrationsCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/twitch/misc/integrations/annotations/IntegrationsCompatibility.kt @@ -3,6 +3,6 @@ package app.revanced.patches.twitch.misc.integrations.annotations import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Package -@Compatibility([Package("tv.twitch.android.app")]) +mpatibility([Package("tv.twitch.android.app")]) @Target(AnnotationTarget.CLASS) internal annotation class IntegrationsCompatibility \ No newline at end of file diff --git a/src/main/kotlin/app/revanced/patches/twitch/misc/settings/annotations/SettingsCompatibility.kt b/src/main/kotlin/app/revanced/patches/twitch/misc/settings/annotations/SettingsCompatibility.kt index 2b632f8ee..f0b19241d 100644 --- a/src/main/kotlin/app/revanced/patches/twitch/misc/settings/annotations/SettingsCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/twitch/misc/settings/annotations/SettingsCompatibility.kt @@ -3,6 +3,6 @@ package app.revanced.patches.twitch.misc.settings.annotations import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Package -@Compatibility([Package("tv.twitch.android.app")]) +mpatibility([Package("tv.twitch.android.app")]) @Target(AnnotationTarget.CLASS) internal annotation class SettingsCompatibility