Skip to content

Commit d7eb6e8

Browse files
author
LisoUseInAIKyrios
authored
fix(Twitch): Constrain patches to last working app targets (#5373)
1 parent 562e005 commit d7eb6e8

File tree

7 files changed

+7
-9
lines changed

7 files changed

+7
-9
lines changed

patches/src/main/kotlin/app/revanced/patches/twitch/ad/audio/AudioAdsPatch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ val audioAdsPatch = bytecodePatch(
2121
addResourcesPatch,
2222
)
2323

24-
compatibleWith("tv.twitch.android.app")
24+
compatibleWith("tv.twitch.android.app"("16.9.1", "25.3.0"))
2525

2626
execute {
2727
addResources("twitch", "ad.audio.audioAdsPatch")

patches/src/main/kotlin/app/revanced/patches/twitch/ad/embedded/EmbeddedAdsPatch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ val embeddedAdsPatch = bytecodePatch(
1919
settingsPatch,
2020
)
2121

22-
compatibleWith("tv.twitch.android.app")
22+
compatibleWith("tv.twitch.android.app"("16.9.1", "25.3.0"))
2323

2424
execute {
2525
addResources("twitch", "ad.embedded.embeddedAdsPatch")

patches/src/main/kotlin/app/revanced/patches/twitch/ad/video/VideoAdsPatch.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,5 @@ val videoAdsPatch = bytecodePatch(
155155
},
156156
)
157157

158-
compatibleWith(
159-
"tv.twitch.android.app",
160-
)
158+
compatibleWith("tv.twitch.android.app"("16.9.1", "25.3.0"))
161159
}

patches/src/main/kotlin/app/revanced/patches/twitch/chat/antidelete/ShowDeletedMessagesPatch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ val showDeletedMessagesPatch = bytecodePatch(
2222
addResourcesPatch,
2323
)
2424

25-
compatibleWith("tv.twitch.android.app")
25+
compatibleWith("tv.twitch.android.app"("16.9.1", "25.3.0"))
2626

2727
fun createSpoilerConditionInstructions(register: String = "v0") = """
2828
invoke-static {}, Lapp/revanced/extension/twitch/patches/ShowDeletedMessagesPatch;->shouldUseSpoiler()Z

patches/src/main/kotlin/app/revanced/patches/twitch/chat/autoclaim/AutoClaimChannelPointsPatch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ val autoClaimChannelPointsPatch = bytecodePatch(
2020
addResourcesPatch,
2121
)
2222

23-
compatibleWith("tv.twitch.android.app")
23+
compatibleWith("tv.twitch.android.app"("16.9.1", "25.3.0"))
2424

2525
execute {
2626
addResources("twitch", "chat.autoclaim.autoClaimChannelPointsPatch")

patches/src/main/kotlin/app/revanced/patches/twitch/debug/DebugModePatch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ val debugModePatch = bytecodePatch(
2020
addResourcesPatch,
2121
)
2222

23-
compatibleWith("tv.twitch.android.app")
23+
compatibleWith("tv.twitch.android.app"("16.9.1", "25.3.0"))
2424

2525
execute {
2626
addResources("twitch", "debug.debugModePatch")

patches/src/main/kotlin/app/revanced/patches/twitch/misc/settings/SettingsPatch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ val settingsPatch = bytecodePatch(
4848
settingsPatch(preferences = preferences),
4949
)
5050

51-
compatibleWith("tv.twitch.android.app")
51+
compatibleWith("tv.twitch.android.app"("16.9.1"))
5252

5353
execute {
5454
addResources("twitch", "misc.settings.settingsPatch")

0 commit comments

Comments
 (0)