build(Needs bump): Bump dependencies (#2946)
Co-authored-by: Ushie <ushiekane@gmail.com> Co-authored-by: aAbed <aabedhkhan@gmail.com> Co-authored-by: CnC-Robert <CnC.Rob3rt@gmail.com>
This commit is contained in:
co-authored by
Ushie
aAbed
CnC-Robert
parent
fe3a6fd4a4
commit
8c8dff9078
+13
-16
@@ -1,28 +1,25 @@
|
||||
package app.revanced.patches.youtubevanced.ad.general.patch
|
||||
package app.revanced.patches.youtubevanced.ad.general
|
||||
|
||||
import app.revanced.extensions.exception
|
||||
import app.revanced.patcher.annotation.Description
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.data.BytecodeContext
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
||||
import app.revanced.patcher.patch.BytecodePatch
|
||||
import app.revanced.patcher.patch.annotations.DependsOn
|
||||
import app.revanced.patcher.patch.annotations.Patch
|
||||
import app.revanced.patches.shared.misc.fix.verticalscroll.patch.VerticalScrollPatch
|
||||
import app.revanced.patches.youtubevanced.ad.general.annotations.HideAdsCompatibility
|
||||
import app.revanced.patcher.patch.annotation.CompatiblePackage
|
||||
import app.revanced.patcher.patch.annotation.Patch
|
||||
import app.revanced.patches.shared.misc.fix.verticalscroll.VerticalScrollPatch
|
||||
import app.revanced.patches.youtubevanced.ad.general.fingerprints.ContainsAdFingerprint
|
||||
import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction21c
|
||||
|
||||
@Patch
|
||||
@Name("Hide ads")
|
||||
@Description("Removes general ads.")
|
||||
@DependsOn([VerticalScrollPatch::class])
|
||||
@HideAdsCompatibility
|
||||
class HideAdsPatch : BytecodePatch(
|
||||
listOf(
|
||||
ContainsAdFingerprint
|
||||
)
|
||||
@Patch(
|
||||
name = "Hide ads",
|
||||
description = "Removes general ads.",
|
||||
dependencies = [VerticalScrollPatch::class],
|
||||
compatiblePackages = [CompatiblePackage("com.vanced.android.youtube")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object HideAdsPatch : BytecodePatch(
|
||||
setOf(ContainsAdFingerprint)
|
||||
) {
|
||||
override fun execute(context: BytecodeContext) {
|
||||
ContainsAdFingerprint.result?.let { result ->
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
package app.revanced.patches.youtubevanced.ad.general.annotations
|
||||
|
||||
import app.revanced.patcher.annotation.Compatibility
|
||||
import app.revanced.patcher.annotation.Package
|
||||
|
||||
@Compatibility([Package("com.vanced.android.youtube")])
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
internal annotation class HideAdsCompatibility
|
||||
Reference in New Issue
Block a user