docs: add docs to Index & patches

also typed the patches array
This commit is contained in:
Lucaskyy 2022-03-21 21:06:47 +01:00
parent 4f81a1c4f7
commit bdd7cc45ba
No known key found for this signature in database
GPG key ID: 1530BFF96D1EEB89

View file

@ -1,13 +1,21 @@
package net.revanced.patches
import net.revanced.patcher.patch.Patch
import net.revanced.patches.ads.VideoAds
import net.revanced.patches.layouts.CreateButtonRemover
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 {
// 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,
MinimizedPlayback::class,
CreateButtonRemover::class