From 36a2ae886c63f1d22bb1cca9e7110af6c3f6f2d3 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 3 Aug 2022 03:07:49 +0200 Subject: [PATCH] fix: rollback to `Dependencies` annotation --- .../misc/microg/patch/resource/MicroGResourcePatch.kt | 5 ++--- .../youtube/misc/settings/bytecode/patch/SettingsPatch.kt | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/resource/MicroGResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/resource/MicroGResourcePatch.kt index ac48ad47d..a96ecacf0 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/resource/MicroGResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/microg/patch/resource/MicroGResourcePatch.kt @@ -6,7 +6,7 @@ import app.revanced.patcher.annotation.Version import app.revanced.patcher.data.impl.ResourceData import app.revanced.patcher.patch.PatchResult import app.revanced.patcher.patch.PatchResultSuccess -import app.revanced.patcher.patch.annotations.DependsOn +import app.revanced.patcher.patch.annotations.Dependencies import app.revanced.patcher.patch.impl.ResourcePatch import app.revanced.patches.youtube.misc.manifest.patch.FixLocaleConfigErrorPatch import app.revanced.patches.youtube.misc.microg.annotations.MicroGPatchCompatibility @@ -15,8 +15,7 @@ import app.revanced.patches.youtube.misc.microg.shared.Constants.REVANCED_PACKAG import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsResourcePatch @Name("microg-resource-patch") -@DependsOn(FixLocaleConfigErrorPatch::class) -@DependsOn(SettingsResourcePatch::class) +@Dependencies([FixLocaleConfigErrorPatch::class, SettingsResourcePatch::class]) @Description("Resource patch to allow YouTube ReVanced to run without root and under a different package name.") @MicroGPatchCompatibility @Version("0.0.1") diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/settings/bytecode/patch/SettingsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/settings/bytecode/patch/SettingsPatch.kt index 6dae72bba..4cc15349f 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/settings/bytecode/patch/SettingsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/settings/bytecode/patch/SettingsPatch.kt @@ -18,7 +18,7 @@ import app.revanced.patches.youtube.misc.settings.bytecode.fingerprints.ReVanced import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsResourcePatch @Patch -@Dependencies([IntegrationsPatch::class, SettingsResourcePatch::class]) +@Dependencies([IntegrationsPatch::class, SettingsResourcePatch::class, ResourceIdMappingProviderResourcePatch::class]) @Name("settings") @Description("Adds settings for ReVanced to YouTube.") @SettingsCompatibility