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,
)
compatibleWith("tv.twitch.android.app")
compatibleWith("tv.twitch.android.app"("16.9.1", "25.3.0"))
execute {
addResources("twitch", "ad.audio.audioAdsPatch")

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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