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
+11
-12
@@ -1,24 +1,23 @@
|
||||
package app.revanced.patches.tumblr.ads.patch
|
||||
package app.revanced.patches.tumblr.ads
|
||||
|
||||
import app.revanced.extensions.exception
|
||||
import app.revanced.patcher.annotation.Compatibility
|
||||
import app.revanced.patcher.annotation.Description
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Package
|
||||
import app.revanced.patcher.data.BytecodeContext
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction
|
||||
import app.revanced.patcher.patch.BytecodePatch
|
||||
import app.revanced.patcher.patch.annotations.Patch
|
||||
import app.revanced.patcher.patch.annotation.CompatiblePackage
|
||||
import app.revanced.patcher.patch.annotation.Patch
|
||||
import app.revanced.patches.tumblr.ads.fingerprints.AdWaterfallFingerprint
|
||||
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
|
||||
@Patch
|
||||
@Name("Disable dashboard ads")
|
||||
@Description("Disables ads in the dashboard.")
|
||||
@Compatibility([Package("com.tumblr")])
|
||||
class DisableDashboardAds : BytecodePatch(
|
||||
listOf(AdWaterfallFingerprint)
|
||||
@Patch(
|
||||
name = "Disable dashboard ads",
|
||||
description = "Disables ads in the dashboard.",
|
||||
compatiblePackages = [CompatiblePackage("com.tumblr")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object DisableDashboardAds : BytecodePatch(
|
||||
setOf(AdWaterfallFingerprint)
|
||||
) {
|
||||
override fun execute(context: BytecodeContext) = AdWaterfallFingerprint.result?.let {
|
||||
it.scanResult.stringsScanResult!!.matches.forEach { match ->
|
||||
+10
-11
@@ -1,22 +1,21 @@
|
||||
package app.revanced.patches.tumblr.annoyances.notifications.patch
|
||||
|
||||
import app.revanced.extensions.exception
|
||||
import app.revanced.patcher.annotation.Compatibility
|
||||
import app.revanced.patcher.annotation.Description
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Package
|
||||
import app.revanced.patcher.data.BytecodeContext
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
|
||||
import app.revanced.patcher.patch.BytecodePatch
|
||||
import app.revanced.patcher.patch.annotations.Patch
|
||||
import app.revanced.patcher.patch.annotation.CompatiblePackage
|
||||
import app.revanced.patcher.patch.annotation.Patch
|
||||
import app.revanced.patches.tumblr.annoyances.notifications.fingerprints.IsBlogNotifyEnabledFingerprint
|
||||
|
||||
@Patch
|
||||
@Name("Disable blog notification reminder")
|
||||
@Description("Disables the reminder to enable notifications for blogs you visit.")
|
||||
@Compatibility([Package("com.tumblr")])
|
||||
class DisableBlogNotificationReminderPatch : BytecodePatch(
|
||||
listOf(IsBlogNotifyEnabledFingerprint)
|
||||
@Patch(
|
||||
name = "Disable blog notification reminder",
|
||||
description = "Disables the reminder to enable notifications for blogs you visit.",
|
||||
compatiblePackages = [CompatiblePackage("com.tumblr")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object DisableBlogNotificationReminderPatch : BytecodePatch(
|
||||
setOf(IsBlogNotifyEnabledFingerprint)
|
||||
) {
|
||||
override fun execute(context: BytecodeContext) =
|
||||
IsBlogNotifyEnabledFingerprint.result?.mutableMethod?.addInstructions(
|
||||
|
||||
+10
-11
@@ -1,22 +1,21 @@
|
||||
package app.revanced.patches.tumblr.annoyances.popups.patch
|
||||
|
||||
import app.revanced.extensions.exception
|
||||
import app.revanced.patcher.annotation.Compatibility
|
||||
import app.revanced.patcher.annotation.Description
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Package
|
||||
import app.revanced.patcher.data.BytecodeContext
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
|
||||
import app.revanced.patcher.patch.BytecodePatch
|
||||
import app.revanced.patcher.patch.annotations.Patch
|
||||
import app.revanced.patcher.patch.annotation.CompatiblePackage
|
||||
import app.revanced.patcher.patch.annotation.Patch
|
||||
import app.revanced.patches.tumblr.annoyances.popups.fingerprints.ShowGiftMessagePopupFingerprint
|
||||
|
||||
@Patch
|
||||
@Name("Disable gift message popup")
|
||||
@Description("Disables the popup suggesting to buy TumblrMart items for other people.")
|
||||
@Compatibility([Package("com.tumblr")])
|
||||
class DisableGiftMessagePopupPatch : BytecodePatch(
|
||||
listOf(ShowGiftMessagePopupFingerprint)
|
||||
@Patch(
|
||||
name = "Disable gift message popup",
|
||||
description = "Disables the popup suggesting to buy TumblrMart items for other people.",
|
||||
compatiblePackages = [CompatiblePackage("com.tumblr")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object DisableGiftMessagePopupPatch : BytecodePatch(
|
||||
setOf(ShowGiftMessagePopupFingerprint)
|
||||
) {
|
||||
override fun execute(context: BytecodeContext) =
|
||||
ShowGiftMessagePopupFingerprint.result?.mutableMethod?.addInstructions(0, "return-void")
|
||||
|
||||
Reference in New Issue
Block a user