fix(X / Twitter): Remove non functional and obsolete patch Open links with app chooser (#6033)

This commit is contained in:
LisoUseInAIKyrios
2025-10-01 00:06:40 +04:00
committed by GitHub
parent 5f1a485e8f
commit 673609c2aa
6 changed files with 7 additions and 12 deletions

View File

@@ -4,6 +4,7 @@ import android.content.Context;
import android.content.Intent;
import android.util.Log;
@Deprecated(forRemoval = true)
public final class OpenLinksWithAppChooserPatch {
public static void openWithChooser(final Context context, final Intent intent) {
Log.d("ReVanced", "Opening intent with chooser: " + intent);

View File

@@ -12,9 +12,8 @@ val dynamicColorPatch = resourcePatch(
) {
compatibleWith(
"com.twitter.android"(
"10.86.0-release.0",
"10.60.0-release.0",
"10.48.0-release.0"
"10.86.0-release.0",
)
)

View File

@@ -13,11 +13,8 @@ fun hookPatch(
compatibleWith(
"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.48.0-release.0"
"10.86.0-release.0",
)
)

View File

@@ -39,9 +39,8 @@ val changeLinkSharingDomainPatch = bytecodePatch(
compatibleWith(
"com.twitter.android"(
"10.86.0-release.0",
"10.60.0-release.0",
"10.48.0-release.0"
"10.86.0-release.0",
)
)

View File

@@ -4,12 +4,12 @@ import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
import app.revanced.patcher.patch.bytecodePatch
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")
val openLinksWithAppChooserPatch = bytecodePatch(
name = "Open links with 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.",
use = false,
) {
dependsOn(sharedExtensionPatch)

View File

@@ -10,9 +10,8 @@ val sanitizeSharingLinksPatch = bytecodePatch(
) {
compatibleWith(
"com.twitter.android"(
"10.86.0-release.0",
"10.60.0-release.0",
"10.48.0-release.0"
"10.86.0-release.0",
)
)