Skip to content

Commit

Permalink
fix(twitter): correctly resolve to integrations methods
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed May 20, 2023
1 parent 932e335 commit cd93917
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
@@ -1,14 +1,16 @@
package app.revanced.twitter.patches.hook.json

import app.revanced.twitter.patches.hook.patch.dummy.DummyHook
import app.revanced.twitter.utils.json.JsonUtils.parseJson
import app.revanced.twitter.utils.stream.StreamUtils
import org.json.JSONException
import java.io.IOException
import java.io.InputStream

object JsonHookPatch {
// Additional hooks added by corresponding patch.
private val hooks = buildList<JsonHook> {
// Modified by corresponding patch.
add(DummyHook)
}

@JvmStatic
Expand Down
@@ -0,0 +1,14 @@
package app.revanced.twitter.patches.hook.patch.dummy

import app.revanced.twitter.patches.hook.json.BaseJsonHook
import app.revanced.twitter.patches.hook.json.JsonHookPatch
import org.json.JSONObject

/**
* Dummy hook to reserve a register in [JsonHookPatch.hooks] list.
*/
object DummyHook : BaseJsonHook() {
override fun apply(json: JSONObject) {
// Do nothing.
}
}

0 comments on commit cd93917

Please sign in to comment.