feat(Reddit): remove version restriction

This commit is contained in:
inotia00
2024-04-26 06:02:50 +09:00
parent f909726e07
commit 477f189171
3 changed files with 5 additions and 12 deletions

View File

@ -16,8 +16,9 @@ import app.revanced.util.resultOrThrow
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
@Suppress("unused")
@Deprecated("This patch is deprecated until Reddit adds a button like r/place or Reddit recap button to the toolbar.")
object ToolBarButtonPatch : BaseBytecodePatch(
name = "Hide toolbar button",
// name = "Hide toolbar button",
description = "Adds an option to hide the r/place or Reddit recap button in the toolbar.",
dependencies = setOf(
SettingsPatch::class,

View File

@ -14,6 +14,6 @@ internal object ScreenNavigatorFingerprint : MethodFingerprint(
Opcode.CONST_STRING,
Opcode.INVOKE_STATIC
),
strings = listOf("uri", "android.intent.action.VIEW", "com.reddit"),
strings = listOf("activity", "uri"),
customFingerprint = { _, classDef -> classDef.sourceFile == "RedditScreenNavigator.kt" }
)

View File

@ -2,18 +2,10 @@ package app.revanced.patches.reddit.utils.integrations
import app.revanced.patcher.patch.Patch
@Suppress("MemberVisibilityCanBePrivate", "SpellCheckingInspection")
@Suppress("MemberVisibilityCanBePrivate")
object Constants {
const val INTEGRATIONS_PATH = "Lapp/revanced/integrations/reddit"
const val PATCHES_PATH = "$INTEGRATIONS_PATH/patches"
val COMPATIBLE_PACKAGE = setOf(
Patch.CompatiblePackage(
"com.reddit.frontpage",
setOf(
"2023.12.0",
"2024.04.0"
)
)
)
val COMPATIBLE_PACKAGE = setOf(Patch.CompatiblePackage("com.reddit.frontpage"))
}