docs: add docs to Index
& patches
also typed the patches array
This commit is contained in:
parent
4f81a1c4f7
commit
bdd7cc45ba
|
@ -1,13 +1,21 @@
|
||||||
package net.revanced.patches
|
package net.revanced.patches
|
||||||
|
|
||||||
|
import net.revanced.patcher.patch.Patch
|
||||||
import net.revanced.patches.ads.VideoAds
|
import net.revanced.patches.ads.VideoAds
|
||||||
import net.revanced.patches.layouts.CreateButtonRemover
|
import net.revanced.patches.layouts.CreateButtonRemover
|
||||||
import net.revanced.patches.layouts.MinimizedPlayback
|
import net.revanced.patches.layouts.MinimizedPlayback
|
||||||
|
import kotlin.reflect.KClass
|
||||||
|
|
||||||
// This object 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.
|
||||||
|
*/
|
||||||
|
@Suppress("Unused")
|
||||||
object Index {
|
object Index {
|
||||||
// Array of patches. New patches should be added to the array
|
/**
|
||||||
val patches = arrayOf(
|
* Array of patches.
|
||||||
|
* New patches should be added to the array.
|
||||||
|
*/
|
||||||
|
val patches: Array<KClass<out Patch>> = arrayOf(
|
||||||
VideoAds::class,
|
VideoAds::class,
|
||||||
MinimizedPlayback::class,
|
MinimizedPlayback::class,
|
||||||
CreateButtonRemover::class
|
CreateButtonRemover::class
|
||||||
|
|
Loading…
Reference in a new issue