mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2024-11-12 18:04:26 +01:00
feat: use supplier instead of KClass
BREAKING CHANGE: signature of patches was changed
This commit is contained in:
parent
43da3130e9
commit
08af6e54af
1 changed files with 8 additions and 9 deletions
|
@ -4,7 +4,6 @@ import app.revanced.patcher.patch.Patch
|
||||||
import app.revanced.patches.ad.VideoAds
|
import app.revanced.patches.ad.VideoAds
|
||||||
import app.revanced.patches.interaction.EnableSeekbarTapping
|
import app.revanced.patches.interaction.EnableSeekbarTapping
|
||||||
import app.revanced.patches.layout.*
|
import app.revanced.patches.layout.*
|
||||||
import kotlin.reflect.KClass
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Index contains all the patches and should be imported when using this library.
|
* Index contains all the patches and should be imported when using this library.
|
||||||
|
@ -15,13 +14,13 @@ object Index {
|
||||||
* Array of patches.
|
* Array of patches.
|
||||||
* New patches should be added to the array.
|
* New patches should be added to the array.
|
||||||
*/
|
*/
|
||||||
val patches: Array<KClass<out Patch>> = arrayOf(
|
val patches: Array<() -> Patch> = arrayOf(
|
||||||
VideoAds::class,
|
::VideoAds,
|
||||||
MinimizedPlayback::class,
|
::MinimizedPlayback,
|
||||||
CreateButtonRemover::class,
|
::CreateButtonRemover,
|
||||||
HideReels::class,
|
::HideReels,
|
||||||
HideSuggestions::class,
|
::HideSuggestions,
|
||||||
OldQualityLayout::class,
|
::OldQualityLayout,
|
||||||
EnableSeekbarTapping::class
|
::EnableSeekbarTapping
|
||||||
)
|
)
|
||||||
}
|
}
|
Loading…
Reference in a new issue