feat(reddit): remove decoding-patch that are no longer used

This commit is contained in:
inotia00 2023-09-05 12:34:15 +09:00
parent 6686088fc8
commit ed6a45a269
2 changed files with 0 additions and 30 deletions

View File

@ -1,28 +0,0 @@
package app.revanced.patches.reddit.utils.fix.decoding.patch
import app.revanced.patcher.data.ResourceContext
import app.revanced.patcher.patch.ResourcePatch
class DecodingPatch : ResourcePatch {
override fun execute(context: ResourceContext) {
arrayOf(
"res/layout/notification_media_cancel_action.xml",
"res/values/styles.xml"
).forEach { xmlPath ->
context[xmlPath].apply {
writeText(
readText()
.replace(
"@android:drawable/cling_button",
"@android:drawable/sym_def_app_icon"
).replace(
"@android:drawable/ab_share_pack_material",
"@android:drawable/ic_menu_close_clear_cancel"
)
)
}
}
}
}

View File

@ -8,7 +8,6 @@ import app.revanced.patcher.patch.ResourcePatch
import app.revanced.patcher.patch.annotations.DependsOn
import app.revanced.patcher.patch.annotations.Patch
import app.revanced.patches.reddit.utils.annotations.RedditCompatibility
import app.revanced.patches.reddit.utils.fix.decoding.patch.DecodingPatch
import app.revanced.patches.reddit.utils.integrations.patch.IntegrationsPatch
import app.revanced.patches.reddit.utils.settings.bytecode.patch.SettingsBytecodePatch
import kotlin.io.path.exists
@ -18,7 +17,6 @@ import kotlin.io.path.exists
@Description("Adds ReVanced settings to Reddit.")
@DependsOn(
[
DecodingPatch::class,
IntegrationsPatch::class,
SettingsBytecodePatch::class
]