mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-25 11:41:04 +00:00
fix(X / Twitter): Remove non functional and obsolete patch Open links with app chooser (#6033)
This commit is contained in:
committed by
GitHub
parent
5f1a485e8f
commit
673609c2aa
@@ -4,6 +4,7 @@ import android.content.Context;
|
|||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
|
@Deprecated(forRemoval = true)
|
||||||
public final class OpenLinksWithAppChooserPatch {
|
public final class OpenLinksWithAppChooserPatch {
|
||||||
public static void openWithChooser(final Context context, final Intent intent) {
|
public static void openWithChooser(final Context context, final Intent intent) {
|
||||||
Log.d("ReVanced", "Opening intent with chooser: " + intent);
|
Log.d("ReVanced", "Opening intent with chooser: " + intent);
|
||||||
|
|||||||
@@ -12,9 +12,8 @@ val dynamicColorPatch = resourcePatch(
|
|||||||
) {
|
) {
|
||||||
compatibleWith(
|
compatibleWith(
|
||||||
"com.twitter.android"(
|
"com.twitter.android"(
|
||||||
"10.86.0-release.0",
|
|
||||||
"10.60.0-release.0",
|
"10.60.0-release.0",
|
||||||
"10.48.0-release.0"
|
"10.86.0-release.0",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -13,11 +13,8 @@ fun hookPatch(
|
|||||||
|
|
||||||
compatibleWith(
|
compatibleWith(
|
||||||
"com.twitter.android"(
|
"com.twitter.android"(
|
||||||
// Only v10.85 uses Pairip and requires additional changes to work.
|
|
||||||
"10.86.0-release.0",
|
|
||||||
// Confirmed to not show reply ads. Slightly newer versions may also work.
|
|
||||||
"10.60.0-release.0",
|
"10.60.0-release.0",
|
||||||
"10.48.0-release.0"
|
"10.86.0-release.0",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -39,9 +39,8 @@ val changeLinkSharingDomainPatch = bytecodePatch(
|
|||||||
|
|
||||||
compatibleWith(
|
compatibleWith(
|
||||||
"com.twitter.android"(
|
"com.twitter.android"(
|
||||||
"10.86.0-release.0",
|
|
||||||
"10.60.0-release.0",
|
"10.60.0-release.0",
|
||||||
"10.48.0-release.0"
|
"10.86.0-release.0",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
|
|||||||
import app.revanced.patcher.patch.bytecodePatch
|
import app.revanced.patcher.patch.bytecodePatch
|
||||||
import app.revanced.patches.twitter.misc.extension.sharedExtensionPatch
|
import app.revanced.patches.twitter.misc.extension.sharedExtensionPatch
|
||||||
|
|
||||||
|
@Deprecated("Patch is obsolete and no longer needed with the highest supported app target. " +
|
||||||
|
"This patch will soon be deleted.")
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
val openLinksWithAppChooserPatch = bytecodePatch(
|
val openLinksWithAppChooserPatch = bytecodePatch(
|
||||||
name = "Open links with app chooser",
|
|
||||||
description = "Instead of opening links directly, open them with an app chooser. " +
|
description = "Instead of opening links directly, open them with an app chooser. " +
|
||||||
"As a result you can select a browser to open the link with.",
|
"As a result you can select a browser to open the link with.",
|
||||||
use = false,
|
|
||||||
) {
|
) {
|
||||||
dependsOn(sharedExtensionPatch)
|
dependsOn(sharedExtensionPatch)
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,8 @@ val sanitizeSharingLinksPatch = bytecodePatch(
|
|||||||
) {
|
) {
|
||||||
compatibleWith(
|
compatibleWith(
|
||||||
"com.twitter.android"(
|
"com.twitter.android"(
|
||||||
"10.86.0-release.0",
|
|
||||||
"10.60.0-release.0",
|
"10.60.0-release.0",
|
||||||
"10.48.0-release.0"
|
"10.86.0-release.0",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user