diff --git a/build.gradle.kts b/build.gradle.kts index 0bca5ca0..01f38d62 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -22,7 +22,7 @@ repositories { dependencies { implementation(kotlin("stdlib")) - implementation("app.revanced:revanced-patcher:2.2.0") + implementation("app.revanced:revanced-patcher:2.3.0") implementation("app.revanced:multidexlib2:2.5.2.r2") } diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt index 74c1d73f..ba407019 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ad/general/bytecode/patch/GeneralBytecodeAdsPatch.kt @@ -45,9 +45,7 @@ import org.jf.dexlib2.immutable.reference.ImmutableMethodReference @Description("Patch to remove general ads in bytecode.") @GeneralAdsCompatibility @Version("0.0.1") -class GeneralBytecodeAdsPatch : BytecodePatch( - listOf() -) { +class GeneralBytecodeAdsPatch : BytecodePatch() { // a constant used by litho private val lithoConstant = 0xaed2868 diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/castbutton/patch/HideCastButtonPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/castbutton/patch/HideCastButtonPatch.kt index a199853a..b8ea3799 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/castbutton/patch/HideCastButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/castbutton/patch/HideCastButtonPatch.kt @@ -19,7 +19,7 @@ import app.revanced.patches.youtube.misc.integrations.patch.IntegrationsPatch @Description("Patch to hide the cast button.") @CastButtonCompatibility @Version("0.0.1") -class HideCastButtonPatch : BytecodePatch(listOf()) { +class HideCastButtonPatch : BytecodePatch() { override fun execute(data: BytecodeData): PatchResult { data.classes.forEach { classDef -> classDef.methods.forEach { method ->