From beb8d9cbf254b4a2b2207a307934be65507dcf80 Mon Sep 17 00:00:00 2001 From: badawoll <129878899+badawoll@users.noreply.github.com> Date: Thu, 20 Apr 2023 00:33:51 +0000 Subject: [PATCH] feat(photomath/unlock-plus): bump compatibility to `8.21.1` (#1926) --- .../DisableSignatureDetectionCompatibility.kt | 30 ------------------- .../patch/SignatureDetectionPatch.kt | 2 -- .../annotations/UnlockPlusCompatibilty.kt | 26 ++++++++++++++-- 3 files changed, 24 insertions(+), 34 deletions(-) delete mode 100644 src/main/kotlin/app/revanced/patches/photomath/detection/signature/annotations/DisableSignatureDetectionCompatibility.kt diff --git a/src/main/kotlin/app/revanced/patches/photomath/detection/signature/annotations/DisableSignatureDetectionCompatibility.kt b/src/main/kotlin/app/revanced/patches/photomath/detection/signature/annotations/DisableSignatureDetectionCompatibility.kt deleted file mode 100644 index cd1eb5cc..00000000 --- a/src/main/kotlin/app/revanced/patches/photomath/detection/signature/annotations/DisableSignatureDetectionCompatibility.kt +++ /dev/null @@ -1,30 +0,0 @@ -package app.revanced.patches.photomath.detection.signature.annotations - -import app.revanced.patcher.annotation.Compatibility -import app.revanced.patcher.annotation.Package - -@Compatibility( - [Package( - "com.microblink.photomath", arrayOf( - "8.6.0", - "8.7.0", - "8.8.0", - "8.9.0", - "8.10.0", - "8.11.0", - "8.12.0", - "8.13.0", - "8.14.0", - "8.15.0", - "8.16.0", - "8.17.0", - "8.18.0", - "8.18.1", - "8.19.0", - "8.20.0", - "8.21.0", - ) - )] -) -@Target(AnnotationTarget.CLASS) -internal annotation class DisableSignatureDetectionCompatibility diff --git a/src/main/kotlin/app/revanced/patches/photomath/detection/signature/patch/SignatureDetectionPatch.kt b/src/main/kotlin/app/revanced/patches/photomath/detection/signature/patch/SignatureDetectionPatch.kt index 25d77a39..d8c5beaa 100644 --- a/src/main/kotlin/app/revanced/patches/photomath/detection/signature/patch/SignatureDetectionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/photomath/detection/signature/patch/SignatureDetectionPatch.kt @@ -9,12 +9,10 @@ import app.revanced.patcher.extensions.replaceInstruction import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess -import app.revanced.patches.photomath.detection.signature.annotations.DisableSignatureDetectionCompatibility import app.revanced.patches.photomath.detection.signature.fingerprints.CheckSignatureFingerprint import org.jf.dexlib2.iface.instruction.OneRegisterInstruction @Description("Disables detection of incorrect signature.") -@DisableSignatureDetectionCompatibility @Version("0.0.2") class SignatureDetectionPatch : BytecodePatch( listOf( diff --git a/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/annotations/UnlockPlusCompatibilty.kt b/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/annotations/UnlockPlusCompatibilty.kt index e8d50c36..29f8379d 100644 --- a/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/annotations/UnlockPlusCompatibilty.kt +++ b/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/annotations/UnlockPlusCompatibilty.kt @@ -3,6 +3,28 @@ package app.revanced.patches.photomath.misc.unlockplus.annotations import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Package -@Compatibility([Package("com.microblink.photomath")]) +@Compatibility( + [Package( + "com.microblink.photomath", arrayOf( + "8.6.0", + "8.7.0", + "8.8.0", + "8.9.0", + "8.10.0", + "8.11.0", + "8.12.0", + "8.13.0", + "8.14.0", + "8.15.0", + "8.16.0", + "8.17.0", + "8.18.0", + "8.18.1", + "8.19.0", + "8.20.0", + "8.21.0", + ) + )] +) @Target(AnnotationTarget.CLASS) -internal annotation class UnlockPlusCompatibilty \ No newline at end of file +internal annotation class UnlockPlusCompatibilty