From 08af6e54af79ef9ef4fb3372a348ce9b6fba4d20 Mon Sep 17 00:00:00 2001 From: Lucaskyy Date: Tue, 22 Mar 2022 22:24:56 +0100 Subject: [PATCH] feat: use supplier instead of KClass BREAKING CHANGE: signature of patches was changed --- src/main/kotlin/app/revanced/patches/Index.kt | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/Index.kt b/src/main/kotlin/app/revanced/patches/Index.kt index df2c48dc..91787b99 100644 --- a/src/main/kotlin/app/revanced/patches/Index.kt +++ b/src/main/kotlin/app/revanced/patches/Index.kt @@ -4,7 +4,6 @@ import app.revanced.patcher.patch.Patch import app.revanced.patches.ad.VideoAds import app.revanced.patches.interaction.EnableSeekbarTapping import app.revanced.patches.layout.* -import kotlin.reflect.KClass /** * Index contains all the patches and should be imported when using this library. @@ -15,13 +14,13 @@ object Index { * Array of patches. * New patches should be added to the array. */ - val patches: Array> = arrayOf( - VideoAds::class, - MinimizedPlayback::class, - CreateButtonRemover::class, - HideReels::class, - HideSuggestions::class, - OldQualityLayout::class, - EnableSeekbarTapping::class + val patches: Array<() -> Patch> = arrayOf( + ::VideoAds, + ::MinimizedPlayback, + ::CreateButtonRemover, + ::HideReels, + ::HideSuggestions, + ::OldQualityLayout, + ::EnableSeekbarTapping ) } \ No newline at end of file