From 136e1b7124e1e02e0051dd2147bf86835dd405a2 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 18 Sep 2022 07:35:59 +0200 Subject: [PATCH] refactor: move `InjectionUtils` to `utils` subpackage Signed-off-by: oSumAtrIX --- .../pivotbar/createbutton/patch/CreateButtonRemoverPatch.kt | 4 ++-- .../pivotbar/shortsbutton/patch/ShortsButtonRemoverPatch.kt | 4 ++-- .../youtube/layout/pivotbar/{ => utils}/InjectionUtils.kt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/{ => utils}/InjectionUtils.kt (95%) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/createbutton/patch/CreateButtonRemoverPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/createbutton/patch/CreateButtonRemoverPatch.kt index b37f5c514..8846be4b9 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/createbutton/patch/CreateButtonRemoverPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/createbutton/patch/CreateButtonRemoverPatch.kt @@ -12,8 +12,8 @@ import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.impl.BytecodePatch -import app.revanced.patches.youtube.layout.pivotbar.InjectionUtils.REGISTER_TEMPLATE_REPLACEMENT -import app.revanced.patches.youtube.layout.pivotbar.InjectionUtils.injectHook +import app.revanced.patches.youtube.layout.pivotbar.utils.InjectionUtils.REGISTER_TEMPLATE_REPLACEMENT +import app.revanced.patches.youtube.layout.pivotbar.utils.InjectionUtils.injectHook import app.revanced.patches.youtube.layout.pivotbar.createbutton.annotations.CreateButtonCompatibility import app.revanced.patches.youtube.layout.pivotbar.createbutton.fingerprints.PivotBarCreateButtonViewFingerprint import app.revanced.patches.youtube.layout.pivotbar.fingerprints.PivotBarFingerprint diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/shortsbutton/patch/ShortsButtonRemoverPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/shortsbutton/patch/ShortsButtonRemoverPatch.kt index caee9e8fb..45360d821 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/shortsbutton/patch/ShortsButtonRemoverPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/shortsbutton/patch/ShortsButtonRemoverPatch.kt @@ -12,8 +12,8 @@ import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.impl.BytecodePatch -import app.revanced.patches.youtube.layout.pivotbar.InjectionUtils.REGISTER_TEMPLATE_REPLACEMENT -import app.revanced.patches.youtube.layout.pivotbar.InjectionUtils.injectHook +import app.revanced.patches.youtube.layout.pivotbar.utils.InjectionUtils.REGISTER_TEMPLATE_REPLACEMENT +import app.revanced.patches.youtube.layout.pivotbar.utils.InjectionUtils.injectHook import app.revanced.patches.youtube.layout.pivotbar.fingerprints.PivotBarFingerprint import app.revanced.patches.youtube.layout.pivotbar.shortsbutton.annotations.ShortsButtonCompatibility import app.revanced.patches.youtube.layout.pivotbar.shortsbutton.fingerprints.PivotBarEnumFingerprint diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/InjectionUtils.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/utils/InjectionUtils.kt similarity index 95% rename from src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/InjectionUtils.kt rename to src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/utils/InjectionUtils.kt index 452a74d1b..8667b10d0 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/InjectionUtils.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/pivotbar/utils/InjectionUtils.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.youtube.layout.pivotbar +package app.revanced.patches.youtube.layout.pivotbar.utils import app.revanced.patcher.extensions.addInstruction import app.revanced.patcher.extensions.instruction