From f26dacae48b1cf564c2c30d538e8a8d066aacb50 Mon Sep 17 00:00:00 2001 From: KobeW50 <84587632+KobeW50@users.noreply.github.com> Date: Fri, 26 Jul 2024 00:35:52 -0400 Subject: [PATCH] chore: improve patch descriptions (#65) * (Bypass image region restrictions): Fix patch description * (Change version code): Simplify patch description * (Change version code): Fix info for mounting and rephrase * (YT - Swipe controls): Add fullscreen gesture to description * fix syntax error --------- Co-authored-by: inotia00 <108592928+inotia00@users.noreply.github.com> --- .../all/misc/versioncode/ChangeVersionCodePatch.kt | 10 +++++----- .../thumbnails/BypassImageRegionRestrictionsPatch.kt | 4 ++-- .../thumbnails/BypassImageRegionRestrictionsPatch.kt | 4 ++-- .../youtube/swipe/controls/SwipeControlsPatch.kt | 3 ++- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/all/misc/versioncode/ChangeVersionCodePatch.kt b/src/main/kotlin/app/revanced/patches/all/misc/versioncode/ChangeVersionCodePatch.kt index 07d5bb5d3..2a4e04b29 100644 --- a/src/main/kotlin/app/revanced/patches/all/misc/versioncode/ChangeVersionCodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/all/misc/versioncode/ChangeVersionCodePatch.kt @@ -11,10 +11,10 @@ import org.w3c.dom.Element @Patch( name = "Change version code", - description = "Changes the version code of the app. By default the highest version code is set. " + - "This allows older versions of an app to be installed " + - "if their version code is set to the same or a higher value and can stop app stores to update the app. " + - "This does not apply when installing with root install (mount).", + description = "Changes the version code of the app to the value specified in options.json. " + + "Except when mounting, this can prevent app stores from updating the app and allow " + + "the app to be installed over an existing installation that has a higher version code. " + + "By default, the highest version code is set.", use = false, ) @Suppress("unused") @@ -67,4 +67,4 @@ object ChangeVersionCodePatch : ResourcePatch() { "Invalid versionCode: $versionCodeString, " + "Version code should be larger than 1 and smaller than $MAX_VALUE." ) -} \ No newline at end of file +} diff --git a/src/main/kotlin/app/revanced/patches/music/misc/thumbnails/BypassImageRegionRestrictionsPatch.kt b/src/main/kotlin/app/revanced/patches/music/misc/thumbnails/BypassImageRegionRestrictionsPatch.kt index c30dd70c3..1563bf542 100644 --- a/src/main/kotlin/app/revanced/patches/music/misc/thumbnails/BypassImageRegionRestrictionsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/misc/thumbnails/BypassImageRegionRestrictionsPatch.kt @@ -10,8 +10,8 @@ import app.revanced.util.patch.BaseBytecodePatch @Suppress("unused") object BypassImageRegionRestrictionsPatch : BaseBytecodePatch( name = "Bypass image region restrictions", - description = "Adds an option to use a different host for static images," + - "and can fix missing images that are blocked in some countries.", + description = "Adds an option to use a different host for static images, " + + "so that images blocked in some countries can be received.", dependencies = setOf( CronetImageUrlHookPatch::class, SettingsPatch::class diff --git a/src/main/kotlin/app/revanced/patches/youtube/alternative/thumbnails/BypassImageRegionRestrictionsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/alternative/thumbnails/BypassImageRegionRestrictionsPatch.kt index 383e8cda0..72c97e500 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/alternative/thumbnails/BypassImageRegionRestrictionsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/alternative/thumbnails/BypassImageRegionRestrictionsPatch.kt @@ -9,8 +9,8 @@ import app.revanced.util.patch.BaseBytecodePatch @Suppress("unused") object BypassImageRegionRestrictionsPatch : BaseBytecodePatch( name = "Bypass image region restrictions", - description = "Adds an option to use a different host for static images," + - "and can fix missing images that are blocked in some countries.", + description = "Adds an option to use a different host for static images, " + + "so that images blocked in some countries can be received.", dependencies = setOf( CronetImageUrlHookPatch::class, SettingsPatch::class, 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 411199c33..a0c528cc4 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 @@ -36,7 +36,8 @@ import com.android.tools.smali.dexlib2.immutable.ImmutableMethod @Suppress("unused") object SwipeControlsPatch : BaseBytecodePatch( name = "Swipe controls", - description = "Adds options to enable and configure volume and brightness swipe controls.", + description = "Adds options for controlling volume and brightness with swiping, " + + "and whether to enter fullscreen when swiping down below the player.", dependencies = setOf( LockModeStateHookPatch::class, MainActivityResolvePatch::class,