mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
refactor: start migrating some signatures to Kotlin
This commit is contained in:
@ -1,28 +0,0 @@
|
||||
package app.revanced.patches
|
||||
|
||||
import app.revanced.patcher.patch.Patch
|
||||
import app.revanced.patches.ad.VideoAds
|
||||
import app.revanced.patches.interaction.EnableSeekbarTapping
|
||||
import app.revanced.patches.layout.*
|
||||
import app.revanced.patches.misc.Integrations
|
||||
|
||||
/**
|
||||
* 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: Array<() -> Patch> = arrayOf(
|
||||
::Integrations,
|
||||
::VideoAds,
|
||||
::MinimizedPlayback,
|
||||
::CreateButtonRemover,
|
||||
::HideReels,
|
||||
::HideSuggestions,
|
||||
::OldQualityLayout,
|
||||
::EnableSeekbarTapping
|
||||
)
|
||||
}
|
@ -9,7 +9,7 @@ import app.revanced.patcher.smali.asInstructions
|
||||
import app.revanced.patches.SHARED_METADATA
|
||||
import org.jf.dexlib2.AccessFlags
|
||||
|
||||
class VideoAds : Patch(
|
||||
class VideoAdsPatch : Patch(
|
||||
PatchMetadata(
|
||||
"video-ads",
|
||||
"TODO",
|
@ -12,7 +12,7 @@ import org.jf.dexlib2.builder.instruction.BuilderInstruction21t
|
||||
import org.jf.dexlib2.iface.Method
|
||||
import org.jf.dexlib2.iface.instruction.formats.Instruction11n
|
||||
|
||||
class EnableSeekbarTapping : Patch(
|
||||
class EnableSeekbarTappingPatch : Patch(
|
||||
PatchMetadata(
|
||||
"enable-seekbar-tapping",
|
||||
"TODO",
|
@ -7,7 +7,7 @@ import app.revanced.patcher.patch.PatchResult
|
||||
import app.revanced.patcher.patch.PatchResultSuccess
|
||||
import app.revanced.patcher.smali.asInstruction
|
||||
|
||||
class CreateButtonRemover : Patch(
|
||||
class CreateButtonRemoverPatch : Patch(
|
||||
PatchMetadata(
|
||||
"create-button-remover",
|
||||
"TODO",
|
@ -7,7 +7,7 @@ import app.revanced.patcher.patch.PatchResult
|
||||
import app.revanced.patcher.patch.PatchResultSuccess
|
||||
import app.revanced.patcher.smali.asInstruction
|
||||
|
||||
class HideReels : Patch(
|
||||
class HideReelsPatch : Patch(
|
||||
PatchMetadata(
|
||||
"hide-reels",
|
||||
"TODO",
|
@ -17,7 +17,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c
|
||||
import org.jf.dexlib2.immutable.ImmutableMethod
|
||||
import org.jf.dexlib2.immutable.ImmutableMethodImplementation
|
||||
|
||||
class HideSuggestions : Patch(
|
||||
class HideSuggestionsPatch : Patch(
|
||||
PatchMetadata(
|
||||
"hide-suggestions",
|
||||
"TODO",
|
@ -8,7 +8,7 @@ import app.revanced.patcher.patch.PatchResult
|
||||
import app.revanced.patcher.patch.PatchResultSuccess
|
||||
import app.revanced.patcher.smali.asInstructions
|
||||
|
||||
class MinimizedPlayback : Patch(
|
||||
class MinimizedPlaybackPatch : Patch(
|
||||
PatchMetadata(
|
||||
"minimized-playback",
|
||||
"TODO",
|
@ -11,7 +11,7 @@ import org.jf.dexlib2.AccessFlags
|
||||
import org.jf.dexlib2.Opcode
|
||||
import org.jf.dexlib2.builder.instruction.BuilderInstruction21t
|
||||
|
||||
class OldQualityLayout : Patch(
|
||||
class OldQualityLayoutPatch : Patch(
|
||||
PatchMetadata(
|
||||
"old-quality-layout",
|
||||
"TODO",
|
@ -13,7 +13,7 @@ import org.jf.dexlib2.AccessFlags
|
||||
import org.jf.dexlib2.immutable.ImmutableMethod
|
||||
import org.jf.dexlib2.immutable.ImmutableMethodImplementation
|
||||
|
||||
class Integrations : Patch(
|
||||
class IntegrationsPatch : Patch(
|
||||
PatchMetadata(
|
||||
"integrations",
|
||||
"TODO",
|
Reference in New Issue
Block a user