build: Bump dependencies

This commit also migrates away from deprecated to new APIs
This commit is contained in:
oSumAtrIX
2024-02-13 03:29:21 +01:00
parent 2c438e414d
commit bdc54ef318
38 changed files with 464 additions and 456 deletions

View File

@ -10,11 +10,11 @@ import app.revanced.patches.tumblr.timelinefilter.TimelineFilterPatch
name = "Disable dashboard ads",
description = "Disables ads in the dashboard.",
compatiblePackages = [CompatiblePackage("com.tumblr")],
dependencies = [TimelineFilterPatch::class]
dependencies = [TimelineFilterPatch::class],
)
@Suppress("unused")
object DisableDashboardAds : BytecodePatch() {
override fun execute(context: BytecodeContext) {
object DisableDashboardAds : BytecodePatch(emptySet()) {
override fun execute(context: BytecodeContext) {
// The timeline object types are filtered by their name in the TimelineObjectType enum.
// This is often different from the "object_type" returned in the api (noted in comments here)
arrayOf(
@ -29,9 +29,9 @@ object DisableDashboardAds : BytecodePatch() {
"DISPLAY_IO_INTERSCROLLER_AD", // "display_io_interscroller"
"DISPLAY_IO_HEADLINE_VIDEO_AD", // "display_io_headline_video"
"FACEBOOK_BIDDAABLE", // "facebook_biddable_sdk_ad"
"GOOGLE_NATIVE" // "google_native_ad"
"GOOGLE_NATIVE", // "google_native_ad"
).forEach {
TimelineFilterPatch.addObjectTypeFilter(it)
}
}
}
}