diff --git a/patches/src/main/kotlin/app/revanced/patches/all/misc/build/SpoofBuildInfoPatch.kt b/patches/src/main/kotlin/app/revanced/patches/all/misc/build/SpoofBuildInfoPatch.kt index e077cc4ed..056a57511 100644 --- a/patches/src/main/kotlin/app/revanced/patches/all/misc/build/SpoofBuildInfoPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/all/misc/build/SpoofBuildInfoPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patcher.patch.longOption import app.revanced.patcher.patch.stringOption -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Spoof build info` by creatingBytecodePatch( description = "Spoofs the information about the current build.", use = false, @@ -103,8 +103,8 @@ val `Spoof build info` by creatingBytecodePatch( default = null, name = "Radio", description = "This field was deprecated in API level 15. " + - "The radio firmware version is frequently not available when this class is initialized, " + - "leading to a blank or \"unknown\" value for this string. Use getRadioVersion() instead.", + "The radio firmware version is frequently not available when this class is initialized, " + + "leading to a blank or \"unknown\" value for this string. Use getRadioVersion() instead.", ) val serial by stringOption( @@ -183,6 +183,6 @@ val `Spoof build info` by creatingBytecodePatch( type, user, ) - } + }, ) } diff --git a/patches/src/main/kotlin/app/revanced/patches/all/misc/connectivity/location/hide/HideMockLocationPatch.kt b/patches/src/main/kotlin/app/revanced/patches/all/misc/connectivity/location/hide/HideMockLocationPatch.kt index 87baeb7c7..ec0d44d8e 100644 --- a/patches/src/main/kotlin/app/revanced/patches/all/misc/connectivity/location/hide/HideMockLocationPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/all/misc/connectivity/location/hide/HideMockLocationPatch.kt @@ -1,5 +1,3 @@ -@file:Suppress("unused") - package app.revanced.patches.all.misc.connectivity.location.hide import app.revanced.patcher.extensions.replaceInstruction diff --git a/patches/src/main/kotlin/app/revanced/patches/all/misc/connectivity/telephony/sim/spoof/SpoofSimProviderPatch.kt b/patches/src/main/kotlin/app/revanced/patches/all/misc/connectivity/telephony/sim/spoof/SpoofSimProviderPatch.kt index 26b9bf044..27274810f 100644 --- a/patches/src/main/kotlin/app/revanced/patches/all/misc/connectivity/telephony/sim/spoof/SpoofSimProviderPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/all/misc/connectivity/telephony/sim/spoof/SpoofSimProviderPatch.kt @@ -14,7 +14,7 @@ import com.android.tools.smali.dexlib2.mutable.MutableMethod import com.android.tools.smali.dexlib2.util.MethodUtil import java.util.* -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Spoof SIM provider` by creatingBytecodePatch( description = "Spoofs information about the SIM card provider.", use = false, @@ -39,7 +39,7 @@ val `Spoof SIM provider` by creatingBytecodePatch( val networkOperator by intOption( name = "MCC+MNC network operator code", description = "The 5 or 6 digits MCC+MNC (Mobile Country Code + Mobile Network Code) of the network operator.", - validator = { isMccMncValid(it) } + validator = { isMccMncValid(it) }, ) val networkOperatorName by stringOption( @@ -52,7 +52,7 @@ val `Spoof SIM provider` by creatingBytecodePatch( val simOperator by intOption( name = "MCC+MNC SIM operator code", description = "The 5 or 6 digits MCC+MNC (Mobile Country Code + Mobile Network Code) of the SIM operator.", - validator = { isMccMncValid(it) } + validator = { isMccMncValid(it) }, ) val simOperatorName by stringOption( diff --git a/patches/src/main/kotlin/app/revanced/patches/all/misc/connectivity/wifi/spoof/SpoofWifiPatch.kt b/patches/src/main/kotlin/app/revanced/patches/all/misc/connectivity/wifi/spoof/SpoofWifiPatch.kt index 09a79d441..4a8e939bf 100644 --- a/patches/src/main/kotlin/app/revanced/patches/all/misc/connectivity/wifi/spoof/SpoofWifiPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/all/misc/connectivity/wifi/spoof/SpoofWifiPatch.kt @@ -10,7 +10,7 @@ private const val EXTENSION_CLASS_DESCRIPTOR_PREFIX = private const val EXTENSION_CLASS_DESCRIPTOR = "$EXTENSION_CLASS_DESCRIPTOR_PREFIX;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Spoof Wi-Fi connection` by creatingBytecodePatch( description = "Spoofs an existing Wi-Fi connection.", use = false, diff --git a/patches/src/main/kotlin/app/revanced/patches/all/misc/debugging/EnableAndroidDebuggingPatch.kt b/patches/src/main/kotlin/app/revanced/patches/all/misc/debugging/EnableAndroidDebuggingPatch.kt index 5abcd0cd9..a0c2e94bb 100644 --- a/patches/src/main/kotlin/app/revanced/patches/all/misc/debugging/EnableAndroidDebuggingPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/all/misc/debugging/EnableAndroidDebuggingPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.all.misc.debugging import app.revanced.patcher.patch.creatingResourcePatch import org.w3c.dom.Element -@Suppress("ObjectPropertyName", "unused") +@Suppress("unused", "ObjectPropertyName") val `Enable Android debugging` by creatingResourcePatch( description = "Enables Android debugging capabilities. This can slow down the app.", use = false, diff --git a/patches/src/main/kotlin/app/revanced/patches/all/misc/directory/documentsprovider/ExportInternalDataDocumentsProviderPatch.kt b/patches/src/main/kotlin/app/revanced/patches/all/misc/directory/documentsprovider/ExportInternalDataDocumentsProviderPatch.kt index 7064eb63d..2be947ac2 100644 --- a/patches/src/main/kotlin/app/revanced/patches/all/misc/directory/documentsprovider/ExportInternalDataDocumentsProviderPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/all/misc/directory/documentsprovider/ExportInternalDataDocumentsProviderPatch.kt @@ -5,10 +5,10 @@ import app.revanced.patcher.patch.creatingResourcePatch import app.revanced.util.asSequence import app.revanced.util.getNode -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Export internal data documents provider` = creatingResourcePatch( description = "Exports a documents provider that grants access to the internal data directory of this app " + - "to file managers and other apps that support the Storage Access Framework.", + "to file managers and other apps that support the Storage Access Framework.", use = false, ) { dependsOn( diff --git a/patches/src/main/kotlin/app/revanced/patches/all/misc/playintegrity/DisablePlayIntegrity.kt b/patches/src/main/kotlin/app/revanced/patches/all/misc/playintegrity/DisablePlayIntegrity.kt index 7a5ae5c3f..e738504f1 100644 --- a/patches/src/main/kotlin/app/revanced/patches/all/misc/playintegrity/DisablePlayIntegrity.kt +++ b/patches/src/main/kotlin/app/revanced/patches/all/misc/playintegrity/DisablePlayIntegrity.kt @@ -15,11 +15,10 @@ private val CONTEXT_BIND_SERVICE_METHOD_REFERENCE = ImmutableMethodReference( "Landroid/content/Context;", "bindService", listOf("Landroid/content/Intent;", "Landroid/content/ServiceConnection;", "I"), - "Z" + "Z", ) - -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable Play Integrity` by creatingBytecodePatch( description = "Prevents apps from using Play Integrity by pretending it is not available.", use = false, @@ -46,9 +45,9 @@ val `Disable Play Integrity` by creatingBytecodePatch( method.replaceInstruction( index, - "invoke-static { $registerString }, $EXTENSION_CLASS_DESCRIPTOR->bindService(Landroid/content/Context;$parameterString)Z" + "invoke-static { $registerString }, $EXTENSION_CLASS_DESCRIPTOR->bindService(Landroid/content/Context;$parameterString)Z", ) - } - ) + }, + ), ) } diff --git a/patches/src/main/kotlin/app/revanced/patches/all/misc/shortcut/sharetargets/RemoveShareTargetsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/all/misc/shortcut/sharetargets/RemoveShareTargetsPatch.kt index 1f342b8e8..b7991dcd9 100644 --- a/patches/src/main/kotlin/app/revanced/patches/all/misc/shortcut/sharetargets/RemoveShareTargetsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/all/misc/shortcut/sharetargets/RemoveShareTargetsPatch.kt @@ -7,7 +7,7 @@ import org.w3c.dom.Element import java.io.FileNotFoundException import java.util.logging.Logger -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Remove share targets` = creatingResourcePatch( description = "Removes share targets like directly sharing to a frequent contact.", use = false, @@ -17,7 +17,7 @@ val `Remove share targets` = creatingResourcePatch( document("res/xml/shortcuts.xml") } catch (_: FileNotFoundException) { return@apply Logger.getLogger(this::class.java.name).warning( - "The app has no shortcuts. No changes applied." + "The app has no shortcuts. No changes applied.", ) }.use { document -> val rootNode = document.getNode("shortcuts") as? Element ?: return@use diff --git a/patches/src/main/kotlin/app/revanced/patches/all/misc/targetSdk/SetTargetSdkVersion34.kt b/patches/src/main/kotlin/app/revanced/patches/all/misc/targetSdk/SetTargetSdkVersion34.kt index ce181151b..e3ca2f81f 100644 --- a/patches/src/main/kotlin/app/revanced/patches/all/misc/targetSdk/SetTargetSdkVersion34.kt +++ b/patches/src/main/kotlin/app/revanced/patches/all/misc/targetSdk/SetTargetSdkVersion34.kt @@ -5,10 +5,10 @@ import app.revanced.util.getNode import org.w3c.dom.Element import java.util.logging.Logger -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Set target SDK version 34` = creatingResourcePatch( description = "Changes the target SDK to version 34 (Android 14). " + - "For devices running Android 15+, this will disable edge-to-edge display.", + "For devices running Android 15+, this will disable edge-to-edge display.", use = false, ) { apply { @@ -23,12 +23,12 @@ val `Set target SDK version 34` = creatingResourcePatch( try { val manifestElement = document.getNode("manifest") as Element val compileSdkVersion = Integer.parseInt( - manifestElement.getAttribute("android:compileSdkVersion") + manifestElement.getAttribute("android:compileSdkVersion"), ) if (compileSdkVersion <= targetSdkOverride) { getLogger().warning( "This app does not appear to use a target SDK above $targetSdkOverride: " + - "(compileSdkVersion: $compileSdkVersion)" + "(compileSdkVersion: $compileSdkVersion)", ) } } catch (_: Exception) { diff --git a/patches/src/main/kotlin/app/revanced/patches/all/misc/versioncode/ChangeVersionCodePatch.kt b/patches/src/main/kotlin/app/revanced/patches/all/misc/versioncode/ChangeVersionCodePatch.kt index 28ec9d547..b61dbd882 100644 --- a/patches/src/main/kotlin/app/revanced/patches/all/misc/versioncode/ChangeVersionCodePatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/all/misc/versioncode/ChangeVersionCodePatch.kt @@ -5,10 +5,10 @@ import app.revanced.patcher.patch.intOption import app.revanced.util.getNode import org.w3c.dom.Element -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Change version code` = creatingResourcePatch( description = "Changes the version code of the app. This will turn off app store updates " + - "and allows downgrading an existing app install to an older app version.", + "and allows downgrading an existing app install to an older app version.", use = false, ) { val versionCode by intOption( @@ -19,7 +19,7 @@ val `Change version code` = creatingResourcePatch( ), name = "Version code", description = "The version code to use. Using the highest value turns off app store " + - "updates and allows downgrading an existing app install to an older app version.", + "updates and allows downgrading an existing app install to an older app version.", required = true, ) { versionCode -> versionCode!! >= 1 } diff --git a/patches/src/main/kotlin/app/revanced/patches/amazon/DeepLinkingPatch.kt b/patches/src/main/kotlin/app/revanced/patches/amazon/DeepLinkingPatch.kt index 0581821d1..14045ab6f 100644 --- a/patches/src/main/kotlin/app/revanced/patches/amazon/DeepLinkingPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/amazon/DeepLinkingPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.amazon import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Always allow deep-linking` by creatingBytecodePatch( description = "Open Amazon links, even if the app is not set to handle Amazon links.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/angulus/ads/RemoveAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/angulus/ads/RemoveAdsPatch.kt index bb8346cf0..27f57ba73 100644 --- a/patches/src/main/kotlin/app/revanced/patches/angulus/ads/RemoveAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/angulus/ads/RemoveAdsPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.shared.misc.pairip.license.`Disable Pairip license check` import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide ads` by creatingBytecodePatch { compatibleWith("com.drinkplusplus.angulus") diff --git a/patches/src/main/kotlin/app/revanced/patches/bandcamp/limitations/RemovePlayLimitsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/bandcamp/limitations/RemovePlayLimitsPatch.kt index 8ba34a874..95e9653b6 100644 --- a/patches/src/main/kotlin/app/revanced/patches/bandcamp/limitations/RemovePlayLimitsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/bandcamp/limitations/RemovePlayLimitsPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.bandcamp.limitations import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Remove play limits` by creatingBytecodePatch( description = "Disables purchase nagging and playback limits of not purchased tracks.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/cieid/restrictions/root/BypassRootChecksPatch.kt b/patches/src/main/kotlin/app/revanced/patches/cieid/restrictions/root/BypassRootChecksPatch.kt index e7376defa..9d06990f8 100644 --- a/patches/src/main/kotlin/app/revanced/patches/cieid/restrictions/root/BypassRootChecksPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/cieid/restrictions/root/BypassRootChecksPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.cieid.restrictions.root import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Bypass root checks` by creatingBytecodePatch( description = "Removes the restriction to use the app with root permissions or on a custom ROM.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/com/sbs/ondemand/tv/RemoveAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/com/sbs/ondemand/tv/RemoveAdsPatch.kt index 976c232e2..b64d80146 100644 --- a/patches/src/main/kotlin/app/revanced/patches/com/sbs/ondemand/tv/RemoveAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/com/sbs/ondemand/tv/RemoveAdsPatch.kt @@ -5,7 +5,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.shared.misc.pairip.license.`Disable Pairip license check` import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Remove ads` by creatingBytecodePatch( description = "Removes pre-roll, pause and on-demand advertisements from SBS On Demand TV.", ) { @@ -30,7 +30,7 @@ val `Remove ads` by creatingBytecodePatch( const-string v1, "Ad stream disabled" invoke-direct {v0, v1}, Ljava/lang/RuntimeException;->(Ljava/lang/String;)V throw v0 - """ + """, ) } } diff --git a/patches/src/main/kotlin/app/revanced/patches/cricbuzz/ads/DisableAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/cricbuzz/ads/DisableAdsPatch.kt index 4c1c2ee69..71e120ef3 100644 --- a/patches/src/main/kotlin/app/revanced/patches/cricbuzz/ads/DisableAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/cricbuzz/ads/DisableAdsPatch.kt @@ -14,7 +14,7 @@ import com.android.tools.smali.dexlib2.iface.reference.FieldReference private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/cricbuzz/ads/HideAdsPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide ads` by creatingBytecodePatch { compatibleWith("com.cricbuzz.android"("6.24.01")) diff --git a/patches/src/main/kotlin/app/revanced/patches/disneyplus/SkipAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/disneyplus/SkipAdsPatch.kt index def32190b..82a7d614a 100644 --- a/patches/src/main/kotlin/app/revanced/patches/disneyplus/SkipAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/disneyplus/SkipAdsPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.disneyplus import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Skip ads` by creatingBytecodePatch( description = "Automatically skips ads.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/duolingo/ad/DisableAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/duolingo/ad/DisableAdsPatch.kt index f96985e15..d2895eefa 100644 --- a/patches/src/main/kotlin/app/revanced/patches/duolingo/ad/DisableAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/duolingo/ad/DisableAdsPatch.kt @@ -6,7 +6,7 @@ import app.revanced.patcher.extensions.getInstruction import app.revanced.patcher.patch.creatingBytecodePatch import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable ads` by creatingBytecodePatch { // 6.55.3 and higher can show ads after each exercise. compatibleWith("com.duolingo"("6.54.5")) diff --git a/patches/src/main/kotlin/app/revanced/patches/duolingo/debug/EnableDebugMenuPatch.kt b/patches/src/main/kotlin/app/revanced/patches/duolingo/debug/EnableDebugMenuPatch.kt index 27eecfb10..227521426 100644 --- a/patches/src/main/kotlin/app/revanced/patches/duolingo/debug/EnableDebugMenuPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/duolingo/debug/EnableDebugMenuPatch.kt @@ -7,7 +7,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Enable debug menu` by creatingBytecodePatch( use = false, ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/facebook/ads/story/HideStoryAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/facebook/ads/story/HideStoryAdsPatch.kt index 832f1099e..e078a4481 100644 --- a/patches/src/main/kotlin/app/revanced/patches/facebook/ads/story/HideStoryAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/facebook/ads/story/HideStoryAdsPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly import com.android.tools.smali.dexlib2.mutable.MutableMethod -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide story ads` by creatingBytecodePatch( description = "Hides the ads in the Facebook app stories.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/finanzonline/detection/bootloader/BootloaderDetectionPatch.kt b/patches/src/main/kotlin/app/revanced/patches/finanzonline/detection/bootloader/BootloaderDetectionPatch.kt index fa785d921..f94c80440 100644 --- a/patches/src/main/kotlin/app/revanced/patches/finanzonline/detection/bootloader/BootloaderDetectionPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/finanzonline/detection/bootloader/BootloaderDetectionPatch.kt @@ -1,9 +1,9 @@ package app.revanced.patches.finanzonline.detection.bootloader -import app.revanced.util.returnEarly import app.revanced.patcher.patch.creatingBytecodePatch +import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Remove bootloader detection` by creatingBytecodePatch( description = "Removes the check for an unlocked bootloader.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/googlenews/customtabs/EnableCustomTabsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/googlenews/customtabs/EnableCustomTabsPatch.kt index 470778dac..f1df804fc 100644 --- a/patches/src/main/kotlin/app/revanced/patches/googlenews/customtabs/EnableCustomTabsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/googlenews/customtabs/EnableCustomTabsPatch.kt @@ -5,7 +5,7 @@ import app.revanced.patcher.extensions.replaceInstruction import app.revanced.patcher.patch.creatingBytecodePatch import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Enable CustomTabs` by creatingBytecodePatch( description = "Enables CustomTabs to open articles in your default browser.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/googlephotos/misc/backup/EnableDCIMFoldersBackupControlPatch.kt b/patches/src/main/kotlin/app/revanced/patches/googlephotos/misc/backup/EnableDCIMFoldersBackupControlPatch.kt index 91419e140..6ccea14d3 100644 --- a/patches/src/main/kotlin/app/revanced/patches/googlephotos/misc/backup/EnableDCIMFoldersBackupControlPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/googlephotos/misc/backup/EnableDCIMFoldersBackupControlPatch.kt @@ -3,10 +3,10 @@ package app.revanced.patches.googlephotos.misc.backup import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Enable DCIM folders backup control` by creatingBytecodePatch( description = "Disables always on backup for the Camera and other DCIM folders, allowing you to control backup " + - "for each folder individually. This will make the app default to having no folders backed up.", + "for each folder individually. This will make the app default to having no folders backed up.", use = false, ) { compatibleWith("com.google.android.apps.photos") diff --git a/patches/src/main/kotlin/app/revanced/patches/googlephotos/misc/features/SpoofFeaturesPatch.kt b/patches/src/main/kotlin/app/revanced/patches/googlephotos/misc/features/SpoofFeaturesPatch.kt index 829da0c41..8f1093e1e 100644 --- a/patches/src/main/kotlin/app/revanced/patches/googlephotos/misc/features/SpoofFeaturesPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/googlephotos/misc/features/SpoofFeaturesPatch.kt @@ -9,7 +9,7 @@ import com.android.tools.smali.dexlib2.Opcode import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction import com.android.tools.smali.dexlib2.iface.reference.StringReference -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Spoof features` by creatingBytecodePatch( description = "Spoofs the device to enable Google Pixel exclusive features, including unlimited storage.", ) { @@ -48,7 +48,7 @@ val `Spoof features` by creatingBytecodePatch( ), name = "Features to disable", description = "Google Pixel exclusive features to disable." + - "Features after Pixel XL may have to be disabled for unlimited storage depending on the device.", + "Features after Pixel XL may have to be disabled for unlimited storage depending on the device.", required = true, ) diff --git a/patches/src/main/kotlin/app/revanced/patches/hexeditor/ad/DisableAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/hexeditor/ad/DisableAdsPatch.kt index 53e2d5c27..a426cf5c8 100644 --- a/patches/src/main/kotlin/app/revanced/patches/hexeditor/ad/DisableAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/hexeditor/ad/DisableAdsPatch.kt @@ -1,9 +1,9 @@ package app.revanced.patches.hexeditor.ad -import app.revanced.util.returnEarly import app.revanced.patcher.patch.creatingBytecodePatch +import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable ads` by creatingBytecodePatch { compatibleWith("com.myprog.hexedit") diff --git a/patches/src/main/kotlin/app/revanced/patches/iconpackstudio/misc/pro/UnlockProPatch.kt b/patches/src/main/kotlin/app/revanced/patches/iconpackstudio/misc/pro/UnlockProPatch.kt index bb153ca7b..5e1e027f8 100644 --- a/patches/src/main/kotlin/app/revanced/patches/iconpackstudio/misc/pro/UnlockProPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/iconpackstudio/misc/pro/UnlockProPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.iconpackstudio.misc.pro import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Unlock pro` by creatingBytecodePatch { compatibleWith("ginlemon.iconpackstudio"("2.2 build 016")) diff --git a/patches/src/main/kotlin/app/revanced/patches/idaustria/detection/deviceintegrity/RemoveDeviceIntegrityChecksPatch.kt b/patches/src/main/kotlin/app/revanced/patches/idaustria/detection/deviceintegrity/RemoveDeviceIntegrityChecksPatch.kt index f74d18fe9..16f04ea6a 100644 --- a/patches/src/main/kotlin/app/revanced/patches/idaustria/detection/deviceintegrity/RemoveDeviceIntegrityChecksPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/idaustria/detection/deviceintegrity/RemoveDeviceIntegrityChecksPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Remove device integrity checks` by creatingBytecodePatch( description = "Removes the check for root permissions and unlocked bootloader.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/idaustria/detection/signature/SpoofSignaturePatch.kt b/patches/src/main/kotlin/app/revanced/patches/idaustria/detection/signature/SpoofSignaturePatch.kt index 94474bd31..801e89df3 100644 --- a/patches/src/main/kotlin/app/revanced/patches/idaustria/detection/signature/SpoofSignaturePatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/idaustria/detection/signature/SpoofSignaturePatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.idaustria.detection.signature import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Spoof signature` by creatingBytecodePatch( description = "Spoofs the signature of the app.", ) { @@ -12,16 +12,16 @@ val `Spoof signature` by creatingBytecodePatch( apply { val expectedSignature = "OpenSSLRSAPublicKey{modulus=ac3e6fd6050aa7e0d6010ae58190404cd89a56935b44f6fee" + - "067c149768320026e10b24799a1339e414605e448e3f264444a327b9ae292be2b62ad567dd1800dbed4a88f718a33dc6db6b" + - "f5178aa41aa0efff8a3409f5ca95dbfccd92c7b4298966df806ea7a0204a00f0e745f6d9f13bdf24f3df715d7b62c1600906" + - "15de1c8a956b9286764985a3b3c060963c435fb9481a5543aaf0671fc2dba6c5c2b17d1ef1d85137f14dc9bbdf3490288087" + - "324cd48341cce64fabf6a9b55d1a7bf23b2fcdff451fd85bf0c7feb0a5e884d7c5c078e413149566a12a686e6efa70ae5161" + - "a0201307692834cda336c55157fef125e67c01c1359886f94742105596b42a790404bbcda5dad6a65f115aaff5e45ef3c28b" + - "2316ff6cef07aa49a45aa58c07bf258051b13ef449ccb37a3679afd5cfb9132f70bb9d931a937897544f90c3bcc80ed012e9" + - "f6ba020b8cdc23f8c29ac092b88f0e370ff9434e4f0f359e614ae0868dc526fa41e4b7596533e8d10279b66e923ecd9f0b20" + - "0def55be2c1f6f9c72c92fb45d7e0a9ac571cb38f0a9a37bb33ea06f223fde8c7a92e8c47769e386f9799776e8f110c21df2" + - "77ef1be61b2c01ebdabddcbf53cc4b6fd9a3c445606ee77b3758162c80ad8f8137b3c6864e92db904807dcb2be9d7717dd21" + - "bf42c121d620ddfb7914f7a95c713d9e1c1b7bdb4a03d618e40cf7e9e235c0b5687e03b7ab3,publicExponent=10001}" + "067c149768320026e10b24799a1339e414605e448e3f264444a327b9ae292be2b62ad567dd1800dbed4a88f718a33dc6db6b" + + "f5178aa41aa0efff8a3409f5ca95dbfccd92c7b4298966df806ea7a0204a00f0e745f6d9f13bdf24f3df715d7b62c1600906" + + "15de1c8a956b9286764985a3b3c060963c435fb9481a5543aaf0671fc2dba6c5c2b17d1ef1d85137f14dc9bbdf3490288087" + + "324cd48341cce64fabf6a9b55d1a7bf23b2fcdff451fd85bf0c7feb0a5e884d7c5c078e413149566a12a686e6efa70ae5161" + + "a0201307692834cda336c55157fef125e67c01c1359886f94742105596b42a790404bbcda5dad6a65f115aaff5e45ef3c28b" + + "2316ff6cef07aa49a45aa58c07bf258051b13ef449ccb37a3679afd5cfb9132f70bb9d931a937897544f90c3bcc80ed012e9" + + "f6ba020b8cdc23f8c29ac092b88f0e370ff9434e4f0f359e614ae0868dc526fa41e4b7596533e8d10279b66e923ecd9f0b20" + + "0def55be2c1f6f9c72c92fb45d7e0a9ac571cb38f0a9a37bb33ea06f223fde8c7a92e8c47769e386f9799776e8f110c21df2" + + "77ef1be61b2c01ebdabddcbf53cc4b6fd9a3c445606ee77b3758162c80ad8f8137b3c6864e92db904807dcb2be9d7717dd21" + + "bf42c121d620ddfb7914f7a95c713d9e1c1b7bdb4a03d618e40cf7e9e235c0b5687e03b7ab3,publicExponent=10001}" spoofSignatureMethod.returnEarly(expectedSignature) } diff --git a/patches/src/main/kotlin/app/revanced/patches/inshorts/ad/InshortsAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/inshorts/ad/InshortsAdsPatch.kt index 3feea1a16..6a07b0cdb 100644 --- a/patches/src/main/kotlin/app/revanced/patches/inshorts/ad/InshortsAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/inshorts/ad/InshortsAdsPatch.kt @@ -1,9 +1,9 @@ package app.revanced.patches.inshorts.ad -import app.revanced.util.returnEarly import app.revanced.patcher.patch.creatingBytecodePatch +import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide ads` by creatingBytecodePatch { compatibleWith("com.nis.app") diff --git a/patches/src/main/kotlin/app/revanced/patches/instagram/ads/HideAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/instagram/ads/HideAdsPatch.kt index 22bd02110..33e75e1b7 100644 --- a/patches/src/main/kotlin/app/revanced/patches/instagram/ads/HideAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/instagram/ads/HideAdsPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.meta.ads.adInjectorMethod import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide ads` by creatingBytecodePatch { compatibleWith("com.instagram.android") diff --git a/patches/src/main/kotlin/app/revanced/patches/instagram/feed/LimitFeedToFollowedProfiles.kt b/patches/src/main/kotlin/app/revanced/patches/instagram/feed/LimitFeedToFollowedProfiles.kt index 3c149ea62..7ba3c0c24 100644 --- a/patches/src/main/kotlin/app/revanced/patches/instagram/feed/LimitFeedToFollowedProfiles.kt +++ b/patches/src/main/kotlin/app/revanced/patches/instagram/feed/LimitFeedToFollowedProfiles.kt @@ -12,7 +12,7 @@ import com.android.tools.smali.dexlib2.iface.reference.FieldReference internal const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/instagram/feed/LimitFeedToFollowedProfiles;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Limit feed to followed profiles` by creatingBytecodePatch( description = "Filters the home feed to display only content from profiles you follow.", use = false, diff --git a/patches/src/main/kotlin/app/revanced/patches/instagram/ghost/story/AnonymousStoryViewingPatch.kt b/patches/src/main/kotlin/app/revanced/patches/instagram/ghost/story/AnonymousStoryViewingPatch.kt index 7509aeb3e..3da541fa0 100644 --- a/patches/src/main/kotlin/app/revanced/patches/instagram/ghost/story/AnonymousStoryViewingPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/instagram/ghost/story/AnonymousStoryViewingPatch.kt @@ -4,14 +4,14 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.Utils.trimIndentMultiline import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Anonymous story viewing` by creatingBytecodePatch( description = """ View stories without sending any information to the server. Your view will not appear in the story viewers list. Note: Since no data is sent, a story you have already viewed may appear as new on another device. """.trimIndentMultiline(), - use = false + use = false, ) { compatibleWith("com.instagram.android") diff --git a/patches/src/main/kotlin/app/revanced/patches/instagram/misc/devmenu/EnableDeveloperMenuPatch.kt b/patches/src/main/kotlin/app/revanced/patches/instagram/misc/devmenu/EnableDeveloperMenuPatch.kt index bd897e786..b8ee11359 100644 --- a/patches/src/main/kotlin/app/revanced/patches/instagram/misc/devmenu/EnableDeveloperMenuPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/instagram/misc/devmenu/EnableDeveloperMenuPatch.kt @@ -8,7 +8,7 @@ import app.revanced.util.returnEarly import com.android.tools.smali.dexlib2.Opcode import com.android.tools.smali.dexlib2.iface.reference.MethodReference -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Enable developer menu` by creatingBytecodePatch( description = """ Enables the developer menu, which can be found at the bottom of settings menu with name 'Internal Settings'. diff --git a/patches/src/main/kotlin/app/revanced/patches/instagram/misc/links/Fingerprint.kt b/patches/src/main/kotlin/app/revanced/patches/instagram/misc/links/Fingerprint.kt index a371ae531..335f8e1c6 100644 --- a/patches/src/main/kotlin/app/revanced/patches/instagram/misc/links/Fingerprint.kt +++ b/patches/src/main/kotlin/app/revanced/patches/instagram/misc/links/Fingerprint.kt @@ -1,14 +1,13 @@ package app.revanced.patches.instagram.misc.links -import app.revanced.patcher.gettingFirstMutableMethodDeclaratively -import app.revanced.patcher.patch.BytecodePatchContext +import app.revanced.patcher.firstMethodComposite +import app.revanced.patcher.instructions +import app.revanced.patcher.invoke import app.revanced.patcher.returnType internal const val TARGET_STRING = "Tracking.ARG_CLICK_SOURCE" -internal val BytecodePatchContext.inAppBrowserFunctionMethod by gettingFirstMutableMethodDeclaratively( - "TrackingInfo.ARG_MODULE_NAME", - TARGET_STRING -) { +internal val inAppBrowserFunctionMethodMatch = firstMethodComposite { + instructions("TrackingInfo.ARG_MODULE_NAME"(), TARGET_STRING()) returnType("Z") } diff --git a/patches/src/main/kotlin/app/revanced/patches/instagram/misc/links/OpenLinksExternallyPatch.kt b/patches/src/main/kotlin/app/revanced/patches/instagram/misc/links/OpenLinksExternallyPatch.kt index 5e4c8429b..3faeb280d 100644 --- a/patches/src/main/kotlin/app/revanced/patches/instagram/misc/links/OpenLinksExternallyPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/instagram/misc/links/OpenLinksExternallyPatch.kt @@ -10,7 +10,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/instagram/misc/links/OpenLinksExternallyPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Open links externally` by creatingBytecodePatch( description = "Changes links to always open in your external browser, instead of the in-app browser.", use = false, @@ -21,12 +21,13 @@ val `Open links externally` by creatingBytecodePatch( compatibleWith("com.instagram.android") apply { - inAppBrowserFunctionFingerprint.let { + inAppBrowserFunctionMethodMatch.let { val stringMatchIndex = it.stringMatches?.first { match -> match.string == TARGET_STRING }!!.index it.method.apply { val urlResultObjIndex = indexOfFirstInstructionOrThrow( - stringMatchIndex, Opcode.MOVE_OBJECT_FROM16 + stringMatchIndex, + Opcode.MOVE_OBJECT_FROM16, ) // Register that contains the url after moving from a higher register. @@ -38,7 +39,7 @@ val `Open links externally` by creatingBytecodePatch( invoke-static { v$urlRegister }, $EXTENSION_CLASS_DESCRIPTOR->openExternally(Ljava/lang/String;)Z move-result v$urlRegister return v$urlRegister - """ + """, ) } } diff --git a/patches/src/main/kotlin/app/revanced/patches/instagram/misc/share/domain/ChangeLinkSharingDomainPatch.kt b/patches/src/main/kotlin/app/revanced/patches/instagram/misc/share/domain/ChangeLinkSharingDomainPatch.kt index 5f301f07f..39c6fea7e 100644 --- a/patches/src/main/kotlin/app/revanced/patches/instagram/misc/share/domain/ChangeLinkSharingDomainPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/instagram/misc/share/domain/ChangeLinkSharingDomainPatch.kt @@ -10,7 +10,7 @@ import app.revanced.util.returnEarly internal const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/instagram/misc/share/domain/ChangeLinkSharingDomainPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Change link sharing domain` by creatingBytecodePatch( description = "Replaces the domain name of shared links.", use = false, diff --git a/patches/src/main/kotlin/app/revanced/patches/instagram/misc/signature/SignatureCheckPatch.kt b/patches/src/main/kotlin/app/revanced/patches/instagram/misc/signature/SignatureCheckPatch.kt index 2f3aaa85f..12fe23ea5 100644 --- a/patches/src/main/kotlin/app/revanced/patches/instagram/misc/signature/SignatureCheckPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/instagram/misc/signature/SignatureCheckPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.instagram.misc.signature import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable signature check` by creatingBytecodePatch( description = "Disables the signature check that can cause the app to crash on startup. " + "Using this patch may cause issues with sharing or opening external Instagram links.", diff --git a/patches/src/main/kotlin/app/revanced/patches/instagram/reels/DisableReelsScrollingPatch.kt b/patches/src/main/kotlin/app/revanced/patches/instagram/reels/DisableReelsScrollingPatch.kt index eba583eb7..3e83ed924 100644 --- a/patches/src/main/kotlin/app/revanced/patches/instagram/reels/DisableReelsScrollingPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/instagram/reels/DisableReelsScrollingPatch.kt @@ -5,11 +5,11 @@ import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable Reels scrolling` by creatingBytecodePatch( description = "Disables the endless scrolling behavior in Instagram Reels, preventing swiping to the next Reel. " + - "Note: On a clean install, the 'Tip' animation may appear but will stop on its own after a few seconds.", - use = true + "Note: On a clean install, the 'Tip' animation may appear but will stop on its own after a few seconds.", + use = true, ) { compatibleWith("com.instagram.android") @@ -25,10 +25,10 @@ val `Disable Reels scrolling` by creatingBytecodePatch( iget-object v0, p0, $viewPagerField const/4 v1, 0x0 invoke-virtual { v0, v1 }, Landroidx/viewpager2/widget/ViewPager2;->setUserInputEnabled(Z)V - """ + """, ) // Return false in onInterceptTouchEvent to disable pull-to-refresh. clipsSwipeRefreshLayoutOnInterceptTouchEventMethod.returnEarly(false) } -} \ No newline at end of file +} diff --git a/patches/src/main/kotlin/app/revanced/patches/instagram/story/flipping/DisableStoryAutoFlippingPatch.kt b/patches/src/main/kotlin/app/revanced/patches/instagram/story/flipping/DisableStoryAutoFlippingPatch.kt index 495610b85..d5592d935 100644 --- a/patches/src/main/kotlin/app/revanced/patches/instagram/story/flipping/DisableStoryAutoFlippingPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/instagram/story/flipping/DisableStoryAutoFlippingPatch.kt @@ -3,10 +3,10 @@ package app.revanced.patches.instagram.story.flipping import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable story auto flipping` by creatingBytecodePatch( description = "Disable stories automatically flipping/skipping after some seconds.", - use = false + use = false, ) { compatibleWith("com.instagram.android") diff --git a/patches/src/main/kotlin/app/revanced/patches/irplus/ad/RemoveAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/irplus/ad/RemoveAdsPatch.kt index ef98c850c..8680278ea 100644 --- a/patches/src/main/kotlin/app/revanced/patches/irplus/ad/RemoveAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/irplus/ad/RemoveAdsPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.irplus.ad import app.revanced.patcher.extensions.addInstruction import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Remove ads` by creatingBytecodePatch { compatibleWith("net.binarymode.android.irplus") diff --git a/patches/src/main/kotlin/app/revanced/patches/letterboxd/ads/HideAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/letterboxd/ads/HideAdsPatch.kt index 061e1c0df..c860058e4 100644 --- a/patches/src/main/kotlin/app/revanced/patches/letterboxd/ads/HideAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/letterboxd/ads/HideAdsPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.extensions.addInstruction import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide ads` by creatingBytecodePatch { compatibleWith("com.letterboxd.letterboxd") diff --git a/patches/src/main/kotlin/app/revanced/patches/letterboxd/unlock/unlockAppIcons/UnlockAppIconsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/letterboxd/unlock/unlockAppIcons/UnlockAppIconsPatch.kt index 2119405a3..712ed051f 100644 --- a/patches/src/main/kotlin/app/revanced/patches/letterboxd/unlock/unlockAppIcons/UnlockAppIconsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/letterboxd/unlock/unlockAppIcons/UnlockAppIconsPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.letterboxd.unlock.unlockAppIcons import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Unlock app icons` by creatingBytecodePatch { compatibleWith("com.letterboxd.letterboxd") diff --git a/patches/src/main/kotlin/app/revanced/patches/lightroom/misc/login/DisableMandatoryLoginPatch.kt b/patches/src/main/kotlin/app/revanced/patches/lightroom/misc/login/DisableMandatoryLoginPatch.kt index d6310d8c1..cb3704b3c 100644 --- a/patches/src/main/kotlin/app/revanced/patches/lightroom/misc/login/DisableMandatoryLoginPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/lightroom/misc/login/DisableMandatoryLoginPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.extensions.instructions import app.revanced.patcher.extensions.replaceInstruction import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable mandatory login` by creatingBytecodePatch { compatibleWith("com.adobe.lrmobile"("9.3.0")) diff --git a/patches/src/main/kotlin/app/revanced/patches/lightroom/misc/premium/UnlockPremiumPatch.kt b/patches/src/main/kotlin/app/revanced/patches/lightroom/misc/premium/UnlockPremiumPatch.kt index e320519b7..98fe78a2b 100644 --- a/patches/src/main/kotlin/app/revanced/patches/lightroom/misc/premium/UnlockPremiumPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/lightroom/misc/premium/UnlockPremiumPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.lightroom.misc.premium import app.revanced.patcher.extensions.replaceInstruction import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Unlock Premium` by creatingBytecodePatch { compatibleWith("com.adobe.lrmobile"("9.3.0")) diff --git a/patches/src/main/kotlin/app/revanced/patches/memegenerator/misc/pro/UnlockProVersionPatch.kt b/patches/src/main/kotlin/app/revanced/patches/memegenerator/misc/pro/UnlockProVersionPatch.kt index c097faac2..6850fc49f 100644 --- a/patches/src/main/kotlin/app/revanced/patches/memegenerator/misc/pro/UnlockProVersionPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/memegenerator/misc/pro/UnlockProVersionPatch.kt @@ -5,7 +5,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.memegenerator.detection.license.licenseValidationPatch import app.revanced.patches.memegenerator.detection.signature.signatureVerificationPatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Unlock pro` by creatingBytecodePatch { dependsOn(signatureVerificationPatch, licenseValidationPatch) diff --git a/patches/src/main/kotlin/app/revanced/patches/messenger/inbox/HideInboxAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/messenger/inbox/HideInboxAdsPatch.kt index 996a6408f..72d96b9bd 100644 --- a/patches/src/main/kotlin/app/revanced/patches/messenger/inbox/HideInboxAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/messenger/inbox/HideInboxAdsPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.messenger.inbox import app.revanced.patcher.extensions.replaceInstruction import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide inbox ads` by creatingBytecodePatch( description = "Hides ads in inbox.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/messenger/inbox/HideInboxSubtabsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/messenger/inbox/HideInboxSubtabsPatch.kt index 546a25ceb..55560138d 100644 --- a/patches/src/main/kotlin/app/revanced/patches/messenger/inbox/HideInboxSubtabsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/messenger/inbox/HideInboxSubtabsPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.messenger.inbox import app.revanced.patcher.extensions.replaceInstruction import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide inbox subtabs` by creatingBytecodePatch( description = "Hides Home and Channels tabs between active now tray and chats.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/messenger/layout/HideFacebookButtonPatch.kt b/patches/src/main/kotlin/app/revanced/patches/messenger/layout/HideFacebookButtonPatch.kt index d148f0fdb..df96bc8d0 100644 --- a/patches/src/main/kotlin/app/revanced/patches/messenger/layout/HideFacebookButtonPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/messenger/layout/HideFacebookButtonPatch.kt @@ -3,9 +3,9 @@ package app.revanced.patches.messenger.layout import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide Facebook button` by creatingBytecodePatch( - description = "Hides the Facebook button in the top toolbar." + description = "Hides the Facebook button in the top toolbar.", ) { compatibleWith("com.facebook.orca") diff --git a/patches/src/main/kotlin/app/revanced/patches/messenger/metaai/RemoveMetaAIPatch.kt b/patches/src/main/kotlin/app/revanced/patches/messenger/metaai/RemoveMetaAIPatch.kt index 4970eeb88..08cc68de1 100644 --- a/patches/src/main/kotlin/app/revanced/patches/messenger/metaai/RemoveMetaAIPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/messenger/metaai/RemoveMetaAIPatch.kt @@ -12,9 +12,9 @@ import com.android.tools.smali.dexlib2.iface.instruction.WideLiteralInstruction internal const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/messenger/metaai/RemoveMetaAIPatch;" internal const val EXTENSION_METHOD_NAME = "overrideBooleanFlag" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Remove Meta AI` by creatingBytecodePatch( - description = "Removes UI elements related to Meta AI." + description = "Removes UI elements related to Meta AI.", ) { compatibleWith("com.facebook.orca") @@ -30,7 +30,7 @@ val `Remove Meta AI` by creatingBytecodePatch( """ invoke-static { p1, p2, v$returnRegister }, $EXTENSION_CLASS_DESCRIPTOR->$EXTENSION_METHOD_NAME(JZ)Z move-result v$returnRegister - """ + """, ) } @@ -44,7 +44,7 @@ val `Remove Meta AI` by creatingBytecodePatch( stringM.first().index, // TODO """ const-string v1, "$relevantDigits" - """ + """, ) } } diff --git a/patches/src/main/kotlin/app/revanced/patches/mifitness/misc/locale/ForceEnglishLocalePatch.kt b/patches/src/main/kotlin/app/revanced/patches/mifitness/misc/locale/ForceEnglishLocalePatch.kt index 7f32062fb..3aaed8bf8 100644 --- a/patches/src/main/kotlin/app/revanced/patches/mifitness/misc/locale/ForceEnglishLocalePatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/mifitness/misc/locale/ForceEnglishLocalePatch.kt @@ -6,7 +6,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.mifitness.misc.login.`Fix login` import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Force English locale` by creatingBytecodePatch( description = "Forces wearable devices to use the English locale.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/music/ad/video/HideVideoAds.kt b/patches/src/main/kotlin/app/revanced/patches/music/ad/video/HideVideoAds.kt index e57c06a44..dd046d84e 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/ad/video/HideVideoAds.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/ad/video/HideVideoAds.kt @@ -11,7 +11,7 @@ import app.revanced.patches.shared.misc.settings.preference.SwitchPreference private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/music/patches/HideVideoAdsPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide music video ads` by creatingBytecodePatch( description = "Adds an option to hide ads that appear while listening to or streaming music videos, podcasts, or songs.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/EnableExclusiveAudioPlayback.kt b/patches/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/EnableExclusiveAudioPlayback.kt index 466cef576..acfe3ff3f 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/EnableExclusiveAudioPlayback.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/EnableExclusiveAudioPlayback.kt @@ -5,7 +5,7 @@ import app.revanced.patches.music.misc.extension.sharedExtensionPatch import app.revanced.patches.music.misc.settings.settingsPatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Enable exclusive audio playback` by creatingBytecodePatch( description = "Enables the option to play audio without video.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/music/interaction/permanentrepeat/PermanentRepeatPatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/interaction/permanentrepeat/PermanentRepeatPatch.kt index 9468af69b..d1e3a5536 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/interaction/permanentrepeat/PermanentRepeatPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/interaction/permanentrepeat/PermanentRepeatPatch.kt @@ -14,7 +14,7 @@ import app.revanced.util.findFreeRegister private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/music/patches/PermanentRepeatPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Permanent repeat` by creatingBytecodePatch( description = "Adds an option to always repeat even if the playlist ends or another track is played.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/music/layout/buttons/HideButtons.kt b/patches/src/main/kotlin/app/revanced/patches/music/layout/buttons/HideButtons.kt index dd2d48fd4..9d81bc6e0 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/layout/buttons/HideButtons.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/layout/buttons/HideButtons.kt @@ -31,7 +31,7 @@ internal var topBarMenuItemImageView = -1L private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/music/patches/HideButtonsPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide buttons` by creatingBytecodePatch( description = "Adds options to hide the cast, history, notification, and search buttons.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/music/layout/compactheader/HideCategoryBar.kt b/patches/src/main/kotlin/app/revanced/patches/music/layout/compactheader/HideCategoryBar.kt index 01a22ae43..2cc3006f1 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/layout/compactheader/HideCategoryBar.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/layout/compactheader/HideCategoryBar.kt @@ -17,7 +17,7 @@ internal var chipCloud = -1L private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/music/patches/HideCategoryBarPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide category bar` by creatingBytecodePatch( description = "Adds an option to hide the category bar at the top of the homepage.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/music/layout/miniplayercolor/ChangeMiniplayerColor.kt b/patches/src/main/kotlin/app/revanced/patches/music/layout/miniplayercolor/ChangeMiniplayerColor.kt index cef2c083c..99afceb05 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/layout/miniplayercolor/ChangeMiniplayerColor.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/layout/miniplayercolor/ChangeMiniplayerColor.kt @@ -20,7 +20,7 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/music/patches/ChangeMiniplayerColorPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Change miniplayer color` by creatingBytecodePatch( description = "Adds an option to change the miniplayer background color to match the fullscreen player.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/music/layout/navigationbar/NavigationBarPatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/layout/navigationbar/NavigationBarPatch.kt index bd8fbae7b..39764bf88 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/layout/navigationbar/NavigationBarPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/layout/navigationbar/NavigationBarPatch.kt @@ -26,7 +26,7 @@ internal var text1 = -1L private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/music/patches/NavigationBarPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Navigation bar` by creatingBytecodePatch( description = "Adds options to hide navigation bar, labels and buttons.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/music/layout/premium/HideGetPremiumPatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/layout/premium/HideGetPremiumPatch.kt index e05772077..f07e8a71b 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/layout/premium/HideGetPremiumPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/layout/premium/HideGetPremiumPatch.kt @@ -15,7 +15,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/music/patches/HideGetPremiumPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide 'Get Music Premium'` by creatingBytecodePatch( description = "Adds an option to hide the \"Get Music Premium\" label in the settings and account menu.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/BypassCertificateChecksPatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/BypassCertificateChecksPatch.kt index 635293614..6c1b9a144 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/BypassCertificateChecksPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/BypassCertificateChecksPatch.kt @@ -5,20 +5,20 @@ import app.revanced.patches.music.misc.extension.sharedExtensionPatch import app.revanced.patches.music.misc.settings.settingsPatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Bypass certificate checks` by creatingBytecodePatch( description = "Bypasses certificate checks which prevent YouTube Music from working on Android Auto.", ) { dependsOn( sharedExtensionPatch, - settingsPatch + settingsPatch, ) compatibleWith( "com.google.android.apps.youtube.music"( "7.29.52", - "8.10.52" - ) + "8.10.52", + ), ) 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 8e955ed28..6df6a5682 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 @@ -5,7 +5,7 @@ import app.revanced.patches.photomath.detection.signature.signatureDetectionPatc import app.revanced.util.returnEarly import kotlin.random.Random -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Spoof device ID` by creatingBytecodePatch( description = "Spoofs device ID to mitigate manual bans by developers.", ) { 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 269a79ec7..5ab0aafdf 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 @@ -4,8 +4,7 @@ import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.photomath.detection.signature.signatureDetectionPatch - -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide update popup` by creatingBytecodePatch( description = "Prevents the update popup from showing up.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/piccomafr/misc/SpoofAndroidDeviceIdPatch.kt b/patches/src/main/kotlin/app/revanced/patches/piccomafr/misc/SpoofAndroidDeviceIdPatch.kt index 89b0a3c02..0e19a2660 100644 --- a/patches/src/main/kotlin/app/revanced/patches/piccomafr/misc/SpoofAndroidDeviceIdPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/piccomafr/misc/SpoofAndroidDeviceIdPatch.kt @@ -4,10 +4,10 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patcher.patch.stringOption import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Spoof Android device ID` by creatingBytecodePatch( description = "Spoofs the Android device ID used by the app for account authentication." + - "This can be used to copy the account to another device.", + "This can be used to copy the account to another device.", use = false, ) { compatibleWith( diff --git a/patches/src/main/kotlin/app/revanced/patches/protonvpn/splittunneling/UnlockSplitTunneling.kt b/patches/src/main/kotlin/app/revanced/patches/protonvpn/splittunneling/UnlockSplitTunneling.kt index 05fe3ac4d..22f7ffafd 100644 --- a/patches/src/main/kotlin/app/revanced/patches/protonvpn/splittunneling/UnlockSplitTunneling.kt +++ b/patches/src/main/kotlin/app/revanced/patches/protonvpn/splittunneling/UnlockSplitTunneling.kt @@ -9,7 +9,7 @@ import app.revanced.util.indexOfFirstInstructionOrThrow import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction import com.android.tools.smali.dexlib2.iface.reference.MethodReference -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Unlock split tunneling` by creatingBytecodePatch { compatibleWith("ch.protonvpn.android") diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/fix/user/UseUserEndpointPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/fix/user/UseUserEndpointPatch.kt index 33e43c6b5..cd93db2dc 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/fix/user/UseUserEndpointPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/fix/user/UseUserEndpointPatch.kt @@ -6,12 +6,12 @@ import app.revanced.patcher.extensions.stringReference import app.revanced.patcher.patch.creatingBytecodePatch import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Use /user/ endpoint` by creatingBytecodePatch( description = "Replaces the deprecated endpoint for viewing user profiles /u with /user, that used to fix a bug.", use = false, - ) { +) { compatibleWith( "com.laurencedawson.reddit_sync", "com.laurencedawson.reddit_sync.pro", @@ -25,7 +25,7 @@ val `Use /user/ endpoint` by creatingBytecodePatch( oAuthSubredditInfoRequestHelperMethodMatch, oAuthUnfriendRequestMethodMatch, oAuthUserIdRequestMethodMatch, - oAuthUserInfoRequestMethodMatch + oAuthUserInfoRequestMethodMatch, ).map { match -> match.stringIndices.values.first() to match.method }.forEach { (userPathStringIndex, method) -> diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/fix/video/FixVideoDownloadsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/fix/video/FixVideoDownloadsPatch.kt index cb2a86ae7..74b676714 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/fix/video/FixVideoDownloadsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/customclients/sync/syncforreddit/fix/video/FixVideoDownloadsPatch.kt @@ -10,7 +10,7 @@ private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/syncforreddit/FixRedditVideoDownloadPatch;" private const val GET_LINKS_METHOD = "getLinks([B)[Ljava/lang/String;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Fix video downloads` by creatingBytecodePatch( description = "Fixes a bug in Sync's MPD parser resulting in only the audio-track being saved.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/samsung/radio/misc/fix/crash/FixCrashPatch.kt b/patches/src/main/kotlin/app/revanced/patches/samsung/radio/misc/fix/crash/FixCrashPatch.kt index 72b4e2a60..6aa791e02 100644 --- a/patches/src/main/kotlin/app/revanced/patches/samsung/radio/misc/fix/crash/FixCrashPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/samsung/radio/misc/fix/crash/FixCrashPatch.kt @@ -1,4 +1,3 @@ -@file:Suppress("unused") package app.revanced.patches.samsung.radio.misc.fix.crash @@ -13,8 +12,9 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/samsung/radio/misc/fix/crash/FixCrashPatch;" +@Suppress("unused", "ObjectPropertyName") val `Fix crashes` by creatingBytecodePatch( - description = "Prevents the app from crashing because of missing system permissions." + description = "Prevents the app from crashing because of missing system permissions.", ) { dependsOn(addManifestPermissionsPatch, `Bypass device checks`) extendWith("extensions/samsung/radio.rve") @@ -31,12 +31,13 @@ val `Fix crashes` by creatingBytecodePatch( // Invoke the method from the extension addInstructions( - moveResultIndex + 1, """ + moveResultIndex + 1, + """ invoke-static { v$arrayRegister }, ${EXTENSION_CLASS_DESCRIPTOR}->fixPermissionRequestList([Ljava/lang/String;)[Ljava/lang/String; move-result-object v$arrayRegister - """ + """, ) } } } -} \ No newline at end of file +} diff --git a/patches/src/main/kotlin/app/revanced/patches/shared/misc/fix/verticalscroll/Fingerprints.kt b/patches/src/main/kotlin/app/revanced/patches/shared/misc/fix/verticalscroll/Fingerprints.kt index 07384b71d..daac7b43f 100644 --- a/patches/src/main/kotlin/app/revanced/patches/shared/misc/fix/verticalscroll/Fingerprints.kt +++ b/patches/src/main/kotlin/app/revanced/patches/shared/misc/fix/verticalscroll/Fingerprints.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.* import com.android.tools.smali.dexlib2.AccessFlags import com.android.tools.smali.dexlib2.Opcode -internal val canScrollVerticallyMatch = firstMethodComposite { +internal val canScrollVerticallyMethodMatch = firstMethodComposite { definingClass("SwipeRefreshLayout;"::endsWith) accessFlags(AccessFlags.PUBLIC, AccessFlags.FINAL) returnType("Z") diff --git a/patches/src/main/kotlin/app/revanced/patches/shared/misc/fix/verticalscroll/VerticalScrollPatch.kt b/patches/src/main/kotlin/app/revanced/patches/shared/misc/fix/verticalscroll/VerticalScrollPatch.kt index 200c06d8c..210447c25 100644 --- a/patches/src/main/kotlin/app/revanced/patches/shared/misc/fix/verticalscroll/VerticalScrollPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/shared/misc/fix/verticalscroll/VerticalScrollPatch.kt @@ -10,7 +10,7 @@ val verticalScrollPatch = bytecodePatch( ) { apply { - canScrollVerticallyMethod.let { + canScrollVerticallyMethodMatch.let { it.method.apply { val moveResultIndex = it.indices.last() val moveResultRegister = getInstruction(moveResultIndex).registerA diff --git a/patches/src/main/kotlin/app/revanced/patches/shared/misc/pairip/license/DisableLicenseCheckPatch.kt b/patches/src/main/kotlin/app/revanced/patches/shared/misc/pairip/license/DisableLicenseCheckPatch.kt index 04e42b832..4bd3c25fb 100644 --- a/patches/src/main/kotlin/app/revanced/patches/shared/misc/pairip/license/DisableLicenseCheckPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/shared/misc/pairip/license/DisableLicenseCheckPatch.kt @@ -5,7 +5,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly import java.util.logging.Logger -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable Pairip license check` by creatingBytecodePatch( description = "Disables Play Integrity API (Pairip) client-side license check.", use = false, diff --git a/patches/src/main/kotlin/app/revanced/patches/shared/misc/privacy/DisableSentryTelemetry.kt b/patches/src/main/kotlin/app/revanced/patches/shared/misc/privacy/DisableSentryTelemetry.kt index 1a9de70bb..960074997 100644 --- a/patches/src/main/kotlin/app/revanced/patches/shared/misc/privacy/DisableSentryTelemetry.kt +++ b/patches/src/main/kotlin/app/revanced/patches/shared/misc/privacy/DisableSentryTelemetry.kt @@ -5,7 +5,7 @@ import app.revanced.util.asSequence import app.revanced.util.getNode import org.w3c.dom.Element -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable Sentry telemetry` = creatingResourcePatch( description = "Disables Sentry telemetry. See https://sentry.io/for/android/ for more information.", use = false, @@ -19,10 +19,12 @@ val `Disable Sentry telemetry` = creatingResourcePatch( if (targetChild != null) { targetChild.setAttribute("android:value", attributeValue) } else { - appendChild(ownerDocument.createElement(tagName).apply { - setAttribute("android:name", attributeName) - setAttribute("android:value", attributeValue) - }) + appendChild( + ownerDocument.createElement(tagName).apply { + setAttribute("android:name", attributeName) + setAttribute("android:value", attributeValue) + }, + ) } } diff --git a/patches/src/main/kotlin/app/revanced/patches/solidexplorer2/functionality/filesize/RemoveFileSizeLimitPatch.kt b/patches/src/main/kotlin/app/revanced/patches/solidexplorer2/functionality/filesize/RemoveFileSizeLimitPatch.kt index b2287d4c8..fc13e7219 100644 --- a/patches/src/main/kotlin/app/revanced/patches/solidexplorer2/functionality/filesize/RemoveFileSizeLimitPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/solidexplorer2/functionality/filesize/RemoveFileSizeLimitPatch.kt @@ -5,7 +5,7 @@ import app.revanced.patcher.extensions.replaceInstruction import app.revanced.patcher.patch.creatingBytecodePatch import com.android.tools.smali.dexlib2.iface.instruction.ThreeRegisterInstruction -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Remove file size limit` by creatingBytecodePatch( description = "Allows opening files larger than 2 MB in the text editor.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/songpal/badge/BadgeTabPatch.kt b/patches/src/main/kotlin/app/revanced/patches/songpal/badge/BadgeTabPatch.kt index fe07cf3b4..326c4bbb2 100644 --- a/patches/src/main/kotlin/app/revanced/patches/songpal/badge/BadgeTabPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/songpal/badge/BadgeTabPatch.kt @@ -6,7 +6,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch internal const val ACTIVITY_TAB_DESCRIPTOR = "Ljp/co/sony/vim/framework/ui/yourheadphones/YhContract\$Tab;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Remove badge tab` by creatingBytecodePatch( description = "Removes the badge tab from the activity tab.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/songpal/badge/RemoveNotificationBadgePatch.kt b/patches/src/main/kotlin/app/revanced/patches/songpal/badge/RemoveNotificationBadgePatch.kt index 198d4a0ab..e5a3da5ae 100644 --- a/patches/src/main/kotlin/app/revanced/patches/songpal/badge/RemoveNotificationBadgePatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/songpal/badge/RemoveNotificationBadgePatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.songpal.badge import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Remove notification badge` by creatingBytecodePatch( description = "Removes the red notification badge from the activity tab.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/soundcloud/ad/HideAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/soundcloud/ad/HideAdsPatch.kt index 78b832e23..37b82be48 100644 --- a/patches/src/main/kotlin/app/revanced/patches/soundcloud/ad/HideAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/soundcloud/ad/HideAdsPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.extensions.* import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.soundcloud.shared.featureConstructorMethod -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide ads` by creatingBytecodePatch { compatibleWith("com.soundcloud.android"("2025.05.27-release")) diff --git a/patches/src/main/kotlin/app/revanced/patches/soundcloud/analytics/DisableTelemetryPatch.kt b/patches/src/main/kotlin/app/revanced/patches/soundcloud/analytics/DisableTelemetryPatch.kt index 7b51c4b06..15dcdb2eb 100644 --- a/patches/src/main/kotlin/app/revanced/patches/soundcloud/analytics/DisableTelemetryPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/soundcloud/analytics/DisableTelemetryPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.soundcloud.analytics import app.revanced.patcher.extensions.addInstruction import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable telemetry` by creatingBytecodePatch( description = "Disables SoundCloud's telemetry system.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/soundcloud/offlinesync/EnableOfflineSyncPatch.kt b/patches/src/main/kotlin/app/revanced/patches/soundcloud/offlinesync/EnableOfflineSyncPatch.kt index 8d51c4e2a..9ebab6303 100644 --- a/patches/src/main/kotlin/app/revanced/patches/soundcloud/offlinesync/EnableOfflineSyncPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/soundcloud/offlinesync/EnableOfflineSyncPatch.kt @@ -8,7 +8,7 @@ import com.android.tools.smali.dexlib2.Opcode import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction import com.android.tools.smali.dexlib2.iface.reference.FieldReference -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Enable offline sync` by creatingBytecodePatch { compatibleWith("com.soundcloud.android"("2025.05.27-release")) diff --git a/patches/src/main/kotlin/app/revanced/patches/spotify/misc/fix/login/FixFacebookLoginPatch.kt b/patches/src/main/kotlin/app/revanced/patches/spotify/misc/fix/login/FixFacebookLoginPatch.kt index 00df99748..2af6207ba 100644 --- a/patches/src/main/kotlin/app/revanced/patches/spotify/misc/fix/login/FixFacebookLoginPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/spotify/misc/fix/login/FixFacebookLoginPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.spotify.misc.fix.login import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Fix Facebook login` by creatingBytecodePatch( description = "Fix logging in with Facebook when the app is patched by always opening the login in a web browser window.", diff --git a/patches/src/main/kotlin/app/revanced/patches/spotify/misc/lyrics/ChangeLyricsProviderPatch.kt b/patches/src/main/kotlin/app/revanced/patches/spotify/misc/lyrics/ChangeLyricsProviderPatch.kt index d725b712f..4e0679c73 100644 --- a/patches/src/main/kotlin/app/revanced/patches/spotify/misc/lyrics/ChangeLyricsProviderPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/spotify/misc/lyrics/ChangeLyricsProviderPatch.kt @@ -20,7 +20,7 @@ import java.net.URISyntaxException import java.net.UnknownHostException import java.util.logging.Logger -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Change lyrics provider` by creatingBytecodePatch( description = "Changes the lyrics provider to a custom one.", use = false, diff --git a/patches/src/main/kotlin/app/revanced/patches/spotify/misc/widgets/FixThirdPartyLaunchersWidgets.kt b/patches/src/main/kotlin/app/revanced/patches/spotify/misc/widgets/FixThirdPartyLaunchersWidgets.kt index 20b2e46a4..b37ed70aa 100644 --- a/patches/src/main/kotlin/app/revanced/patches/spotify/misc/widgets/FixThirdPartyLaunchersWidgets.kt +++ b/patches/src/main/kotlin/app/revanced/patches/spotify/misc/widgets/FixThirdPartyLaunchersWidgets.kt @@ -3,7 +3,7 @@ package app.revanced.patches.spotify.misc.widgets import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Fix third party launchers widgets` by creatingBytecodePatch( description = "Fixes Spotify widgets not working in third party launchers, like Nova Launcher.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/stocard/layout/HideOffersTabPatch.kt b/patches/src/main/kotlin/app/revanced/patches/stocard/layout/HideOffersTabPatch.kt index 0b94833ed..499f8eca2 100644 --- a/patches/src/main/kotlin/app/revanced/patches/stocard/layout/HideOffersTabPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/stocard/layout/HideOffersTabPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.patch.creatingResourcePatch import app.revanced.util.childElementsSequence import app.revanced.util.getNode -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide offers tab` by creatingResourcePatch { compatibleWith("de.stocard.stocard") diff --git a/patches/src/main/kotlin/app/revanced/patches/stocard/layout/HideStoryBubblesPatch.kt b/patches/src/main/kotlin/app/revanced/patches/stocard/layout/HideStoryBubblesPatch.kt index 433c91f62..44d7ed946 100644 --- a/patches/src/main/kotlin/app/revanced/patches/stocard/layout/HideStoryBubblesPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/stocard/layout/HideStoryBubblesPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.stocard.layout import app.revanced.patcher.patch.creatingResourcePatch import app.revanced.util.getNode -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide story bubbles` by creatingResourcePatch { compatibleWith("de.stocard.stocard") diff --git a/patches/src/main/kotlin/app/revanced/patches/strava/mediaupload/OverwriteMediaUploadParametersPatch.kt b/patches/src/main/kotlin/app/revanced/patches/strava/mediaupload/OverwriteMediaUploadParametersPatch.kt index f77b64c1c..9c018c053 100644 --- a/patches/src/main/kotlin/app/revanced/patches/strava/mediaupload/OverwriteMediaUploadParametersPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/strava/mediaupload/OverwriteMediaUploadParametersPatch.kt @@ -6,7 +6,7 @@ import app.revanced.patcher.patch.intOption import app.revanced.patcher.patch.longOption import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Overwrite media upload parameters` by creatingBytecodePatch( description = "Overwrites the compression, resize and trim media (images and videos) parameters returned by Strava's server before upload.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/strava/password/EnablePasswordLoginPatch.kt b/patches/src/main/kotlin/app/revanced/patches/strava/password/EnablePasswordLoginPatch.kt index 9e63d499d..344d15d49 100644 --- a/patches/src/main/kotlin/app/revanced/patches/strava/password/EnablePasswordLoginPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/strava/password/EnablePasswordLoginPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.strava.password import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Enable password login` by creatingBytecodePatch( description = "Re-enables password login after having used an OTP code.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/strava/privacy/BlockSnowplowTrackingPatch.kt b/patches/src/main/kotlin/app/revanced/patches/strava/privacy/BlockSnowplowTrackingPatch.kt index f791c8eaa..48daf08e2 100644 --- a/patches/src/main/kotlin/app/revanced/patches/strava/privacy/BlockSnowplowTrackingPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/strava/privacy/BlockSnowplowTrackingPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.strava.privacy import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Block Snowplow tracking` by creatingBytecodePatch( description = "Blocks Snowplow analytics. See https://snowplow.io for more information.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/strava/quickedit/DisableQuickEditPatch.kt b/patches/src/main/kotlin/app/revanced/patches/strava/quickedit/DisableQuickEditPatch.kt index a996a7814..e322a3792 100644 --- a/patches/src/main/kotlin/app/revanced/patches/strava/quickedit/DisableQuickEditPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/strava/quickedit/DisableQuickEditPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.strava.quickedit import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable Quick Edit` by creatingBytecodePatch( description = "Prevents the Quick Edit prompt from popping up.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/strava/subscription/UnlockSubscriptionPatch.kt b/patches/src/main/kotlin/app/revanced/patches/strava/subscription/UnlockSubscriptionPatch.kt index 7b55475dd..a781ea041 100644 --- a/patches/src/main/kotlin/app/revanced/patches/strava/subscription/UnlockSubscriptionPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/strava/subscription/UnlockSubscriptionPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.strava.subscription import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Unlock subscription features` by creatingBytecodePatch( description = "Unlocks \"Routes\", \"Matched Runs\" and \"Segment Efforts\".", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/strava/upselling/DisableSubscriptionSuggestionsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/strava/upselling/DisableSubscriptionSuggestionsPatch.kt index 9a11a8741..0061f6e69 100644 --- a/patches/src/main/kotlin/app/revanced/patches/strava/upselling/DisableSubscriptionSuggestionsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/strava/upselling/DisableSubscriptionSuggestionsPatch.kt @@ -8,7 +8,7 @@ import com.android.tools.smali.dexlib2.builder.MutableMethodImplementation import com.android.tools.smali.dexlib2.immutable.ImmutableMethod import com.android.tools.smali.dexlib2.mutable.MutableMethod.Companion.toMutable -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable subscription suggestions` by creatingBytecodePatch { compatibleWith("com.strava") diff --git a/patches/src/main/kotlin/app/revanced/patches/swissid/integritycheck/RemoveGooglePlayIntegrityCheckPatch.kt b/patches/src/main/kotlin/app/revanced/patches/swissid/integritycheck/RemoveGooglePlayIntegrityCheckPatch.kt index 2c8f88319..a608729f0 100644 --- a/patches/src/main/kotlin/app/revanced/patches/swissid/integritycheck/RemoveGooglePlayIntegrityCheckPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/swissid/integritycheck/RemoveGooglePlayIntegrityCheckPatch.kt @@ -5,14 +5,14 @@ import app.revanced.patcher.patch.creatingBytecodePatch private const val RESULT_METHOD_REFERENCE = " Lcom/swisssign/deviceintegrity/DeviceintegrityPlugin\$onMethodCall\$1;->" + - "\$result:Lio/flutter/plugin/common/MethodChannel\$Result;" + "\$result:Lio/flutter/plugin/common/MethodChannel\$Result;" private const val SUCCESS_METHOD_REFERENCE = "Lio/flutter/plugin/common/MethodChannel\$Result;->success(Ljava/lang/Object;)V" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Remove Google Play Integrity check` by creatingBytecodePatch( description = "Removes the Google Play Integrity check. With this it's possible to use SwissID on custom ROMS." + - "If the device is rooted, root permissions must be hidden from the app.", + "If the device is rooted, root permissions must be hidden from the app.", ) { compatibleWith("com.swisssign.swissid.mobile"("5.2.9")) diff --git a/patches/src/main/kotlin/app/revanced/patches/threads/HideAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/threads/HideAdsPatch.kt index c21847c08..ec855161c 100644 --- a/patches/src/main/kotlin/app/revanced/patches/threads/HideAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/threads/HideAdsPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.meta.ads.adInjectorMethod import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide ads` by creatingBytecodePatch { compatibleWith("com.instagram.barcelona"("382.0.0.51.85")) diff --git a/patches/src/main/kotlin/app/revanced/patches/ticktick/misc/themeunlock/UnlockThemePatch.kt b/patches/src/main/kotlin/app/revanced/patches/ticktick/misc/themeunlock/UnlockThemePatch.kt index 6fc2926b5..51a9b30ea 100644 --- a/patches/src/main/kotlin/app/revanced/patches/ticktick/misc/themeunlock/UnlockThemePatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/ticktick/misc/themeunlock/UnlockThemePatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.extensions.removeInstructions import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Unlock themes` by creatingBytecodePatch( description = "Unlocks all themes that are inaccessible until a certain level is reached.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/tiktok/feedfilter/FeedFilterPatch.kt b/patches/src/main/kotlin/app/revanced/patches/tiktok/feedfilter/FeedFilterPatch.kt index 84cc121ea..763a70225 100644 --- a/patches/src/main/kotlin/app/revanced/patches/tiktok/feedfilter/FeedFilterPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/tiktok/feedfilter/FeedFilterPatch.kt @@ -11,7 +11,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/tiktok/feedfilter/FeedItemsFilter;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Feed filter` by creatingBytecodePatch( description = "Removes ads, livestreams, stories, image videos " + "and videos with a specific amount of views or likes from the feed.", diff --git a/patches/src/main/kotlin/app/revanced/patches/tiktok/interaction/cleardisplay/RememberClearDisplayPatch.kt b/patches/src/main/kotlin/app/revanced/patches/tiktok/interaction/cleardisplay/RememberClearDisplayPatch.kt index 8421b0eee..cefca550e 100644 --- a/patches/src/main/kotlin/app/revanced/patches/tiktok/interaction/cleardisplay/RememberClearDisplayPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/tiktok/interaction/cleardisplay/RememberClearDisplayPatch.kt @@ -10,7 +10,7 @@ import app.revanced.util.indexOfFirstInstructionOrThrow import com.android.tools.smali.dexlib2.Opcode import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Remember clear display` by creatingBytecodePatch( description = "Remembers the clear display configurations in between videos.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/tiktok/interaction/seekbar/ShowSeekbarPatch.kt b/patches/src/main/kotlin/app/revanced/patches/tiktok/interaction/seekbar/ShowSeekbarPatch.kt index cb3b43dbe..225a4c66b 100644 --- a/patches/src/main/kotlin/app/revanced/patches/tiktok/interaction/seekbar/ShowSeekbarPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/tiktok/interaction/seekbar/ShowSeekbarPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Show seekbar` by creatingBytecodePatch( description = "Shows progress bar for all video.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/tiktok/interaction/speed/PlaybackSpeedPatch.kt b/patches/src/main/kotlin/app/revanced/patches/tiktok/interaction/speed/PlaybackSpeedPatch.kt index 39d399638..596203e34 100644 --- a/patches/src/main/kotlin/app/revanced/patches/tiktok/interaction/speed/PlaybackSpeedPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/tiktok/interaction/speed/PlaybackSpeedPatch.kt @@ -13,7 +13,7 @@ import app.revanced.util.returnEarly import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction11x import com.android.tools.smali.dexlib2.iface.reference.MethodReference -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Playback speed` by creatingBytecodePatch( description = "Enables the playback speed option for all videos and " + "retains the speed configurations in between videos.", diff --git a/patches/src/main/kotlin/app/revanced/patches/tiktok/misc/login/disablerequirement/DisableLoginRequirementPatch.kt b/patches/src/main/kotlin/app/revanced/patches/tiktok/misc/login/disablerequirement/DisableLoginRequirementPatch.kt index d1df9bc35..331ec9896 100644 --- a/patches/src/main/kotlin/app/revanced/patches/tiktok/misc/login/disablerequirement/DisableLoginRequirementPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/tiktok/misc/login/disablerequirement/DisableLoginRequirementPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.tiktok.misc.login.disablerequirement import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable login requirement` by creatingBytecodePatch { compatibleWith( "com.ss.android.ugc.trill", diff --git a/patches/src/main/kotlin/app/revanced/patches/tiktok/misc/login/fixgoogle/FixGoogleLoginPatch.kt b/patches/src/main/kotlin/app/revanced/patches/tiktok/misc/login/fixgoogle/FixGoogleLoginPatch.kt index 6f405791a..cb1473b99 100644 --- a/patches/src/main/kotlin/app/revanced/patches/tiktok/misc/login/fixgoogle/FixGoogleLoginPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/tiktok/misc/login/fixgoogle/FixGoogleLoginPatch.kt @@ -1,10 +1,10 @@ package app.revanced.patches.tiktok.misc.login.fixgoogle +import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.util.returnEarly import com.android.tools.smali.dexlib2.mutable.MutableMethod -import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Fix Google login` by creatingBytecodePatch( description = "Allows logging in with a Google account.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/tiktok/misc/spoof/sim/SpoofSimPatch.kt b/patches/src/main/kotlin/app/revanced/patches/tiktok/misc/spoof/sim/SpoofSimPatch.kt index 21f19d7c8..76f789510 100644 --- a/patches/src/main/kotlin/app/revanced/patches/tiktok/misc/spoof/sim/SpoofSimPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/tiktok/misc/spoof/sim/SpoofSimPatch.kt @@ -13,7 +13,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction35c import com.android.tools.smali.dexlib2.iface.reference.MethodReference -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `SIM spoof` by creatingBytecodePatch( description = "Spoofs the information which is retrieved from the SIM card.", use = false, diff --git a/patches/src/main/kotlin/app/revanced/patches/trakt/UnlockProPatch.kt b/patches/src/main/kotlin/app/revanced/patches/trakt/UnlockProPatch.kt index 31948de1c..b1a9cf6ca 100644 --- a/patches/src/main/kotlin/app/revanced/patches/trakt/UnlockProPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/trakt/UnlockProPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.immutableClassDef import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Unlock pro` by creatingBytecodePatch { compatibleWith("tv.trakt.trakt"("1.1.1")) diff --git a/patches/src/main/kotlin/app/revanced/patches/tudortmund/lockscreen/ShowOnLockscreenPatch.kt b/patches/src/main/kotlin/app/revanced/patches/tudortmund/lockscreen/ShowOnLockscreenPatch.kt index 75b1e6283..677fd7eae 100644 --- a/patches/src/main/kotlin/app/revanced/patches/tudortmund/lockscreen/ShowOnLockscreenPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/tudortmund/lockscreen/ShowOnLockscreenPatch.kt @@ -15,7 +15,7 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/tudortmund/lockscreen/ShowOnLockscreenPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Show on lockscreen` by creatingBytecodePatch( description = "Shows student id and student ticket on lockscreen.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/tumblr/ads/DisableDashboardAds.kt b/patches/src/main/kotlin/app/revanced/patches/tumblr/ads/DisableDashboardAds.kt index b6b54f038..171882b85 100644 --- a/patches/src/main/kotlin/app/revanced/patches/tumblr/ads/DisableDashboardAds.kt +++ b/patches/src/main/kotlin/app/revanced/patches/tumblr/ads/DisableDashboardAds.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.tumblr.timelinefilter.addTimelineObjectTypeFilter import app.revanced.patches.tumblr.timelinefilter.filterTimelineObjectsPatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable dashboard ads` by creatingBytecodePatch( description = "Disables ads in the dashboard.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/adfree/DisableAdFreeBannerPatch.kt b/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/adfree/DisableAdFreeBannerPatch.kt index 858de3318..c076a89ed 100644 --- a/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/adfree/DisableAdFreeBannerPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/adfree/DisableAdFreeBannerPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.tumblr.featureflags.addFeatureFlagOverride import app.revanced.patches.tumblr.featureflags.overrideFeatureFlagsPatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable Ad-Free Banner` by creatingBytecodePatch( description = "Disables the banner with a frog, prompting you to buy Tumblr Ad-Free.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/inappupdate/DisableInAppUpdatePatch.kt b/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/inappupdate/DisableInAppUpdatePatch.kt index 308755f44..932c2e10a 100644 --- a/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/inappupdate/DisableInAppUpdatePatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/inappupdate/DisableInAppUpdatePatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.tumblr.featureflags.addFeatureFlagOverride import app.revanced.patches.tumblr.featureflags.overrideFeatureFlagsPatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable in-app update` by creatingBytecodePatch( description = "Disables the in-app update check and update prompt.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/notifications/DisableBlogNotificationReminderPatch.kt b/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/notifications/DisableBlogNotificationReminderPatch.kt index e83b0db8a..38ca3344f 100644 --- a/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/notifications/DisableBlogNotificationReminderPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/notifications/DisableBlogNotificationReminderPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.tumblr.annoyances.notifications import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable blog notification reminder` by creatingBytecodePatch( description = "Disables the reminder to enable notifications for blogs you visit.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/popups/DisableGiftMessagePopupPatch.kt b/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/popups/DisableGiftMessagePopupPatch.kt index 220480515..14abe1133 100644 --- a/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/popups/DisableGiftMessagePopupPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/popups/DisableGiftMessagePopupPatch.kt @@ -1,9 +1,9 @@ package app.revanced.patches.tumblr.annoyances.popups -import app.revanced.util.returnEarly import app.revanced.patcher.patch.creatingBytecodePatch +import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable gift message popup` by creatingBytecodePatch( description = "Disables the popup suggesting to buy TumblrMart items for other people.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/tv/DisableTumblrTvPatch.kt b/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/tv/DisableTumblrTvPatch.kt index 9b84a2b48..364ae44ce 100644 --- a/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/tv/DisableTumblrTvPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/tumblr/annoyances/tv/DisableTumblrTvPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.tumblr.featureflags.addFeatureFlagOverride import app.revanced.patches.tumblr.featureflags.overrideFeatureFlagsPatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable Tumblr TV` by creatingBytecodePatch( description = "Removes the Tumblr TV navigation button from the bottom navigation bar.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/tumblr/fixes/FixOldVersionsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/tumblr/fixes/FixOldVersionsPatch.kt index 57aca0fb5..1d1596da7 100644 --- a/patches/src/main/kotlin/app/revanced/patches/tumblr/fixes/FixOldVersionsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/tumblr/fixes/FixOldVersionsPatch.kt @@ -3,7 +3,7 @@ package app.revanced.patches.tumblr.fixes import app.revanced.patcher.extensions.addInstructions import app.revanced.patcher.patch.creatingBytecodePatch -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Fix old versions` by creatingBytecodePatch( description = "Fixes old versions of the app (v33.2 and earlier) breaking due to Tumblr removing remnants of Tumblr" + " Live from the API, which causes many requests to fail. This patch has no effect on newer versions of the app.", diff --git a/patches/src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/UnlockDownloadsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/UnlockDownloadsPatch.kt index 252223536..f5eaeb65f 100644 --- a/patches/src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/UnlockDownloadsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/twitter/interaction/downloads/UnlockDownloadsPatch.kt @@ -6,7 +6,7 @@ import com.android.tools.smali.dexlib2.Opcode import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Unlock downloads` by creatingBytecodePatch( description = "Unlocks the ability to download any video. GIFs can be downloaded via the menu on long press.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/twitter/layout/viewcount/HideViewCountPatch.kt b/patches/src/main/kotlin/app/revanced/patches/twitter/layout/viewcount/HideViewCountPatch.kt index 621f56fda..3daf7d02d 100644 --- a/patches/src/main/kotlin/app/revanced/patches/twitter/layout/viewcount/HideViewCountPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/twitter/layout/viewcount/HideViewCountPatch.kt @@ -1,9 +1,9 @@ package app.revanced.patches.twitter.layout.viewcount -import app.revanced.util.returnEarly import app.revanced.patcher.patch.creatingBytecodePatch +import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide view count` by creatingBytecodePatch( description = "Hides the view count of Posts.", use = false, diff --git a/patches/src/main/kotlin/app/revanced/patches/twitter/misc/dynamiccolor/DynamicColorPatch.kt b/patches/src/main/kotlin/app/revanced/patches/twitter/misc/dynamiccolor/DynamicColorPatch.kt index d7dbd9b80..4341e5478 100644 --- a/patches/src/main/kotlin/app/revanced/patches/twitter/misc/dynamiccolor/DynamicColorPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/twitter/misc/dynamiccolor/DynamicColorPatch.kt @@ -5,7 +5,7 @@ import app.revanced.patcher.patch.creatingResourcePatch import java.io.FileWriter import java.nio.file.Files -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Dynamic color` by creatingResourcePatch( description = "Replaces the default X (Formerly Twitter) Blue with the user's Material You palette.", ) { @@ -13,7 +13,7 @@ val `Dynamic color` by creatingResourcePatch( "com.twitter.android"( "10.60.0-release.0", "10.86.0-release.0", - ) + ), ) apply { diff --git a/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/ChangeLinkSharingDomainPatch.kt b/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/ChangeLinkSharingDomainPatch.kt index c78b74f33..16c3bafda 100644 --- a/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/ChangeLinkSharingDomainPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/twitter/misc/links/ChangeLinkSharingDomainPatch.kt @@ -58,7 +58,7 @@ internal val changeLinkSharingDomainResourcePatch = resourcePatch { } */ -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Change link sharing domain` by creatingBytecodePatch( description = "Replaces the domain name of shared links. Using this patch can prevent making posts that quote other posts.", use = false, diff --git a/patches/src/main/kotlin/app/revanced/patches/viber/ads/HideAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/viber/ads/HideAdsPatch.kt index 92999f5a0..016736473 100644 --- a/patches/src/main/kotlin/app/revanced/patches/viber/ads/HideAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/viber/ads/HideAdsPatch.kt @@ -8,7 +8,7 @@ import com.android.tools.smali.dexlib2.Opcode import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction import com.android.tools.smali.dexlib2.iface.reference.TypeReference -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide Ads` by creatingBytecodePatch( description = "Hides ad banners between chats.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/warnwetter/misc/promocode/PromoCodeUnlockPatch.kt b/patches/src/main/kotlin/app/revanced/patches/warnwetter/misc/promocode/PromoCodeUnlockPatch.kt index ebcef3630..ab098c37c 100644 --- a/patches/src/main/kotlin/app/revanced/patches/warnwetter/misc/promocode/PromoCodeUnlockPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/warnwetter/misc/promocode/PromoCodeUnlockPatch.kt @@ -4,7 +4,7 @@ import app.revanced.patcher.patch.creatingBytecodePatch import app.revanced.patches.warnwetter.misc.firebasegetcert.firebaseGetCertPatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Promo code unlock` by creatingBytecodePatch( description = "Disables the validation of promo code. Any code will work to unlock all features.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsPatch.kt index fdcdcfe6a..9ee03d066 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsPatch.kt @@ -61,7 +61,7 @@ private val hideAdsResourcePatch = resourcePatch { } } -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide ads` by creatingBytecodePatch( description = "Adds options to remove general ads.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/interaction/copyvideourl/CopyVideoUrlPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/interaction/copyvideourl/CopyVideoUrlPatch.kt index 6c35666dc..6b6d40225 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/interaction/copyvideourl/CopyVideoUrlPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/interaction/copyvideourl/CopyVideoUrlPatch.kt @@ -40,7 +40,7 @@ private val copyVideoUrlResourcePatch = resourcePatch { } } -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Copy video URL` by creatingBytecodePatch( description = "Adds options to display buttons in the video player to copy video URLs.", ) { @@ -56,7 +56,7 @@ val `Copy video URL` by creatingBytecodePatch( "20.14.43", "20.21.37", "20.31.40", - ) + ), ) apply { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/interaction/doubletap/DisableChapterSkipDoubleTapPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/interaction/doubletap/DisableChapterSkipDoubleTapPatch.kt index b7def3349..a14b2e6f5 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/interaction/doubletap/DisableChapterSkipDoubleTapPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/interaction/doubletap/DisableChapterSkipDoubleTapPatch.kt @@ -18,7 +18,7 @@ import kotlin.jvm.java private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/youtube/patches/DisableDoubleTapActionsPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable double tap actions` by creatingBytecodePatch( description = "Adds an option to disable player double tap gestures.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/SwipeControlsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/SwipeControlsPatch.kt index 5952693bb..02d30c558 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/SwipeControlsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/interaction/swipecontrols/SwipeControlsPatch.kt @@ -87,7 +87,7 @@ private val swipeControlsResourcePatch = resourcePatch { } } -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Swipe controls` by creatingBytecodePatch( description = "Adds options to enable and configure volume and brightness swipe controls.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/ChangeHeaderPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/ChangeHeaderPatch.kt index 853230052..e8cfd70d0 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/ChangeHeaderPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/branding/header/ChangeHeaderPatch.kt @@ -93,7 +93,7 @@ private val changeHeaderBytecodePatch = bytecodePatch { } } -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Change header` by creatingResourcePatch( description = "Adds an option to change the header logo in the top left corner of the app.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/formfactor/ChangeFormFactorPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/formfactor/ChangeFormFactorPatch.kt index 75e4109d5..8df7a8373 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/formfactor/ChangeFormFactorPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/formfactor/ChangeFormFactorPatch.kt @@ -19,7 +19,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/youtube/patches/ChangeFormFactorPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Change form factor` by creatingBytecodePatch( description = "Adds an option to change the UI appearance to a phone, tablet, or automotive device.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/HideEndScreenCardsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/HideEndScreenCardsPatch.kt index 33a9270fe..7ae38375e 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/HideEndScreenCardsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/HideEndScreenCardsPatch.kt @@ -49,7 +49,7 @@ private val hideEndScreenCardsResourcePatch = resourcePatch { private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/youtube/patches/HideEndScreenCardsPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide end screen cards` by creatingBytecodePatch( description = "Adds an option to hide suggested video cards at the end of videos.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreensuggestion/HideEndScreenSuggestedVideoPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreensuggestion/HideEndScreenSuggestedVideoPatch.kt index 9686fbee9..ed47aaac9 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreensuggestion/HideEndScreenSuggestedVideoPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreensuggestion/HideEndScreenSuggestedVideoPatch.kt @@ -19,7 +19,7 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/youtube/patches/HideEndScreenSuggestedVideoPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide end screen suggested video` by creatingBytecodePatch( description = "Adds an option to hide the suggested video at the end of videos.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/infocards/HideInfoCardsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/infocards/HideInfoCardsPatch.kt index da3331628..33785d896 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/infocards/HideInfoCardsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/infocards/HideInfoCardsPatch.kt @@ -34,7 +34,7 @@ private val hideInfocardsResourcePatch = resourcePatch { } } -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide info cards` by creatingBytecodePatch( description = "Adds an option to hide info cards that creators add in the video player.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/relatedvideooverlay/HideRelatedVideoOverlayPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/relatedvideooverlay/HideRelatedVideoOverlayPatch.kt index ce3053c8f..27915c234 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/relatedvideooverlay/HideRelatedVideoOverlayPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/relatedvideooverlay/HideRelatedVideoOverlayPatch.kt @@ -15,7 +15,7 @@ import app.revanced.patches.youtube.misc.settings.settingsPatch private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/youtube/patches/HideRelatedVideoOverlayPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide related video overlay` by creatingBytecodePatch( description = "Adds an option to hide the related video overlay shown when swiping up in fullscreen.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt index 3627d0c7b..b65858f9e 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt @@ -153,7 +153,7 @@ private val hideShortsComponentsResourcePatch = resourcePatch { private const val FILTER_CLASS_DESCRIPTOR = "Lapp/revanced/extension/youtube/patches/components/ShortsFilter;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Hide Shorts componentsby creatingBytecodePatch( description = "Adds options to hide components related to Shorts.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/player/fullscreen/OpenVideosFullscreenPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/player/fullscreen/OpenVideosFullscreenPatch.kt index 3d732ccf1..76f57fc41 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/player/fullscreen/OpenVideosFullscreenPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/player/fullscreen/OpenVideosFullscreenPatch.kt @@ -8,7 +8,7 @@ import app.revanced.patches.youtube.misc.settings.PreferenceScreen import app.revanced.patches.youtube.misc.settings.settingsPatch import app.revanced.util.returnEarly -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Open videos fullscreen` by creatingBytecodePatch( description = "Adds an option to open videos in full screen portrait mode.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/player/overlay/CustomPlayerOverlayOpacityPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/player/overlay/CustomPlayerOverlayOpacityPatch.kt index c7c37f949..727292b4c 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/player/overlay/CustomPlayerOverlayOpacityPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/player/overlay/CustomPlayerOverlayOpacityPatch.kt @@ -15,7 +15,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/youtube/patches/CustomPlayerOverlayOpacityPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Custom player overlay opacity` by creatingBytecodePatch( description = "Adds an option to change the opacity of the video player background when player controls are visible.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/misc/hapticfeedback/DisableHapticFeedbackPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/misc/hapticfeedback/DisableHapticFeedbackPatch.kt index a7ec91811..56453dd72 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/misc/hapticfeedback/DisableHapticFeedbackPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/misc/hapticfeedback/DisableHapticFeedbackPatch.kt @@ -14,7 +14,7 @@ import app.revanced.patches.youtube.misc.settings.settingsPatch private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/youtube/patches/DisableHapticFeedbackPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable haptic feedback` by creatingBytecodePatch( description = "Adds an option to disable haptic feedback in the player for various actions.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/video/codecs/DisableVideoCodecsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/video/codecs/DisableVideoCodecsPatch.kt index a2299df39..d26ff093f 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/video/codecs/DisableVideoCodecsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/video/codecs/DisableVideoCodecsPatch.kt @@ -16,7 +16,7 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/youtube/patches/DisableVideoCodecsPatch;" -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Disable video codecs` by creatingBytecodePatch( description = "Adds options to disable HDR and VP9 codecs.", ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/video/quality/VideoQualityPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/video/quality/VideoQualityPatch.kt index e4b0059dc..1963c4b38 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/video/quality/VideoQualityPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/video/quality/VideoQualityPatch.kt @@ -11,14 +11,14 @@ import app.revanced.patches.youtube.misc.settings.PreferenceScreen */ internal val settingsMenuVideoQualityGroup = mutableSetOf() -@Suppress("unused") +@Suppress("unused", "ObjectPropertyName") val `Video quality` by creatingBytecodePatch( - description = "Adds options to set default video qualities and always use the advanced video quality menu." + description = "Adds options to set default video qualities and always use the advanced video quality menu.", ) { dependsOn( rememberVideoQualityPatch, advancedVideoQualityMenuPatch, - videoQualityDialogButtonPatch + videoQualityDialogButtonPatch, ) compatibleWith( @@ -27,7 +27,7 @@ val `Video quality` by creatingBytecodePatch( "20.14.43", "20.21.37", "20.31.40", - ) + ), ) apply { @@ -38,8 +38,8 @@ val `Video quality` by creatingBytecodePatch( titleKey = null, sorting = Sorting.UNSORTED, tag = "app.revanced.extension.shared.settings.preference.NoTitlePreferenceCategory", - preferences = settingsMenuVideoQualityGroup - ) + preferences = settingsMenuVideoQualityGroup, + ), ) } }