From 28a389a62f69b3a31053bb700c4db159229aadae Mon Sep 17 00:00:00 2001 From: ILoveOpenSourceApplications <117499019+ILoveOpenSourceApplications@users.noreply.github.com> Date: Sat, 31 May 2025 13:55:04 +0530 Subject: [PATCH] refactor: Make strings consistent (#5075) --- patches/api/patches.api | 1 + .../patches/all/misc/build/SpoofBuildInfoPatch.kt | 6 +++--- .../telephony/sim/spoof/SpoofSimCountryPatch.kt | 4 ++-- .../lightroom/misc/premium/UnlockPremiumPatch.kt | 2 +- .../layout/premiumicon/UnlockPremiumIconPatch.kt | 12 +++++++++--- .../misc/pairip/license/DisableLicenseCheckPatch.kt | 2 +- .../patches/spotify/misc/UnlockPremiumPatch.kt | 2 +- 7 files changed, 18 insertions(+), 11 deletions(-) diff --git a/patches/api/patches.api b/patches/api/patches.api index a96d4a6c9..83e6c7afe 100644 --- a/patches/api/patches.api +++ b/patches/api/patches.api @@ -593,6 +593,7 @@ public final class app/revanced/patches/reddit/layout/disablescreenshotpopup/Dis public final class app/revanced/patches/reddit/layout/premiumicon/UnlockPremiumIconPatchKt { public static final fun getUnlockPremiumIconPatch ()Lapp/revanced/patcher/patch/BytecodePatch; + public static final fun getUnlockPremiumIconsPatch ()Lapp/revanced/patcher/patch/BytecodePatch; } public final class app/revanced/patches/reddit/misc/extension/ExtensionPatchKt { 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 7cfd385c6..aa4fbf3f8 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 @@ -7,7 +7,7 @@ import app.revanced.patcher.patch.stringOption @Suppress("unused") val spoofBuildInfoPatch = bytecodePatch( name = "Spoof build info", - description = "Spoof the information about the current build.", + description = "Spoofs the information about the current build.", use = false, ) { val board by stringOption( @@ -141,14 +141,14 @@ val spoofBuildInfoPatch = bytecodePatch( val socManufacturer by stringOption( key = "soc-manufacturer", default = null, - title = "SOC Manufacturer", + title = "SOC manufacturer", description = "The manufacturer of the device's primary system-on-chip.", ) val socModel by stringOption( key = "soc-model", default = null, - title = "SOC Model", + title = "SOC model", description = "The model name of the device's primary system-on-chip.", ) diff --git a/patches/src/main/kotlin/app/revanced/patches/all/misc/connectivity/telephony/sim/spoof/SpoofSimCountryPatch.kt b/patches/src/main/kotlin/app/revanced/patches/all/misc/connectivity/telephony/sim/spoof/SpoofSimCountryPatch.kt index b50ccfc88..2f90b5ec3 100644 --- a/patches/src/main/kotlin/app/revanced/patches/all/misc/connectivity/telephony/sim/spoof/SpoofSimCountryPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/all/misc/connectivity/telephony/sim/spoof/SpoofSimCountryPatch.kt @@ -36,12 +36,12 @@ val spoofSimCountryPatch = bytecodePatch( val networkCountryIso by isoCountryPatchOption( "networkCountryIso", - "Network ISO Country Code", + "Network ISO country code", ) val simCountryIso by isoCountryPatchOption( "simCountryIso", - "Sim ISO Country Code", + "SIM ISO country code", ) dependsOn( 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 4561cee41..8dc963a49 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 @@ -5,7 +5,7 @@ import app.revanced.patcher.patch.bytecodePatch @Suppress("unused") val unlockPremiumPatch = bytecodePatch( - name = "Unlock premium", + name = "Unlock Premium", ) { compatibleWith("com.adobe.lrmobile"("10.0.2")) diff --git a/patches/src/main/kotlin/app/revanced/patches/reddit/layout/premiumicon/UnlockPremiumIconPatch.kt b/patches/src/main/kotlin/app/revanced/patches/reddit/layout/premiumicon/UnlockPremiumIconPatch.kt index bde2b52b9..992ff27e5 100644 --- a/patches/src/main/kotlin/app/revanced/patches/reddit/layout/premiumicon/UnlockPremiumIconPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/reddit/layout/premiumicon/UnlockPremiumIconPatch.kt @@ -4,9 +4,9 @@ import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.bytecodePatch @Suppress("unused") -val unlockPremiumIconPatch = bytecodePatch( - name = "Unlock premium Reddit icons", - description = "Unlocks the premium Reddit icons.", +val unlockPremiumIconsPatch = bytecodePatch( + name = "Unlock Premium icons", + description = "Unlocks the Reddit Premium icons.", ) { compatibleWith("com.reddit.frontpage") @@ -20,3 +20,9 @@ val unlockPremiumIconPatch = bytecodePatch( ) } } + +@Deprecated("Patch was renamed", ReplaceWith("unlockPremiumIconsPatch")) +@Suppress("unused") +val unlockPremiumIconPatch = bytecodePatch{ + dependsOn(unlockPremiumIconsPatch) +} \ No newline at end of file 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 0eafad4e8..36a99f728 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 @@ -8,7 +8,7 @@ import java.util.logging.Logger @Suppress("unused") val disableLicenseCheckPatch = bytecodePatch( name = "Disable Pairip license check", - description = "Disable Play Integrity Protect (Pairip) client-side license check.", + description = "Disables Play Integrity API (Pairip) client-side license check.", use = false ) { diff --git a/patches/src/main/kotlin/app/revanced/patches/spotify/misc/UnlockPremiumPatch.kt b/patches/src/main/kotlin/app/revanced/patches/spotify/misc/UnlockPremiumPatch.kt index b34df2aac..3e16751ab 100644 --- a/patches/src/main/kotlin/app/revanced/patches/spotify/misc/UnlockPremiumPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/spotify/misc/UnlockPremiumPatch.kt @@ -26,7 +26,7 @@ private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/spotify/ @Suppress("unused") val unlockPremiumPatch = bytecodePatch( - name = "Unlock Spotify Premium", + name = "Unlock Premium", description = "Unlocks Spotify Premium features. Server-sided features like downloading songs are still locked.", ) { compatibleWith("com.spotify.music")