fix(Twitch): Constrain patches to last working app targets (#5373)

This commit is contained in:
LisoUseInAIKyrios
2025-08-07 21:51:52 -04:00
committed by GitHub
parent 562e005772
commit d7eb6e87a5
7 changed files with 7 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ val audioAdsPatch = bytecodePatch(
addResourcesPatch, addResourcesPatch,
) )
compatibleWith("tv.twitch.android.app") compatibleWith("tv.twitch.android.app"("16.9.1", "25.3.0"))
execute { execute {
addResources("twitch", "ad.audio.audioAdsPatch") addResources("twitch", "ad.audio.audioAdsPatch")

View File

@@ -19,7 +19,7 @@ val embeddedAdsPatch = bytecodePatch(
settingsPatch, settingsPatch,
) )
compatibleWith("tv.twitch.android.app") compatibleWith("tv.twitch.android.app"("16.9.1", "25.3.0"))
execute { execute {
addResources("twitch", "ad.embedded.embeddedAdsPatch") addResources("twitch", "ad.embedded.embeddedAdsPatch")

View File

@@ -155,7 +155,5 @@ val videoAdsPatch = bytecodePatch(
}, },
) )
compatibleWith( compatibleWith("tv.twitch.android.app"("16.9.1", "25.3.0"))
"tv.twitch.android.app",
)
} }

View File

@@ -22,7 +22,7 @@ val showDeletedMessagesPatch = bytecodePatch(
addResourcesPatch, addResourcesPatch,
) )
compatibleWith("tv.twitch.android.app") compatibleWith("tv.twitch.android.app"("16.9.1", "25.3.0"))
fun createSpoilerConditionInstructions(register: String = "v0") = """ fun createSpoilerConditionInstructions(register: String = "v0") = """
invoke-static {}, Lapp/revanced/extension/twitch/patches/ShowDeletedMessagesPatch;->shouldUseSpoiler()Z invoke-static {}, Lapp/revanced/extension/twitch/patches/ShowDeletedMessagesPatch;->shouldUseSpoiler()Z

View File

@@ -20,7 +20,7 @@ val autoClaimChannelPointsPatch = bytecodePatch(
addResourcesPatch, addResourcesPatch,
) )
compatibleWith("tv.twitch.android.app") compatibleWith("tv.twitch.android.app"("16.9.1", "25.3.0"))
execute { execute {
addResources("twitch", "chat.autoclaim.autoClaimChannelPointsPatch") addResources("twitch", "chat.autoclaim.autoClaimChannelPointsPatch")

View File

@@ -20,7 +20,7 @@ val debugModePatch = bytecodePatch(
addResourcesPatch, addResourcesPatch,
) )
compatibleWith("tv.twitch.android.app") compatibleWith("tv.twitch.android.app"("16.9.1", "25.3.0"))
execute { execute {
addResources("twitch", "debug.debugModePatch") addResources("twitch", "debug.debugModePatch")

View File

@@ -48,7 +48,7 @@ val settingsPatch = bytecodePatch(
settingsPatch(preferences = preferences), settingsPatch(preferences = preferences),
) )
compatibleWith("tv.twitch.android.app") compatibleWith("tv.twitch.android.app"("16.9.1"))
execute { execute {
addResources("twitch", "misc.settings.settingsPatch") addResources("twitch", "misc.settings.settingsPatch")