Skip to content

Commit 673609c

Browse files
fix(X / Twitter): Remove non functional and obsolete patch Open links with app chooser (#6033)
1 parent 5f1a485 commit 673609c

File tree

6 files changed

+7
-12
lines changed

6 files changed

+7
-12
lines changed

extensions/twitter/src/main/java/app/revanced/twitter/patches/links/OpenLinksWithAppChooserPatch.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import android.content.Intent;
55
import android.util.Log;
66

7+
@Deprecated(forRemoval = true)
78
public final class OpenLinksWithAppChooserPatch {
89
public static void openWithChooser(final Context context, final Intent intent) {
910
Log.d("ReVanced", "Opening intent with chooser: " + intent);

patches/src/main/kotlin/app/revanced/patches/twitter/misc/dynamiccolor/DynamicColorPatch.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ val dynamicColorPatch = resourcePatch(
1212
) {
1313
compatibleWith(
1414
"com.twitter.android"(
15-
"10.86.0-release.0",
1615
"10.60.0-release.0",
17-
"10.48.0-release.0"
16+
"10.86.0-release.0",
1817
)
1918
)
2019

patches/src/main/kotlin/app/revanced/patches/twitter/misc/hook/HookPatch.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@ fun hookPatch(
1313

1414
compatibleWith(
1515
"com.twitter.android"(
16-
// Only v10.85 uses Pairip and requires additional changes to work.
17-
"10.86.0-release.0",
18-
// Confirmed to not show reply ads. Slightly newer versions may also work.
1916
"10.60.0-release.0",
20-
"10.48.0-release.0"
17+
"10.86.0-release.0",
2118
)
2219
)
2320

patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/ChangeLinkSharingDomainPatch.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ val changeLinkSharingDomainPatch = bytecodePatch(
3939

4040
compatibleWith(
4141
"com.twitter.android"(
42-
"10.86.0-release.0",
4342
"10.60.0-release.0",
44-
"10.48.0-release.0"
43+
"10.86.0-release.0",
4544
)
4645
)
4746

patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/OpenLinksWithAppChooserPatch.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
44
import app.revanced.patcher.patch.bytecodePatch
55
import app.revanced.patches.twitter.misc.extension.sharedExtensionPatch
66

7+
@Deprecated("Patch is obsolete and no longer needed with the highest supported app target. " +
8+
"This patch will soon be deleted.")
79
@Suppress("unused")
810
val openLinksWithAppChooserPatch = bytecodePatch(
9-
name = "Open links with app chooser",
1011
description = "Instead of opening links directly, open them with an app chooser. " +
1112
"As a result you can select a browser to open the link with.",
12-
use = false,
1313
) {
1414
dependsOn(sharedExtensionPatch)
1515

patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/SanitizeSharingLinksPatch.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ val sanitizeSharingLinksPatch = bytecodePatch(
1010
) {
1111
compatibleWith(
1212
"com.twitter.android"(
13-
"10.86.0-release.0",
1413
"10.60.0-release.0",
15-
"10.48.0-release.0"
14+
"10.86.0-release.0",
1615
)
1716
)
1817

0 commit comments

Comments
 (0)