mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-03 00:02:59 +01:00
refactor: replace Array with List
This commit is contained in:
parent
535aee0840
commit
2d3d72009e
@ -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,
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user