diff --git a/extensions/twitter/src/main/java/app/revanced/twitter/patches/links/OpenLinksWithAppChooserPatch.java b/extensions/twitter/src/main/java/app/revanced/twitter/patches/links/OpenLinksWithAppChooserPatch.java index 62220506a..3a4dff608 100644 --- a/extensions/twitter/src/main/java/app/revanced/twitter/patches/links/OpenLinksWithAppChooserPatch.java +++ b/extensions/twitter/src/main/java/app/revanced/twitter/patches/links/OpenLinksWithAppChooserPatch.java @@ -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); diff --git a/patches/src/main/kotlin/app/revanced/patches/twitter/misc/dynamiccolor/DynamicColorPatch.kt b/patches/src/main/kotlin/app/revanced/patches/twitter/misc/dynamiccolor/DynamicColorPatch.kt index 9d813b7ad..342800518 100644 --- a/patches/src/main/kotlin/app/revanced/patches/twitter/misc/dynamiccolor/DynamicColorPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/twitter/misc/dynamiccolor/DynamicColorPatch.kt @@ -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", ) ) diff --git a/patches/src/main/kotlin/app/revanced/patches/twitter/misc/hook/HookPatch.kt b/patches/src/main/kotlin/app/revanced/patches/twitter/misc/hook/HookPatch.kt index 80da4aecf..682bb4f37 100644 --- a/patches/src/main/kotlin/app/revanced/patches/twitter/misc/hook/HookPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/twitter/misc/hook/HookPatch.kt @@ -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", ) ) diff --git a/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/ChangeLinkSharingDomainPatch.kt b/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/ChangeLinkSharingDomainPatch.kt index bf3d9afd2..289a71e72 100644 --- a/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/ChangeLinkSharingDomainPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/ChangeLinkSharingDomainPatch.kt @@ -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", ) ) diff --git a/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/OpenLinksWithAppChooserPatch.kt b/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/OpenLinksWithAppChooserPatch.kt index a0fa4d0cc..268f5789f 100644 --- a/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/OpenLinksWithAppChooserPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/OpenLinksWithAppChooserPatch.kt @@ -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) diff --git a/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/SanitizeSharingLinksPatch.kt b/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/SanitizeSharingLinksPatch.kt index d84cfb2ca..24b4e127b 100644 --- a/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/SanitizeSharingLinksPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/SanitizeSharingLinksPatch.kt @@ -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", ) )