mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 13:17:46 +02:00
feat(Reddit): remove version restriction
This commit is contained in:
@ -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,
|
||||
|
@ -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" }
|
||||
)
|
@ -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"))
|
||||
}
|
Reference in New Issue
Block a user