mirror of
https://github.com/revanced/revanced-patches
synced 2024-11-30 17:12:52 +01:00
feat(twitch): ˋintegrationsˋ dependency patch (#1074)
This commit is contained in:
parent
77ba6305f6
commit
5179e7a0f8
@ -0,0 +1,9 @@
|
||||
package app.revanced.patches.twitch.misc.integrations.annotations
|
||||
|
||||
import app.revanced.patcher.annotation.Compatibility
|
||||
import app.revanced.patcher.annotation.Package
|
||||
|
||||
@Compatibility([Package("tv.twitch.android.app")])
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
internal annotation class IntegrationsCompatibility
|
@ -0,0 +1,16 @@
|
||||
package app.revanced.patches.twitch.misc.integrations.fingerprints
|
||||
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Version
|
||||
import app.revanced.patches.twitch.misc.integrations.annotations.IntegrationsCompatibility
|
||||
import app.revanced.shared.patches.AbstractIntegrationsPatch.IntegrationsFingerprint
|
||||
|
||||
@Name("init-fingerprint")
|
||||
@IntegrationsCompatibility
|
||||
@Version("0.0.1")
|
||||
object InitFingerprint : IntegrationsFingerprint(
|
||||
customFingerprint = { methodDef ->
|
||||
methodDef.definingClass.endsWith("/TwitchApplication;") &&
|
||||
methodDef.name == "onCreate"
|
||||
}
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
package app.revanced.patches.twitch.misc.integrations.patch
|
||||
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patches.twitch.misc.integrations.fingerprints.InitFingerprint
|
||||
import app.revanced.patches.twitch.misc.integrations.annotations.IntegrationsCompatibility
|
||||
import app.revanced.shared.patches.AbstractIntegrationsPatch
|
||||
|
||||
@Name("integrations")
|
||||
@IntegrationsCompatibility
|
||||
class IntegrationsPatch : AbstractIntegrationsPatch(
|
||||
"Lapp/revanced/twitch/utils/ReVancedUtils;",
|
||||
listOf(InitFingerprint)
|
||||
)
|
Loading…
Reference in New Issue
Block a user