fix: incorrect compatibilty attribute (#296)

This commit is contained in:
Itroublve 2022-08-04 21:53:29 +02:00 committed by GitHub
parent a0e777bd77
commit 0ab3e97241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,26 +1,24 @@
package app.revanced.patches.warnwetter.misc.promocode.fingerprints package app.revanced.patches.warnwetter.misc.promocode.fingerprints
import app.revanced.patcher.annotation.Name import app.revanced.patcher.annotation.Name
import app.revanced.patcher.annotation.Version import app.revanced.patcher.annotation.Version
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
import app.revanced.patcher.fingerprint.method.annotation.MatchingMethod import app.revanced.patcher.fingerprint.method.annotation.MatchingMethod
import app.revanced.patches.youtube.layout.createbutton.annotations.CreateButtonCompatibility import app.revanced.patches.warnwetter.misc.promocode.annotations.PromoCodeUnlockCompatibility
import org.jf.dexlib2.AccessFlags
import org.jf.dexlib2.Opcode @Name("promo-code-unlock-fingerprint")
@MatchingMethod(
@Name("promo-code-unlock-fingerprint") "Lde/dwd/warnapp/model/PromoTokenVerification;", "isValid"
@MatchingMethod( )
"Lde/dwd/warnapp/model/PromoTokenVerification;", "isValid" @PromoCodeUnlockCompatibility
) @Version("0.0.1")
@CreateButtonCompatibility object PromoCodeUnlockFingerprint : MethodFingerprint(
@Version("0.0.1") null,
object PromoCodeUnlockFingerprint : MethodFingerprint( null,
null, null,
null, null,
null, null,
null, { methodDef ->
null, methodDef.definingClass.endsWith("PromoTokenVerification;") && methodDef.name == "isValid"
{ methodDef -> }
methodDef.definingClass.endsWith("PromoTokenVerification;") && methodDef.name == "isValid"
}
) )