mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-04-29 22:24:27 +02:00
fix(X / Twitter): Constrain patches to latest compatible versions (#4683)
This commit is contained in:
parent
6b19e19332
commit
f5797289f4
@ -10,7 +10,13 @@ val dynamicColorPatch = resourcePatch(
|
||||
name = "Dynamic color",
|
||||
description = "Replaces the default X (Formerly Twitter) Blue with the user's Material You palette.",
|
||||
) {
|
||||
compatibleWith("com.twitter.android")
|
||||
compatibleWith(
|
||||
"com.twitter.android"(
|
||||
"10.84.0-release.0",
|
||||
"10.60.0-release.0",
|
||||
"10.48.0-release.0"
|
||||
)
|
||||
)
|
||||
|
||||
execute {
|
||||
val resDirectory = get("res")
|
||||
|
@ -11,7 +11,15 @@ fun hookPatch(
|
||||
) = bytecodePatch(name) {
|
||||
dependsOn(jsonHookPatch)
|
||||
|
||||
compatibleWith("com.twitter.android")
|
||||
compatibleWith(
|
||||
"com.twitter.android"(
|
||||
// 10.85+ uses Pairip and requires additional changes to work.
|
||||
"10.84.0-release.0",
|
||||
// Confirmed to not show reply ads. Slightly newer versions may also work.
|
||||
"10.60.0-release.0",
|
||||
"10.48.0-release.0"
|
||||
)
|
||||
)
|
||||
|
||||
execute {
|
||||
addJsonHook(JsonHook(hookClassDescriptor))
|
||||
|
@ -37,7 +37,13 @@ val changeLinkSharingDomainPatch = bytecodePatch(
|
||||
sharedExtensionPatch,
|
||||
)
|
||||
|
||||
compatibleWith("com.twitter.android")
|
||||
compatibleWith(
|
||||
"com.twitter.android"(
|
||||
"10.84.0-release.0",
|
||||
"10.60.0-release.0",
|
||||
"10.48.0-release.0"
|
||||
)
|
||||
)
|
||||
|
||||
val domainName by stringOption(
|
||||
key = "domainName",
|
||||
|
@ -8,7 +8,13 @@ val sanitizeSharingLinksPatch = bytecodePatch(
|
||||
name = "Sanitize sharing links",
|
||||
description = "Removes the tracking query parameters from links before they are shared.",
|
||||
) {
|
||||
compatibleWith("com.twitter.android")
|
||||
compatibleWith(
|
||||
"com.twitter.android"(
|
||||
"10.84.0-release.0",
|
||||
"10.60.0-release.0",
|
||||
"10.48.0-release.0"
|
||||
)
|
||||
)
|
||||
|
||||
execute {
|
||||
sanitizeSharingLinksFingerprint.method.addInstructions(
|
||||
|
Loading…
x
Reference in New Issue
Block a user