refactor: start migrating some signatures to Kotlin

This commit is contained in:
Lucaskyy
2022-04-13 21:47:09 +02:00
parent bc56555d9e
commit 36a2780ab1
13 changed files with 160 additions and 36 deletions

View File

@ -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
)
}

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",