From b1f9c00ee484a277c4c8997098ee77fe99bc3bcf Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Sat, 27 Jul 2024 17:29:17 +0900 Subject: [PATCH] chore: lint code --- .../patches/shared/gms/BaseGmsCoreSupportResourcePatch.kt | 2 +- .../shared/viewgroup/ViewGroupMarginLayoutParamsHookPatch.kt | 2 +- .../patches/youtube/swipe/controls/SwipeControlsPatch.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/shared/gms/BaseGmsCoreSupportResourcePatch.kt b/src/main/kotlin/app/revanced/patches/shared/gms/BaseGmsCoreSupportResourcePatch.kt index 3bd7a4447..549bfc84f 100644 --- a/src/main/kotlin/app/revanced/patches/shared/gms/BaseGmsCoreSupportResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/shared/gms/BaseGmsCoreSupportResourcePatch.kt @@ -75,7 +75,7 @@ abstract class BaseGmsCoreSupportResourcePatch( required = true ) { it!!.matches(Regex(PACKAGE_NAME_REGEX_PATTERN)) && it != ORIGINAL_PACKAGE_NAME_YOUTUBE_MUSIC } - protected val gmsCoreVendorGroupId by GmsCoreVendorGroupId + private val gmsCoreVendorGroupId by GmsCoreVendorGroupId override fun execute(context: ResourceContext) { context.patchManifest() diff --git a/src/main/kotlin/app/revanced/patches/shared/viewgroup/ViewGroupMarginLayoutParamsHookPatch.kt b/src/main/kotlin/app/revanced/patches/shared/viewgroup/ViewGroupMarginLayoutParamsHookPatch.kt index adda1e540..3dfe48d4c 100644 --- a/src/main/kotlin/app/revanced/patches/shared/viewgroup/ViewGroupMarginLayoutParamsHookPatch.kt +++ b/src/main/kotlin/app/revanced/patches/shared/viewgroup/ViewGroupMarginLayoutParamsHookPatch.kt @@ -5,9 +5,9 @@ import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.PatchException import app.revanced.patcher.patch.annotation.Patch +import app.revanced.patches.shared.integrations.Constants.INTEGRATIONS_UTILS_CLASS_DESCRIPTOR import app.revanced.patches.shared.viewgroup.fingerprints.ViewGroupMarginFingerprint import app.revanced.patches.shared.viewgroup.fingerprints.ViewGroupMarginParentFingerprint -import app.revanced.patches.shared.integrations.Constants.INTEGRATIONS_UTILS_CLASS_DESCRIPTOR import app.revanced.util.resultOrThrow @Patch( diff --git a/src/main/kotlin/app/revanced/patches/youtube/swipe/controls/SwipeControlsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/swipe/controls/SwipeControlsPatch.kt index a0c528cc4..686c02dfc 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/swipe/controls/SwipeControlsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/swipe/controls/SwipeControlsPatch.kt @@ -37,7 +37,7 @@ import com.android.tools.smali.dexlib2.immutable.ImmutableMethod object SwipeControlsPatch : BaseBytecodePatch( name = "Swipe controls", description = "Adds options for controlling volume and brightness with swiping, " + - "and whether to enter fullscreen when swiping down below the player.", + "and whether to enter fullscreen when swiping down below the player.", dependencies = setOf( LockModeStateHookPatch::class, MainActivityResolvePatch::class,