From f86836d6295db9eb8c59916deaa991b4d99e96be Mon Sep 17 00:00:00 2001 From: badawoll <129878899+badawoll@users.noreply.github.com> Date: Wed, 3 May 2023 08:56:28 +0000 Subject: [PATCH] feat(patch): bump compatibility (#2060) --- .../pro/annotations/UnlockProCompatibility.kt | 11 ++++++- .../annotations/UnlockPlusCompatibilty.kt | 30 ------------------- .../misc/unlockplus/patch/UnlockPlusPatch.kt | 7 +++-- 3 files changed, 14 insertions(+), 34 deletions(-) delete mode 100644 src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/annotations/UnlockPlusCompatibilty.kt diff --git a/src/main/kotlin/app/revanced/patches/memegenerator/misc/pro/annotations/UnlockProCompatibility.kt b/src/main/kotlin/app/revanced/patches/memegenerator/misc/pro/annotations/UnlockProCompatibility.kt index bf92bcca..b9321567 100644 --- a/src/main/kotlin/app/revanced/patches/memegenerator/misc/pro/annotations/UnlockProCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/memegenerator/misc/pro/annotations/UnlockProCompatibility.kt @@ -3,6 +3,15 @@ package app.revanced.patches.memegenerator.misc.pro.annotations import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Package -@Compatibility([Package("com.zombodroid.MemeGenerator", arrayOf("4.6364"))]) +@Compatibility( + [Package( + "com.zombodroid.MemeGenerator", arrayOf( + "4.6364", + "4.6370", + "4.6375", + "4.6377", + ) + )] +) @Target(AnnotationTarget.CLASS) internal annotation class UnlockProCompatibility 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 deleted file mode 100644 index 29f8379d..00000000 --- a/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/annotations/UnlockPlusCompatibilty.kt +++ /dev/null @@ -1,30 +0,0 @@ -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", 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 diff --git a/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/patch/UnlockPlusPatch.kt b/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/patch/UnlockPlusPatch.kt index eb5cb806..bacb877e 100644 --- a/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/patch/UnlockPlusPatch.kt +++ b/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/patch/UnlockPlusPatch.kt @@ -1,8 +1,10 @@ package app.revanced.patches.photomath.misc.unlockplus.patch import app.revanced.extensions.toErrorResult +import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name +import app.revanced.patcher.annotation.Package import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.extensions.addInstructions @@ -12,14 +14,13 @@ import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.patch.annotations.Patch import app.revanced.patches.photomath.detection.signature.patch.SignatureDetectionPatch -import app.revanced.patches.photomath.misc.unlockplus.annotations.UnlockPlusCompatibilty import app.revanced.patches.photomath.misc.unlockplus.fingerprints.IsPlusUnlockedFingerprint @Patch @Name("unlock-plus") @DependsOn([SignatureDetectionPatch::class]) @Description("Unlocks plus features.") -@UnlockPlusCompatibilty +@Compatibility([Package("com.microblink.photomath")]) @Version("0.0.1") class UnlockPlusPatch : BytecodePatch( listOf( @@ -40,4 +41,4 @@ class UnlockPlusPatch : BytecodePatch( return PatchResultSuccess() } -} \ No newline at end of file +}