From 00323010ed7356a639e4e86916dcbae96a53f7f6 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Fri, 16 Sep 2022 02:09:19 +0200 Subject: [PATCH] feat(amoled): remove in favour of `theme` patch Signed-off-by: oSumAtrIX --- .../amoled/annotations/AmoledCompatibility.kt | 9 ------ .../layout/amoled/patch/AmoledPatch.kt | 28 ------------------- 2 files changed, 37 deletions(-) delete mode 100644 src/main/kotlin/app/revanced/patches/youtube/layout/amoled/annotations/AmoledCompatibility.kt delete mode 100644 src/main/kotlin/app/revanced/patches/youtube/layout/amoled/patch/AmoledPatch.kt diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/amoled/annotations/AmoledCompatibility.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/amoled/annotations/AmoledCompatibility.kt deleted file mode 100644 index 50f383f46..000000000 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/amoled/annotations/AmoledCompatibility.kt +++ /dev/null @@ -1,9 +0,0 @@ -package app.revanced.patches.youtube.layout.amoled.annotations - -import app.revanced.patcher.annotation.Compatibility -import app.revanced.patcher.annotation.Package - -@Compatibility([Package("com.google.android.youtube")]) -@Target(AnnotationTarget.CLASS) -@Retention(AnnotationRetention.RUNTIME) -internal annotation class AmoledCompatibility diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/amoled/patch/AmoledPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/amoled/patch/AmoledPatch.kt deleted file mode 100644 index 1e66caf7b..000000000 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/amoled/patch/AmoledPatch.kt +++ /dev/null @@ -1,28 +0,0 @@ -package app.revanced.patches.youtube.layout.amoled.patch - -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.PatchDeprecated -import app.revanced.patcher.annotation.Version -import app.revanced.patcher.data.impl.ResourceData -import app.revanced.patcher.patch.PatchResult -import app.revanced.patcher.patch.annotations.DependsOn -import app.revanced.patcher.patch.annotations.Patch -import app.revanced.patcher.patch.impl.ResourcePatch -import app.revanced.patches.youtube.layout.amoled.annotations.AmoledCompatibility -import app.revanced.patches.youtube.layout.theme.patch.ThemePatch -import app.revanced.patches.youtube.misc.manifest.patch.FixLocaleConfigErrorPatch - -@Patch -@DependsOn([FixLocaleConfigErrorPatch::class]) -@Name("amoled") -@Description("Enables pure black theme.") -@AmoledCompatibility -@Version("0.0.1") -@PatchDeprecated("Theme patch already includes the Amoled theme.", ThemePatch::class) -class AmoledPatch : ResourcePatch() { - override fun execute(data: ResourceData): PatchResult { - ThemePatch.theme = ThemePatch.Themes.Amoled.name - return ThemePatch().execute(data) - } -}