Skip to content

Commit 1bb8c53

Browse files
authored
feat(NU.nl): Support latest app version (#5643)
1 parent 5fc0631 commit 1bb8c53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

patches/src/main/kotlin/app/revanced/patches/nunl/ads/HideAdsPatch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ val hideAdsPatch = bytecodePatch(
1414
name = "Hide ads",
1515
description = "Hide ads and sponsored articles in list pages and remove pre-roll ads on videos.",
1616
) {
17-
compatibleWith("nl.sanomamedia.android.nu"("11.3.0"))
17+
compatibleWith("nl.sanomamedia.android.nu")
1818

1919
dependsOn(sharedExtensionPatch("nunl", mainActivityOnCreateHook))
2020

patches/src/main/kotlin/app/revanced/patches/nunl/ads/Hooks.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import app.revanced.patches.shared.misc.extension.extensionHook
44

55
internal val mainActivityOnCreateHook = extensionHook {
66
custom { method, classDef ->
7-
classDef.type == "Lnl/sanomamedia/android/nu/main/NUMainActivity;" && method.name == "onCreate"
7+
classDef.endsWith("/NUApplication;") && method.name == "onCreate"
88
}
99
}

0 commit comments

Comments
 (0)