From 61a223db59c2a71c07350d98f7c7f57c1c4fdeb4 Mon Sep 17 00:00:00 2001 From: drobotk Date: Sat, 28 Feb 2026 15:23:20 +0100 Subject: [PATCH] fix: infinity for reddit --- .../infinityforreddit/subscription/Fingerprints.kt | 5 +++-- .../customclients/sync/syncforreddit/api/Fingerprints.kt | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/infinityforreddit/subscription/Fingerprints.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/infinityforreddit/subscription/Fingerprints.kt index 0313a99321..daaa72793d 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/infinityforreddit/subscription/Fingerprints.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/infinityforreddit/subscription/Fingerprints.kt @@ -1,12 +1,13 @@ package app.revanced.patches.reddit.customclients.infinityforreddit.subscription -import app.revanced.patcher.gettingFirstMethod import app.revanced.patcher.gettingFirstMethodDeclaratively import app.revanced.patcher.invoke import app.revanced.patcher.instructions import app.revanced.patcher.patch.BytecodePatchContext -internal val BytecodePatchContext.billingClientOnServiceConnectedMethod by gettingFirstMethod("Billing service connected") +internal val BytecodePatchContext.billingClientOnServiceConnectedMethod by gettingFirstMethodDeclaratively { + instructions("Billing service connected"(String::contains)) +} internal val BytecodePatchContext.startSubscriptionActivityMethod by gettingFirstMethodDeclaratively { instructions(0x10008000L()) diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/api/Fingerprints.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/api/Fingerprints.kt index 94be56e9d3..976d062e40 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/api/Fingerprints.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/api/Fingerprints.kt @@ -2,7 +2,6 @@ package app.revanced.patches.reddit.customclients.sync.syncforreddit.api import app.revanced.patcher.ClassDefComposing import app.revanced.patcher.composingFirstMethod -import app.revanced.patcher.gettingFirstMethod import app.revanced.patcher.gettingFirstMethodDeclaratively import app.revanced.patcher.instructions import app.revanced.patcher.invoke