mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-07 01:54:34 +02:00
fix: CI test code not removed after ReVanced Patcher 21 migration
This commit is contained in:
parent
af9c718638
commit
2561fd2922
@ -33,9 +33,7 @@ class ExtensionHook internal constructor(
|
|||||||
private val insertIndexResolver: ((Method) -> Int),
|
private val insertIndexResolver: ((Method) -> Int),
|
||||||
private val contextRegisterResolver: (Method) -> String,
|
private val contextRegisterResolver: (Method) -> String,
|
||||||
) {
|
) {
|
||||||
context(BytecodePatchContext)
|
|
||||||
operator fun invoke(extensionClassDescriptor: String) {
|
operator fun invoke(extensionClassDescriptor: String) {
|
||||||
if (System.getenv("GITHUB_REPOSITORY") == null) {
|
|
||||||
val insertIndex = insertIndexResolver(fingerprint.method)
|
val insertIndex = insertIndexResolver(fingerprint.method)
|
||||||
val contextRegister = contextRegisterResolver(fingerprint.method)
|
val contextRegister = contextRegisterResolver(fingerprint.method)
|
||||||
|
|
||||||
@ -45,7 +43,6 @@ class ExtensionHook internal constructor(
|
|||||||
"$extensionClassDescriptor->setContext(Landroid/content/Context;)V",
|
"$extensionClassDescriptor->setContext(Landroid/content/Context;)V",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun extensionHook(
|
fun extensionHook(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user