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.
* New patches should be added to the array.
*/
val patches: Array<() -> Patch> = arrayOf(
val patches: List<() -> Patch> = listOf(
::IntegrationsPatch,
::VideoAdsPatch,
::MinimizedPlaybackPatch,

View File

@ -12,7 +12,7 @@ import app.revanced.patcher.smali.asInstructions
import org.jf.dexlib2.AccessFlags
import org.jf.dexlib2.Opcode
private val compatiblePackages = arrayOf("com.google.android.youtube")
private val compatiblePackages = listOf("com.google.android.youtube")
class VideoAdsPatch : Patch(
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.instruction.formats.Instruction11n
private val compatiblePackages = arrayOf("com.google.android.youtube")
private val compatiblePackages = listOf("com.google.android.youtube")
class EnableSeekbarTappingPatch : Patch(
metadata = PatchMetadata(

View File

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

View File

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

View File

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

View File

@ -13,7 +13,7 @@ import org.jf.dexlib2.AccessFlags
import org.jf.dexlib2.Opcode
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(
metadata = PatchMetadata(

View File

@ -15,7 +15,7 @@ import org.jf.dexlib2.Opcode
import org.jf.dexlib2.immutable.ImmutableMethod
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(
metadata = PatchMetadata(