build(revanced-patcher): bump version
This commit is contained in:
parent
f34c6437ba
commit
8449785e8b
|
@ -27,7 +27,7 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("app.revanced:revanced-patcher:11.0.0")
|
implementation("app.revanced:revanced-patcher:11.0.2")
|
||||||
implementation("app.revanced:multidexlib2:2.5.3-a3836654")
|
implementation("app.revanced:multidexlib2:2.5.3-a3836654")
|
||||||
// Required for meta
|
// Required for meta
|
||||||
implementation("com.google.code.gson:gson:2.10.1")
|
implementation("com.google.code.gson:gson:2.10.1")
|
||||||
|
|
|
@ -14,6 +14,7 @@ import app.revanced.patches.shared.settings.preference.impl.StringResource
|
||||||
import app.revanced.util.resources.ResourceUtils
|
import app.revanced.util.resources.ResourceUtils
|
||||||
import app.revanced.util.resources.ResourceUtils.copyResources
|
import app.revanced.util.resources.ResourceUtils.copyResources
|
||||||
import org.w3c.dom.Node
|
import org.w3c.dom.Node
|
||||||
|
import java.io.Closeable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstract settings resource patch
|
* Abstract settings resource patch
|
||||||
|
@ -24,7 +25,7 @@ import org.w3c.dom.Node
|
||||||
abstract class AbstractSettingsResourcePatch(
|
abstract class AbstractSettingsResourcePatch(
|
||||||
private val preferenceFileName: String,
|
private val preferenceFileName: String,
|
||||||
private val sourceDirectory: String,
|
private val sourceDirectory: String,
|
||||||
) : ResourcePatch {
|
) : ResourcePatch, Closeable {
|
||||||
override fun execute(context: ResourceContext): PatchResult {
|
override fun execute(context: ResourceContext): PatchResult {
|
||||||
/*
|
/*
|
||||||
* used for self-restart
|
* used for self-restart
|
||||||
|
|
|
@ -29,6 +29,7 @@ import app.revanced.patches.twitch.misc.settings.fingerprints.SettingsMenuItemEn
|
||||||
import app.revanced.patches.twitch.misc.settings.resource.patch.SettingsResourcePatch
|
import app.revanced.patches.twitch.misc.settings.resource.patch.SettingsResourcePatch
|
||||||
import org.jf.dexlib2.AccessFlags
|
import org.jf.dexlib2.AccessFlags
|
||||||
import org.jf.dexlib2.immutable.ImmutableField
|
import org.jf.dexlib2.immutable.ImmutableField
|
||||||
|
import java.io.Closeable
|
||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@DependsOn([IntegrationsPatch::class, SettingsResourcePatch::class])
|
@DependsOn([IntegrationsPatch::class, SettingsResourcePatch::class])
|
||||||
|
@ -43,7 +44,7 @@ class SettingsPatch : BytecodePatch(
|
||||||
MenuGroupsUpdatedFingerprint,
|
MenuGroupsUpdatedFingerprint,
|
||||||
MenuGroupsOnClickFingerprint
|
MenuGroupsOnClickFingerprint
|
||||||
)
|
)
|
||||||
) {
|
), Closeable {
|
||||||
override fun execute(context: BytecodeContext): PatchResult {
|
override fun execute(context: BytecodeContext): PatchResult {
|
||||||
// Hook onCreate to handle fragment creation
|
// Hook onCreate to handle fragment creation
|
||||||
SettingsActivityOnCreateFingerprint.result?.apply {
|
SettingsActivityOnCreateFingerprint.result?.apply {
|
||||||
|
|
|
@ -9,12 +9,13 @@ import app.revanced.patcher.patch.PatchResult
|
||||||
import app.revanced.patcher.patch.PatchResultSuccess
|
import app.revanced.patcher.patch.PatchResultSuccess
|
||||||
import app.revanced.patcher.patch.ResourcePatch
|
import app.revanced.patcher.patch.ResourcePatch
|
||||||
import app.revanced.patches.youtube.misc.playercontrols.annotation.PlayerControlsCompatibility
|
import app.revanced.patches.youtube.misc.playercontrols.annotation.PlayerControlsCompatibility
|
||||||
|
import java.io.Closeable
|
||||||
|
|
||||||
@Name("bottom-controls-resource-patch")
|
@Name("bottom-controls-resource-patch")
|
||||||
@Description("Manages the resources for the bottom controls of the YouTube player.")
|
@Description("Manages the resources for the bottom controls of the YouTube player.")
|
||||||
@PlayerControlsCompatibility
|
@PlayerControlsCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class BottomControlsResourcePatch : ResourcePatch {
|
class BottomControlsResourcePatch : ResourcePatch, Closeable {
|
||||||
override fun execute(context: ResourceContext): PatchResult {
|
override fun execute(context: ResourceContext): PatchResult {
|
||||||
resourceContext = context
|
resourceContext = context
|
||||||
targetXmlEditor = context.xmlEditor[TARGET_RESOURCE]
|
targetXmlEditor = context.xmlEditor[TARGET_RESOURCE]
|
||||||
|
|
|
@ -22,6 +22,7 @@ import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsResourc
|
||||||
import org.jf.dexlib2.Opcode
|
import org.jf.dexlib2.Opcode
|
||||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||||
import org.jf.dexlib2.util.MethodUtil
|
import org.jf.dexlib2.util.MethodUtil
|
||||||
|
import java.io.Closeable
|
||||||
|
|
||||||
@DependsOn([IntegrationsPatch::class, SettingsResourcePatch::class, ])
|
@DependsOn([IntegrationsPatch::class, SettingsResourcePatch::class, ])
|
||||||
@Name("settings")
|
@Name("settings")
|
||||||
|
@ -29,7 +30,7 @@ import org.jf.dexlib2.util.MethodUtil
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class SettingsPatch : BytecodePatch(
|
class SettingsPatch : BytecodePatch(
|
||||||
listOf(LicenseActivityFingerprint, SetThemeFingerprint)
|
listOf(LicenseActivityFingerprint, SetThemeFingerprint)
|
||||||
) {
|
), Closeable {
|
||||||
override fun execute(context: BytecodeContext): PatchResult {
|
override fun execute(context: BytecodeContext): PatchResult {
|
||||||
// TODO: Remove this when it is only required at one place.
|
// TODO: Remove this when it is only required at one place.
|
||||||
fun getSetThemeInstructionString(
|
fun getSetThemeInstructionString(
|
||||||
|
|
Loading…
Reference in a new issue