mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-04-30 06:34:28 +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",
|
name = "Dynamic color",
|
||||||
description = "Replaces the default X (Formerly Twitter) Blue with the user's Material You palette.",
|
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 {
|
execute {
|
||||||
val resDirectory = get("res")
|
val resDirectory = get("res")
|
||||||
|
@ -11,7 +11,15 @@ fun hookPatch(
|
|||||||
) = bytecodePatch(name) {
|
) = bytecodePatch(name) {
|
||||||
dependsOn(jsonHookPatch)
|
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 {
|
execute {
|
||||||
addJsonHook(JsonHook(hookClassDescriptor))
|
addJsonHook(JsonHook(hookClassDescriptor))
|
||||||
|
@ -37,7 +37,13 @@ val changeLinkSharingDomainPatch = bytecodePatch(
|
|||||||
sharedExtensionPatch,
|
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(
|
val domainName by stringOption(
|
||||||
key = "domainName",
|
key = "domainName",
|
||||||
|
@ -8,7 +8,13 @@ val sanitizeSharingLinksPatch = bytecodePatch(
|
|||||||
name = "Sanitize sharing links",
|
name = "Sanitize sharing links",
|
||||||
description = "Removes the tracking query parameters from links before they are shared.",
|
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 {
|
execute {
|
||||||
sanitizeSharingLinksFingerprint.method.addInstructions(
|
sanitizeSharingLinksFingerprint.method.addInstructions(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user