mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-12 03:47:46 +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.
|
* 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,
|
||||||
|
@ -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(
|
||||||
|
@ -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(
|
||||||
|
@ -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(
|
||||||
|
@ -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(
|
||||||
|
@ -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(
|
||||||
|
@ -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(
|
||||||
|
@ -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(
|
||||||
|
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user