feat(YouTube/Spoof app version): remove deprecated target versions

This commit is contained in:
inotia00
2024-03-23 19:54:13 +09:00
parent d89587dfd3
commit f50d2e7d0f
26 changed files with 28 additions and 78 deletions

View File

@ -74,22 +74,13 @@ object SpoofAppVersionPatch : AbstractVersionSpoofPatch(
)
)
if (SettingsPatch.upward1841) {
if (SettingsPatch.upward1849) {
contexts.appendChild(
arrayOf(
"revanced_spoof_app_version_target_entry" to "@string/revanced_spoof_app_version_target_entry_18_40_34",
"revanced_spoof_app_version_target_entry_value" to "18.40.34"
"revanced_spoof_app_version_target_entry" to "@string/revanced_spoof_app_version_target_entry_18_48_39",
"revanced_spoof_app_version_target_entry_value" to "18.48.39"
)
)
if (SettingsPatch.upward1843) {
contexts.appendChild(
arrayOf(
"revanced_spoof_app_version_target_entry" to "@string/revanced_spoof_app_version_target_entry_18_42_41",
"revanced_spoof_app_version_target_entry_value" to "18.42.41"
)
)
}
}
}
}

View File

@ -42,12 +42,12 @@ object ReturnYouTubeDislikeRollingNumberPatch : BytecodePatch(
override fun execute(context: BytecodeContext) {
/**
* RollingNumber is applied to YouTube v18.41.39+.
* RollingNumber is applied to YouTube v18.49.37+.
*
* In order to maintain compatibility with YouTube v18.40.34 or previous versions,
* This patch is applied only to the version after YouTube v18.41.39
* In order to maintain compatibility with YouTube v18.48.39 or previous versions,
* This patch is applied only to the version after YouTube v18.49.37
*/
if (SettingsPatch.upward1841) {
if (SettingsPatch.upward1849) {
RollingNumberSetterFingerprint.result?.let {
it.mutableMethod.apply {

View File

@ -94,8 +94,7 @@ object SettingsPatch : AbstractSettingsResourcePatch(
upward1831 = 233200000 <= playServicesVersion
upward1834 = 233502000 <= playServicesVersion
upward1839 = 234002000 <= playServicesVersion
upward1841 = 234200000 <= playServicesVersion
upward1843 = 234400000 <= playServicesVersion
upward1849 = 235002000 <= playServicesVersion
break
}
@ -163,8 +162,7 @@ object SettingsPatch : AbstractSettingsResourcePatch(
internal var upward1831: Boolean = false
internal var upward1834: Boolean = false
internal var upward1839: Boolean = false
internal var upward1841: Boolean = false
internal var upward1843: Boolean = false
internal var upward1849: Boolean = false
internal fun addPreference(settingArray: Array<String>) {
contexts.addPreference(settingArray)