From 1afc5355e2aba3fd4d984e447475cc0ba6185722 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Fri, 30 Dec 2022 05:14:30 +0100 Subject: [PATCH] refactor(tasker/unlock-trial): rename patch to `unlock-trial` --- .../unlock/annotations/UnlockTrialCompatibility.kt} | 4 ++-- .../unlock/fingerprints/CheckLicenseFingerprint.kt | 2 +- .../unlock/patch/UnlockLicensePatch.kt | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) rename src/main/kotlin/app/revanced/patches/tasker/{license/unlock/annotations/UnlockLicenseCompatibility.kt => trial/unlock/annotations/UnlockTrialCompatibility.kt} (66%) rename src/main/kotlin/app/revanced/patches/tasker/{license => trial}/unlock/fingerprints/CheckLicenseFingerprint.kt (72%) rename src/main/kotlin/app/revanced/patches/tasker/{license => trial}/unlock/patch/UnlockLicensePatch.kt (77%) diff --git a/src/main/kotlin/app/revanced/patches/tasker/license/unlock/annotations/UnlockLicenseCompatibility.kt b/src/main/kotlin/app/revanced/patches/tasker/trial/unlock/annotations/UnlockTrialCompatibility.kt similarity index 66% rename from src/main/kotlin/app/revanced/patches/tasker/license/unlock/annotations/UnlockLicenseCompatibility.kt rename to src/main/kotlin/app/revanced/patches/tasker/trial/unlock/annotations/UnlockTrialCompatibility.kt index fd7439cbd..0189b8734 100644 --- a/src/main/kotlin/app/revanced/patches/tasker/license/unlock/annotations/UnlockLicenseCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/tasker/trial/unlock/annotations/UnlockTrialCompatibility.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.tasker.license.unlock.annotations +package app.revanced.patches.tasker.trial.unlock.annotations import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Package @@ -6,4 +6,4 @@ import app.revanced.patcher.annotation.Package @Compatibility([Package("net.dinglisch.android.taskerm")]) @Target(AnnotationTarget.CLASS) @Retention(AnnotationRetention.RUNTIME) -internal annotation class UnlockLicenseCompatibility +internal annotation class UnlockTrialCompatibility diff --git a/src/main/kotlin/app/revanced/patches/tasker/license/unlock/fingerprints/CheckLicenseFingerprint.kt b/src/main/kotlin/app/revanced/patches/tasker/trial/unlock/fingerprints/CheckLicenseFingerprint.kt similarity index 72% rename from src/main/kotlin/app/revanced/patches/tasker/license/unlock/fingerprints/CheckLicenseFingerprint.kt rename to src/main/kotlin/app/revanced/patches/tasker/trial/unlock/fingerprints/CheckLicenseFingerprint.kt index 737ef26a7..d02ce9261 100644 --- a/src/main/kotlin/app/revanced/patches/tasker/license/unlock/fingerprints/CheckLicenseFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/tasker/trial/unlock/fingerprints/CheckLicenseFingerprint.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.tasker.license.unlock.fingerprints +package app.revanced.patches.tasker.trial.unlock.fingerprints import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint diff --git a/src/main/kotlin/app/revanced/patches/tasker/license/unlock/patch/UnlockLicensePatch.kt b/src/main/kotlin/app/revanced/patches/tasker/trial/unlock/patch/UnlockLicensePatch.kt similarity index 77% rename from src/main/kotlin/app/revanced/patches/tasker/license/unlock/patch/UnlockLicensePatch.kt rename to src/main/kotlin/app/revanced/patches/tasker/trial/unlock/patch/UnlockLicensePatch.kt index 58e678ddd..9d644faa0 100644 --- a/src/main/kotlin/app/revanced/patches/tasker/license/unlock/patch/UnlockLicensePatch.kt +++ b/src/main/kotlin/app/revanced/patches/tasker/trial/unlock/patch/UnlockLicensePatch.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.tasker.license.unlock.patch +package app.revanced.patches.tasker.trial.unlock.patch import app.revanced.extensions.toErrorResult import app.revanced.patcher.annotation.Description @@ -9,13 +9,13 @@ import app.revanced.patcher.extensions.addInstruction import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.Patch -import app.revanced.patches.tasker.license.unlock.annotations.UnlockLicenseCompatibility -import app.revanced.patches.tasker.license.unlock.fingerprints.CheckLicenseFingerprint +import app.revanced.patches.tasker.trial.unlock.annotations.UnlockTrialCompatibility +import app.revanced.patches.tasker.trial.unlock.fingerprints.CheckLicenseFingerprint @Patch -@Name("unlock-license") +@Name("unlock-trial") @Description("Unlocks the trial version.") -@UnlockLicenseCompatibility +@UnlockTrialCompatibility @Version("0.0.1") class UnlockLicensePatch : BytecodePatch( listOf(