Skip to content

Commit

Permalink
docs: add docs to Index & patches
Browse files Browse the repository at this point in the history
also typed the patches array
  • Loading branch information
Sculas committed Mar 21, 2022
1 parent 4f81a1c commit bdd7cc4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/main/kotlin/net/revanced/patches/Index.kt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit bdd7cc4

Please sign in to comment.