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>
This commit is contained in:
KobeW50 2024-07-26 00:35:52 -04:00 committed by GitHub
parent e167d679c0
commit f26dacae48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 11 additions and 10 deletions

View File

@ -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."
)
}
}

View File

@ -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

View File

@ -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,

View File

@ -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,