mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2024-11-10 01:01:56 +01:00
feat: use supplier instead of KClass
BREAKING CHANGE: signature of patches was changed
This commit is contained in:
parent
68ea89f15e
commit
91aa019f8d
1 changed files with 4 additions and 5 deletions
|
@ -4,7 +4,6 @@ import app.revanced.patcher.patch.Patch
|
|||
import app.revanced.patches.ads.VideoAds
|
||||
import app.revanced.patches.layouts.CreateButtonRemover
|
||||
import app.revanced.patches.layouts.MinimizedPlayback
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
/**
|
||||
* Index contains all the patches and should be imported when using this library.
|
||||
|
@ -15,9 +14,9 @@ object Index {
|
|||
* Array of patches.
|
||||
* New patches should be added to the array.
|
||||
*/
|
||||
val patches: Array<KClass<out Patch>> = arrayOf(
|
||||
VideoAds::class,
|
||||
MinimizedPlayback::class,
|
||||
CreateButtonRemover::class
|
||||
val patches: Array<() -> Patch> = arrayOf(
|
||||
::VideoAds,
|
||||
::MinimizedPlayback,
|
||||
::CreateButtonRemover
|
||||
)
|
||||
}
|
Loading…
Reference in a new issue