feat(NU.nl): Support latest app version (#5643)
This commit is contained in:
parent
5fc0631a15
commit
1bb8c53ed3
2 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ val hideAdsPatch = bytecodePatch(
|
||||||
name = "Hide ads",
|
name = "Hide ads",
|
||||||
description = "Hide ads and sponsored articles in list pages and remove pre-roll ads on videos.",
|
description = "Hide ads and sponsored articles in list pages and remove pre-roll ads on videos.",
|
||||||
) {
|
) {
|
||||||
compatibleWith("nl.sanomamedia.android.nu"("11.3.0"))
|
compatibleWith("nl.sanomamedia.android.nu")
|
||||||
|
|
||||||
dependsOn(sharedExtensionPatch("nunl", mainActivityOnCreateHook))
|
dependsOn(sharedExtensionPatch("nunl", mainActivityOnCreateHook))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,6 @@ import app.revanced.patches.shared.misc.extension.extensionHook
|
||||||
|
|
||||||
internal val mainActivityOnCreateHook = extensionHook {
|
internal val mainActivityOnCreateHook = extensionHook {
|
||||||
custom { method, classDef ->
|
custom { method, classDef ->
|
||||||
classDef.type == "Lnl/sanomamedia/android/nu/main/NUMainActivity;" && method.name == "onCreate"
|
classDef.endsWith("/NUApplication;") && method.name == "onCreate"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue