From 0ab3e9724157c628555964273c6b65f9f48f9664 Mon Sep 17 00:00:00 2001 From: Itroublve <51215044+Itroublve@users.noreply.github.com> Date: Thu, 4 Aug 2022 21:53:29 +0200 Subject: [PATCH] fix: incorrect compatibilty attribute (#296) --- .../PromoCodeUnlockFingerprint.kt | 48 +++++++++---------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/warnwetter/misc/promocode/fingerprints/PromoCodeUnlockFingerprint.kt b/src/main/kotlin/app/revanced/patches/warnwetter/misc/promocode/fingerprints/PromoCodeUnlockFingerprint.kt index 41d980d0..c32001e8 100644 --- a/src/main/kotlin/app/revanced/patches/warnwetter/misc/promocode/fingerprints/PromoCodeUnlockFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/warnwetter/misc/promocode/fingerprints/PromoCodeUnlockFingerprint.kt @@ -1,26 +1,24 @@ -package app.revanced.patches.warnwetter.misc.promocode.fingerprints - -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version -import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint -import app.revanced.patcher.fingerprint.method.annotation.MatchingMethod -import app.revanced.patches.youtube.layout.createbutton.annotations.CreateButtonCompatibility -import org.jf.dexlib2.AccessFlags -import org.jf.dexlib2.Opcode - -@Name("promo-code-unlock-fingerprint") -@MatchingMethod( - "Lde/dwd/warnapp/model/PromoTokenVerification;", "isValid" -) -@CreateButtonCompatibility -@Version("0.0.1") -object PromoCodeUnlockFingerprint : MethodFingerprint( - null, - null, - null, - null, - null, - { methodDef -> - methodDef.definingClass.endsWith("PromoTokenVerification;") && methodDef.name == "isValid" - } +package app.revanced.patches.warnwetter.misc.promocode.fingerprints + +import app.revanced.patcher.annotation.Name +import app.revanced.patcher.annotation.Version +import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint +import app.revanced.patcher.fingerprint.method.annotation.MatchingMethod +import app.revanced.patches.warnwetter.misc.promocode.annotations.PromoCodeUnlockCompatibility + +@Name("promo-code-unlock-fingerprint") +@MatchingMethod( + "Lde/dwd/warnapp/model/PromoTokenVerification;", "isValid" +) +@PromoCodeUnlockCompatibility +@Version("0.0.1") +object PromoCodeUnlockFingerprint : MethodFingerprint( + null, + null, + null, + null, + null, + { methodDef -> + methodDef.definingClass.endsWith("PromoTokenVerification;") && methodDef.name == "isValid" + } ) \ No newline at end of file