From 5a15476a9f96c4ef0e70b0ab51b98851d1c37e62 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 14 Jan 2026 02:31:53 +0100 Subject: [PATCH] fix names --- .../finanzonline/detection/root/RootDetectionPatch.kt | 7 +++---- .../instagram/hide/navigation/HideNavigationButtons.kt | 9 ++++----- .../misc/share/privacy/SanitizeSharingLinksPatch.kt | 7 +++---- .../patches/pandora/misc/EnableUnlimitedSkipsPatch.kt | 2 +- .../photomath/detection/deviceid/SpoofDeviceIdPatch.kt | 4 ++-- .../detection/signature/SignatureDetectionPatch.kt | 6 +++--- .../photomath/misc/annoyances/HideUpdatePopupPatch.kt | 4 ++-- .../photomath/misc/unlock/plus/UnlockPlusPatch.kt | 4 ++-- .../patches/reddit/ad/comments/HideCommentAdsPatch.kt | 5 ++--- .../revanced/patches/reddit/ad/general/HideAdsPatch.kt | 4 ++-- .../patches/reddit/customclients/FixRedgifsApiPatch.kt | 2 +- .../patches/reddit/customclients/FixSLinksPatch.kt | 4 +--- .../baconreader/fix/redgifs/FixRedgifsApiPatch.kt | 4 ++-- .../boostforreddit/fix/redgifs/FixRedgifsApiPatch.kt | 4 ++-- .../customclients/joeyforreddit/ads/DisableAdsPatch.kt | 4 ++-- .../detection/piracy/DisablePiracyDetectionPatch.kt | 6 +++--- .../sync/syncforreddit/fix/redgifs/FixRedgifsApiPatch.kt | 4 ++-- .../reddit/misc/tracking/url/SanitizeUrlQueryPatch.kt | 7 +++---- .../detection/root/RootDetectionPatch.kt | 7 +++---- .../spotify/misc/privacy/SanitizeSharingLinksPatch.kt | 6 +++--- .../patches/tiktok/misc/share/SanitizeShareUrlsPatch.kt | 7 +++---- .../twitter/misc/links/SanitizeSharingLinksPatch.kt | 7 +++---- .../patches/viber/misc/navbar/HideNavigationButtons.kt | 7 +++---- 23 files changed, 55 insertions(+), 66 deletions(-) diff --git a/patches/src/main/kotlin/app/revanced/patches/finanzonline/detection/root/RootDetectionPatch.kt b/patches/src/main/kotlin/app/revanced/patches/finanzonline/detection/root/RootDetectionPatch.kt index 49bacecbd6..e403583882 100644 --- a/patches/src/main/kotlin/app/revanced/patches/finanzonline/detection/root/RootDetectionPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/finanzonline/detection/root/RootDetectionPatch.kt @@ -1,11 +1,10 @@ package app.revanced.patches.finanzonline.detection.root import app.revanced.patcher.extensions.addInstructions -import app.revanced.patcher.patch.bytecodePatch +import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") -val rootDetectionPatch = bytecodePatch( - name = "Remove root detection", +@Suppress("unused", "ObjectPropertyName") +val `Remove root detection` by creatingBytecodePatch( description = "Removes the check for root permissions and unlocked bootloader.", ) { compatibleWith("at.gv.bmf.bmf2go") diff --git a/patches/src/main/kotlin/app/revanced/patches/instagram/hide/navigation/HideNavigationButtons.kt b/patches/src/main/kotlin/app/revanced/patches/instagram/hide/navigation/HideNavigationButtons.kt index 7b7b54821a..95ca430fe2 100644 --- a/patches/src/main/kotlin/app/revanced/patches/instagram/hide/navigation/HideNavigationButtons.kt +++ b/patches/src/main/kotlin/app/revanced/patches/instagram/hide/navigation/HideNavigationButtons.kt @@ -3,7 +3,7 @@ package app.revanced.patches.instagram.hide.navigation import app.revanced.patcher.extensions.getInstruction import app.revanced.patcher.fingerprint import app.revanced.patcher.patch.booleanOption -import app.revanced.patcher.patch.bytecodePatch +import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.instagram.misc.extension.sharedExtensionPatch import app.revanced.util.addInstructionsAtControlFlowLabel import app.revanced.util.findFreeRegister @@ -18,9 +18,8 @@ import java.util.logging.Logger private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/instagram/hide/navigation/HideNavigationButtonsPatch;" -@Suppress("unused") -val hideNavigationButtonsPatch = bytecodePatch( - name = "Hide navigation buttons", +@Suppress("unused", "ObjectPropertyName") +val `Hide navigation buttons` by creatingBytecodePatch( description = "Hides navigation bar buttons, such as the Reels and Create button.", use = false ) { @@ -65,7 +64,7 @@ val hideNavigationButtonsPatch = bytecodePatch( ) apply { - if (!hideHome!! &&!hideReels!! && !hideDirect!! && !hideSearch!! && !hideProfile!! && !hideCreate!!) { + if (!hideHome!! && !hideReels!! && !hideDirect!! && !hideSearch!! && !hideProfile!! && !hideCreate!!) { return@apply Logger.getLogger(this::class.java.name).warning( "No hide navigation buttons options are enabled. No changes made." ) diff --git a/patches/src/main/kotlin/app/revanced/patches/instagram/misc/share/privacy/SanitizeSharingLinksPatch.kt b/patches/src/main/kotlin/app/revanced/patches/instagram/misc/share/privacy/SanitizeSharingLinksPatch.kt index 9e9095c73c..89072d0db6 100644 --- a/patches/src/main/kotlin/app/revanced/patches/instagram/misc/share/privacy/SanitizeSharingLinksPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/instagram/misc/share/privacy/SanitizeSharingLinksPatch.kt @@ -1,16 +1,15 @@ package app.revanced.patches.instagram.misc.share.privacy import app.revanced.patcher.extensions.addInstructions -import app.revanced.patcher.patch.bytecodePatch +import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.instagram.misc.extension.sharedExtensionPatch import app.revanced.patches.instagram.misc.share.editShareLinksPatch private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/instagram/misc/share/privacy/SanitizeSharingLinksPatch;" -@Suppress("unused") -val sanitizeSharingLinksPatch = bytecodePatch( - name = "Sanitize sharing links", +@Suppress("unused", "ObjectPropertyName") +val `Sanitize sharing links` by creatingBytecodePatch( description = "Removes the tracking query parameters from shared links.", ) { compatibleWith("com.instagram.android") diff --git a/patches/src/main/kotlin/app/revanced/patches/pandora/misc/EnableUnlimitedSkipsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/pandora/misc/EnableUnlimitedSkipsPatch.kt index 395dd2d8a3..2d60302e9f 100644 --- a/patches/src/main/kotlin/app/revanced/patches/pandora/misc/EnableUnlimitedSkipsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/pandora/misc/EnableUnlimitedSkipsPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly @Suppress("unused", "ObjectPropertyName") -val `Enable Unlimited Skips` by creatingBytecodePatch { +val `Enable unlimited skips` by creatingBytecodePatch { compatibleWith("com.pandora.android") apply { diff --git a/patches/src/main/kotlin/app/revanced/patches/photomath/detection/deviceid/SpoofDeviceIdPatch.kt b/patches/src/main/kotlin/app/revanced/patches/photomath/detection/deviceid/SpoofDeviceIdPatch.kt index 303517a70f..8e955ed284 100644 --- a/patches/src/main/kotlin/app/revanced/patches/photomath/detection/deviceid/SpoofDeviceIdPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/photomath/detection/deviceid/SpoofDeviceIdPatch.kt @@ -1,7 +1,7 @@ package app.revanced.patches.photomath.detection.deviceid import app.revanced.patcher.patch.creatingBytecodePatch -import app.revanced.patches.photomath.detection.signature.`Signature detection` +import app.revanced.patches.photomath.detection.signature.signatureDetectionPatch import app.revanced.util.returnEarly import kotlin.random.Random @@ -9,7 +9,7 @@ import kotlin.random.Random val `Spoof device ID` by creatingBytecodePatch( description = "Spoofs device ID to mitigate manual bans by developers.", ) { - dependsOn(`Signature detection`) + dependsOn(signatureDetectionPatch) compatibleWith("com.microblink.photomath") diff --git a/patches/src/main/kotlin/app/revanced/patches/photomath/detection/signature/SignatureDetectionPatch.kt b/patches/src/main/kotlin/app/revanced/patches/photomath/detection/signature/SignatureDetectionPatch.kt index 70d6331e6d..5114f034fa 100644 --- a/patches/src/main/kotlin/app/revanced/patches/photomath/detection/signature/SignatureDetectionPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/photomath/detection/signature/SignatureDetectionPatch.kt @@ -2,11 +2,11 @@ package app.revanced.patches.photomath.detection.signature import app.revanced.patcher.extensions.getInstruction import app.revanced.patcher.extensions.replaceInstruction -import app.revanced.patcher.patch.creatingBytecodePatch +import app.revanced.patcher.patch.bytecodePatch import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction -@Suppress("unused", "ObjectPropertyName") -val `Signature detection` by creatingBytecodePatch( +@Suppress("unused") +val signatureDetectionPatch = bytecodePatch( description = "Disables detection of incorrect signature.", ) { apply { diff --git a/patches/src/main/kotlin/app/revanced/patches/photomath/misc/annoyances/HideUpdatePopupPatch.kt b/patches/src/main/kotlin/app/revanced/patches/photomath/misc/annoyances/HideUpdatePopupPatch.kt index 88678aa3ce..269a79ec7f 100644 --- a/patches/src/main/kotlin/app/revanced/patches/photomath/misc/annoyances/HideUpdatePopupPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/photomath/misc/annoyances/HideUpdatePopupPatch.kt @@ -2,14 +2,14 @@ package app.revanced.patches.photomath.misc.annoyances import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.patch.creatingBytecodePatch -import app.revanced.patches.photomath.detection.signature.`Signature detection` +import app.revanced.patches.photomath.detection.signature.signatureDetectionPatch @Suppress("unused") val `Hide update popup` by creatingBytecodePatch( description = "Prevents the update popup from showing up.", ) { - dependsOn(`Signature detection`) + dependsOn(signatureDetectionPatch) compatibleWith("com.microblink.photomath") diff --git a/patches/src/main/kotlin/app/revanced/patches/photomath/misc/unlock/plus/UnlockPlusPatch.kt b/patches/src/main/kotlin/app/revanced/patches/photomath/misc/unlock/plus/UnlockPlusPatch.kt index ac5b875174..77d32d815c 100644 --- a/patches/src/main/kotlin/app/revanced/patches/photomath/misc/unlock/plus/UnlockPlusPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/photomath/misc/unlock/plus/UnlockPlusPatch.kt @@ -2,12 +2,12 @@ package app.revanced.patches.photomath.misc.unlock.plus import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.patch.creatingBytecodePatch -import app.revanced.patches.photomath.detection.signature.`Signature detection` +import app.revanced.patches.photomath.detection.signature.signatureDetectionPatch import app.revanced.patches.photomath.misc.unlock.bookpoint.enableBookpointPatch @Suppress("unused") val `Unlock plus` by creatingBytecodePatch { - dependsOn(`Signature detection`, enableBookpointPatch) + dependsOn(signatureDetectionPatch, enableBookpointPatch) compatibleWith("com.microblink.photomath") diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/ad/comments/HideCommentAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/ad/comments/HideCommentAdsPatch.kt index 0a19d41463..9ebbf78ba6 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/ad/comments/HideCommentAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/ad/comments/HideCommentAdsPatch.kt @@ -2,10 +2,9 @@ package app.revanced.patches.reddit.ad.comments import app.revanced.patcher.extensions.replaceInstructions import app.revanced.patcher.patch.bytecodePatch -import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused", "ObjectPropertyName") -val `Hide comment ads` by creatingBytecodePatch( +@Suppress("unused") +val hideCommentAdsPatch = bytecodePatch( description = "Removes ads in the comments." ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/ad/general/HideAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/ad/general/HideAdsPatch.kt index 84d0fa250e..73509f5431 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/ad/general/HideAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/ad/general/HideAdsPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.reddit.ad.general import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.extensions.removeInstruction import app.revanced.patcher.patch.creatingBytecodePatch -import app.revanced.patches.reddit.ad.comments.`Hide comment ads` +import app.revanced.patches.reddit.ad.comments.hideCommentAdsPatch import app.revanced.patches.reddit.misc.extension.sharedExtensionPatch import app.revanced.util.getReference import app.revanced.util.indexOfFirstInstruction @@ -15,7 +15,7 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference @Suppress("unused", "ObjectPropertyName") val `Hide ads` by creatingBytecodePatch { - dependsOn(`Hide comment ads`, sharedExtensionPatch) + dependsOn(hideCommentAdsPatch, sharedExtensionPatch) compatibleWith("com.reddit.frontpage") diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/FixRedgifsApiPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/FixRedgifsApiPatch.kt index f837110514..fabb9b9b00 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/FixRedgifsApiPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/FixRedgifsApiPatch.kt @@ -7,7 +7,7 @@ import app.revanced.patcher.patch.bytecodePatch const val INSTALL_NEW_CLIENT_METHOD = "install(Lokhttp3/OkHttpClient${'$'}Builder;)Lokhttp3/OkHttpClient;" const val CREATE_NEW_CLIENT_METHOD = "createClient()Lokhttp3/OkHttpClient;" -fun fixRedgifsApi( +fun fixRedgifsApiPatch( extensionPatch: Patch, block: BytecodePatchBuilder.() -> Unit = {}, ) = bytecodePatch("Fix Redgifs API") { diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/FixSLinksPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/FixSLinksPatch.kt index 3b8d63251b..106e1ba23c 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/FixSLinksPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/FixSLinksPatch.kt @@ -10,9 +10,7 @@ const val SET_ACCESS_TOKEN_METHOD = "patchSetAccessToken(Ljava/lang/String;)V" fun fixSLinksPatch( extensionPatch: Patch, block: BytecodePatchBuilder.() -> Unit = {}, -) = bytecodePatch( - "Fix /s/ links", -) { +) = bytecodePatch("Fix /s/ links") { dependsOn(extensionPatch) block() diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/baconreader/fix/redgifs/FixRedgifsApiPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/baconreader/fix/redgifs/FixRedgifsApiPatch.kt index 74f206c380..2ffc07ecd8 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/baconreader/fix/redgifs/FixRedgifsApiPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/baconreader/fix/redgifs/FixRedgifsApiPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.reddit.customclients.baconreader.fix.redgifs import app.revanced.patcher.extensions.getInstruction import app.revanced.patcher.extensions.removeInstructions import app.revanced.patcher.extensions.replaceInstruction -import app.revanced.patches.reddit.customclients.fixRedgifsApi +import app.revanced.patches.reddit.customclients.fixRedgifsApiPatch import app.revanced.patches.reddit.customclients.INSTALL_NEW_CLIENT_METHOD import app.revanced.patches.reddit.customclients.baconreader.misc.extension.sharedExtensionPatch import app.revanced.util.getReference @@ -16,7 +16,7 @@ import com.android.tools.smali.dexlib2.iface.reference.TypeReference internal const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/baconreader/FixRedgifsApiPatch;" @Suppress("unused") -val fixRedgifsApi = fixRedgifsApi( +val fixRedgifsApi = fixRedgifsApiPatch( extensionPatch = sharedExtensionPatch ) { compatibleWith( diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/fix/redgifs/FixRedgifsApiPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/fix/redgifs/FixRedgifsApiPatch.kt index a9abcacfff..ec5b904c8d 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/fix/redgifs/FixRedgifsApiPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/fix/redgifs/FixRedgifsApiPatch.kt @@ -3,14 +3,14 @@ package app.revanced.patches.reddit.customclients.boostforreddit.fix.redgifs import app.revanced.patcher.extensions.methodReference import app.revanced.patcher.extensions.replaceInstruction import app.revanced.patches.reddit.customclients.CREATE_NEW_CLIENT_METHOD -import app.revanced.patches.reddit.customclients.fixRedgifsApi +import app.revanced.patches.reddit.customclients.fixRedgifsApiPatch import app.revanced.patches.reddit.customclients.boostforreddit.misc.extension.sharedExtensionPatch import app.revanced.util.indexOfFirstInstructionOrThrow private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/boostforreddit/FixRedgifsApiPatch;" @Suppress("unused") -val fixRedgifsApi = fixRedgifsApi( +val fixRedgifsApi = fixRedgifsApiPatch( extensionPatch = sharedExtensionPatch ) { compatibleWith("com.rubenmayayo.reddit") diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/joeyforreddit/ads/DisableAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/joeyforreddit/ads/DisableAdsPatch.kt index b95f72fbe9..ef8a73e51d 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/joeyforreddit/ads/DisableAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/joeyforreddit/ads/DisableAdsPatch.kt @@ -1,12 +1,12 @@ package app.revanced.patches.reddit.customclients.joeyforreddit.ads import app.revanced.patcher.patch.creatingBytecodePatch -import app.revanced.patches.reddit.customclients.joeyforreddit.detection.piracy.`Disable piracy detection` +import app.revanced.patches.reddit.customclients.joeyforreddit.detection.piracy.disablePiracyDetectionPatch import app.revanced.util.returnEarly @Suppress("unused", "ObjectPropertyName") val `Disable ads` by creatingBytecodePatch { - dependsOn(`Disable piracy detection`) + dependsOn(disablePiracyDetectionPatch) compatibleWith("o.o.joey") diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/joeyforreddit/detection/piracy/DisablePiracyDetectionPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/joeyforreddit/detection/piracy/DisablePiracyDetectionPatch.kt index 5ad24d59f3..85a9ed8d10 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/joeyforreddit/detection/piracy/DisablePiracyDetectionPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/joeyforreddit/detection/piracy/DisablePiracyDetectionPatch.kt @@ -1,10 +1,10 @@ package app.revanced.patches.reddit.customclients.joeyforreddit.detection.piracy import app.revanced.patcher.extensions.addInstruction -import app.revanced.patcher.patch.creatingBytecodePatch +import app.revanced.patcher.patch.bytecodePatch -@Suppress("unused", "ObjectPropertyName") -val `Disable piracy detection` by creatingBytecodePatch { +@Suppress("unused") +val disablePiracyDetectionPatch = bytecodePatch { apply { piracyDetectionMethod.addInstruction(0, "return-void") } diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/fix/redgifs/FixRedgifsApiPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/fix/redgifs/FixRedgifsApiPatch.kt index 40bbcda749..9d64541982 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/fix/redgifs/FixRedgifsApiPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/fix/redgifs/FixRedgifsApiPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.extensions.getInstruction import app.revanced.patcher.extensions.replaceInstruction import app.revanced.patches.reddit.customclients.INSTALL_NEW_CLIENT_METHOD -import app.revanced.patches.reddit.customclients.fixRedgifsApi +import app.revanced.patches.reddit.customclients.fixRedgifsApiPatch import app.revanced.patches.reddit.customclients.sync.syncforreddit.extension.sharedExtensionPatch import app.revanced.util.getReference import app.revanced.util.indexOfFirstInstructionOrThrow @@ -14,7 +14,7 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference internal const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/syncforreddit/FixRedgifsApiPatch;" @Suppress("unused") -val fixRedgifsApi = fixRedgifsApi( +val fixRedgifsApi = fixRedgifsApiPatch( extensionPatch = sharedExtensionPatch ) { compatibleWith( diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/SanitizeUrlQueryPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/SanitizeUrlQueryPatch.kt index b5b813d210..30c444ae75 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/SanitizeUrlQueryPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/SanitizeUrlQueryPatch.kt @@ -1,11 +1,10 @@ package app.revanced.patches.reddit.misc.tracking.url import app.revanced.patcher.extensions.addInstructions -import app.revanced.patcher.patch.bytecodePatch +import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") -val sanitizeUrlQueryPatch = bytecodePatch( - name = "Sanitize sharing links", +@Suppress("unused", "ObjectPropertyName") +val `Sanitize sharing links` by creatingBytecodePatch( description = "Removes the tracking query parameters from shared links.", ) { compatibleWith("com.reddit.frontpage") diff --git a/patches/src/main/kotlin/app/revanced/patches/serviceportalbund/detection/root/RootDetectionPatch.kt b/patches/src/main/kotlin/app/revanced/patches/serviceportalbund/detection/root/RootDetectionPatch.kt index 52ac9dd7c3..62d1bb81b6 100644 --- a/patches/src/main/kotlin/app/revanced/patches/serviceportalbund/detection/root/RootDetectionPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/serviceportalbund/detection/root/RootDetectionPatch.kt @@ -1,11 +1,10 @@ package app.revanced.patches.serviceportalbund.detection.root import app.revanced.patcher.extensions.addInstruction -import app.revanced.patcher.patch.bytecodePatch +import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") -val rootDetectionPatch = bytecodePatch( - name = "Remove root detection", +@Suppress("unused", "ObjectPropertyName") +val `Remove root detection` by creatingBytecodePatch( description = "Removes the check for root permissions and unlocked bootloader." ) { compatibleWith("at.gv.bka.serviceportal") diff --git a/patches/src/main/kotlin/app/revanced/patches/spotify/misc/privacy/SanitizeSharingLinksPatch.kt b/patches/src/main/kotlin/app/revanced/patches/spotify/misc/privacy/SanitizeSharingLinksPatch.kt index 2a2c65377d..c7057a69dd 100644 --- a/patches/src/main/kotlin/app/revanced/patches/spotify/misc/privacy/SanitizeSharingLinksPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/spotify/misc/privacy/SanitizeSharingLinksPatch.kt @@ -3,6 +3,7 @@ package app.revanced.patches.spotify.misc.privacy import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.extensions.getInstruction import app.revanced.patcher.patch.bytecodePatch +import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.spotify.misc.extension.sharedExtensionPatch import app.revanced.util.getReference import app.revanced.util.indexOfFirstInstructionOrThrow @@ -13,9 +14,8 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/spotify/misc/privacy/SanitizeSharingLinksPatch;" -@Suppress("unused") -val sanitizeSharingLinksPatch = bytecodePatch( - name = "Sanitize sharing links", +@Suppress("unused", "ObjectPropertyName") +val `Sanitize sharing links` by creatingBytecodePatch( description = "Removes the tracking query parameters from shared links.", ) { compatibleWith("com.spotify.music") diff --git a/patches/src/main/kotlin/app/revanced/patches/tiktok/misc/share/SanitizeShareUrlsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/tiktok/misc/share/SanitizeShareUrlsPatch.kt index dbe1537e54..6e5612a9d6 100644 --- a/patches/src/main/kotlin/app/revanced/patches/tiktok/misc/share/SanitizeShareUrlsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/tiktok/misc/share/SanitizeShareUrlsPatch.kt @@ -2,7 +2,7 @@ package app.revanced.patches.tiktok.misc.share import app.revanced.patcher.extensions.addInstructionsWithLabels import app.revanced.patcher.extensions.getInstruction -import app.revanced.patcher.patch.bytecodePatch +import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.tiktok.misc.extension.sharedExtensionPatch import app.revanced.util.findFreeRegister import app.revanced.util.getReference @@ -15,9 +15,8 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/tiktok/share/ShareUrlSanitizer;" -@Suppress("unused") -val sanitizeShareUrlsPatch = bytecodePatch( - name = "Sanitize sharing links", +@Suppress("unused", "ObjectPropertyName") +val `Sanitize sharing links` by creatingBytecodePatch( description = "Removes the tracking query parameters from shared links.", ) { dependsOn(sharedExtensionPatch) diff --git a/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/SanitizeSharingLinksPatch.kt b/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/SanitizeSharingLinksPatch.kt index 90a78eb7fe..6ca6e51423 100644 --- a/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/SanitizeSharingLinksPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/SanitizeSharingLinksPatch.kt @@ -1,11 +1,10 @@ package app.revanced.patches.twitter.misc.links import app.revanced.patcher.extensions.addInstructions -import app.revanced.patcher.patch.bytecodePatch +import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") -val sanitizeSharingLinksPatch = bytecodePatch( - name = "Sanitize sharing links", +@Suppress("unused", "ObjectPropertyName") +val `Sanitize sharing links` by creatingBytecodePatch( description = "Removes the tracking query parameters from shared links.", ) { compatibleWith( diff --git a/patches/src/main/kotlin/app/revanced/patches/viber/misc/navbar/HideNavigationButtons.kt b/patches/src/main/kotlin/app/revanced/patches/viber/misc/navbar/HideNavigationButtons.kt index 030001b5bf..b64e63fb4c 100644 --- a/patches/src/main/kotlin/app/revanced/patches/viber/misc/navbar/HideNavigationButtons.kt +++ b/patches/src/main/kotlin/app/revanced/patches/viber/misc/navbar/HideNavigationButtons.kt @@ -2,12 +2,11 @@ package app.revanced.patches.viber.misc.navbar import app.revanced.patcher.extensions.addInstructionsWithLabels import app.revanced.patcher.patch.booleanOption -import app.revanced.patcher.patch.bytecodePatch +import app.revanced.patcher.patch.creatingBytecodePatch import java.util.logging.Logger -@Suppress("unused") -val hideNavigationButtonsPatch = bytecodePatch( - name = "Hide navigation buttons", +@Suppress("unused", "ObjectPropertyName") +val `Hide navigation buttons` by creatingBytecodePatch( description = "Permanently hides navigation bar buttons, such as Explore and Marketplace.", use = false ) {