refactor: replace Array with List

This commit is contained in:
Lucaskyy 2022-04-14 11:58:25 +02:00
parent 535aee0840
commit 2d3d72009e
No known key found for this signature in database
GPG Key ID: 1530BFF96D1EEB89
9 changed files with 9 additions and 9 deletions

View File

@ -15,7 +15,7 @@ object Index {
* Array of patches. * Array of patches.
* New patches should be added to the array. * New patches should be added to the array.
*/ */
val patches: Array<() -> Patch> = arrayOf( val patches: List<() -> Patch> = listOf(
::IntegrationsPatch, ::IntegrationsPatch,
::VideoAdsPatch, ::VideoAdsPatch,
::MinimizedPlaybackPatch, ::MinimizedPlaybackPatch,

View File

@ -12,7 +12,7 @@ import app.revanced.patcher.smali.asInstructions
import org.jf.dexlib2.AccessFlags import org.jf.dexlib2.AccessFlags
import org.jf.dexlib2.Opcode import org.jf.dexlib2.Opcode
private val compatiblePackages = arrayOf("com.google.android.youtube") private val compatiblePackages = listOf("com.google.android.youtube")
class VideoAdsPatch : Patch( class VideoAdsPatch : Patch(
metadata = PatchMetadata( metadata = PatchMetadata(

View File

@ -18,7 +18,7 @@ import org.jf.dexlib2.builder.instruction.BuilderInstruction21t
import org.jf.dexlib2.iface.Method import org.jf.dexlib2.iface.Method
import org.jf.dexlib2.iface.instruction.formats.Instruction11n import org.jf.dexlib2.iface.instruction.formats.Instruction11n
private val compatiblePackages = arrayOf("com.google.android.youtube") private val compatiblePackages = listOf("com.google.android.youtube")
class EnableSeekbarTappingPatch : Patch( class EnableSeekbarTappingPatch : Patch(
metadata = PatchMetadata( metadata = PatchMetadata(

View File

@ -14,7 +14,7 @@ import app.revanced.patcher.smali.asInstruction
import org.jf.dexlib2.AccessFlags import org.jf.dexlib2.AccessFlags
import org.jf.dexlib2.Opcode import org.jf.dexlib2.Opcode
private val compatiblePackages = arrayOf("com.google.android.youtube") private val compatiblePackages = listOf("com.google.android.youtube")
class CreateButtonRemoverPatch : Patch( class CreateButtonRemoverPatch : Patch(
metadata = PatchMetadata( metadata = PatchMetadata(

View File

@ -14,7 +14,7 @@ import app.revanced.patcher.smali.asInstruction
import org.jf.dexlib2.AccessFlags import org.jf.dexlib2.AccessFlags
import org.jf.dexlib2.Opcode import org.jf.dexlib2.Opcode
private val compatiblePackages = arrayOf("com.google.android.youtube") private val compatiblePackages = listOf("com.google.android.youtube")
class HideReelsPatch : Patch( class HideReelsPatch : Patch(
metadata = PatchMetadata( metadata = PatchMetadata(

View File

@ -19,7 +19,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c
import org.jf.dexlib2.immutable.ImmutableMethod import org.jf.dexlib2.immutable.ImmutableMethod
import org.jf.dexlib2.immutable.ImmutableMethodImplementation import org.jf.dexlib2.immutable.ImmutableMethodImplementation
private val compatiblePackages = arrayOf("com.google.android.youtube") private val compatiblePackages = listOf("com.google.android.youtube")
class HideSuggestionsPatch : Patch( class HideSuggestionsPatch : Patch(
metadata = PatchMetadata( metadata = PatchMetadata(

View File

@ -12,7 +12,7 @@ import app.revanced.patcher.smali.asInstructions
import org.jf.dexlib2.AccessFlags import org.jf.dexlib2.AccessFlags
import org.jf.dexlib2.Opcode import org.jf.dexlib2.Opcode
private val compatiblePackages = arrayOf("com.google.android.youtube") private val compatiblePackages = listOf("com.google.android.youtube")
class MinimizedPlaybackPatch : Patch( class MinimizedPlaybackPatch : Patch(
metadata = PatchMetadata( metadata = PatchMetadata(

View File

@ -13,7 +13,7 @@ import org.jf.dexlib2.AccessFlags
import org.jf.dexlib2.Opcode import org.jf.dexlib2.Opcode
import org.jf.dexlib2.builder.instruction.BuilderInstruction21t import org.jf.dexlib2.builder.instruction.BuilderInstruction21t
private val compatiblePackages = arrayOf("com.google.android.youtube") private val compatiblePackages = listOf("com.google.android.youtube")
class OldQualityLayoutPatch : Patch( class OldQualityLayoutPatch : Patch(
metadata = PatchMetadata( metadata = PatchMetadata(

View File

@ -15,7 +15,7 @@ import org.jf.dexlib2.Opcode
import org.jf.dexlib2.immutable.ImmutableMethod import org.jf.dexlib2.immutable.ImmutableMethod
import org.jf.dexlib2.immutable.ImmutableMethodImplementation import org.jf.dexlib2.immutable.ImmutableMethodImplementation
private val compatiblePackages = arrayOf("com.google.android.youtube") private val compatiblePackages = listOf("com.google.android.youtube")
class IntegrationsPatch : Patch( class IntegrationsPatch : Patch(
metadata = PatchMetadata( metadata = PatchMetadata(