From cf9f959923076c10a7f0a29f6ba277f5a055ec07 Mon Sep 17 00:00:00 2001 From: ILoveOpenSourceApplications <117499019+ILoveOpenSourceApplications@users.noreply.github.com> Date: Thu, 6 Mar 2025 23:54:54 +0530 Subject: [PATCH] feat(Infinity for Reddit): Add support for package name on IzzyOnDroid (#4554) --- .../customclients/infinityforreddit/api/SpoofClientPatch.kt | 6 +++++- .../subscription/UnlockSubscriptionPatch.kt | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/infinityforreddit/api/SpoofClientPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/infinityforreddit/api/SpoofClientPatch.kt index d23826d91..b195b49fb 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/infinityforreddit/api/SpoofClientPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/infinityforreddit/api/SpoofClientPatch.kt @@ -8,7 +8,11 @@ import com.android.tools.smali.dexlib2.immutable.ImmutableMethod import com.android.tools.smali.dexlib2.immutable.ImmutableMethodImplementation val spoofClientPatch = spoofClientPatch(redirectUri = "infinity://localhost") { clientIdOption -> - compatibleWith("ml.docilealligator.infinityforreddit", "ml.docilealligator.infinityforreddit.plus") + compatibleWith( + "ml.docilealligator.infinityforreddit", + "ml.docilealligator.infinityforreddit.plus", + "ml.docilealligator.infinityforreddit.patreon" + ) val clientId by clientIdOption diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/infinityforreddit/subscription/UnlockSubscriptionPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/infinityforreddit/subscription/UnlockSubscriptionPatch.kt index 98fbd89f8..ba39c29a5 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/infinityforreddit/subscription/UnlockSubscriptionPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/infinityforreddit/subscription/UnlockSubscriptionPatch.kt @@ -11,7 +11,11 @@ val unlockSubscriptionPatch = bytecodePatch( ) { dependsOn(spoofClientPatch) - compatibleWith("ml.docilealligator.infinityforreddit", "ml.docilealligator.infinityforreddit.plus") + compatibleWith( + "ml.docilealligator.infinityforreddit", + "ml.docilealligator.infinityforreddit.plus", + "ml.docilealligator.infinityforreddit.patreon" + ) execute { setOf(