[Main] hook executeApplicationScript
This commit is contained in:
parent
ea525c3d56
commit
f3972d8010
3 changed files with 18 additions and 0 deletions
|
|
@ -1,2 +1,12 @@
|
|||
import Orion
|
||||
import VendettaTweakC
|
||||
import os
|
||||
|
||||
let vendettaLog = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "vendetta")
|
||||
|
||||
class LoadHook: ClassHook<RCTCxxBridge> {
|
||||
func executeApplicationScript(_ script: Data, url: URL, async: Bool) {
|
||||
os_log("executeApplicationScript called!", log: vendettaLog, type: .debug)
|
||||
orig.executeApplicationScript(script, url: url, async: async)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
7
Sources/VendettaTweakC/include/RCTCxxBridge.h
Normal file
7
Sources/VendettaTweakC/include/RCTCxxBridge.h
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
@import Foundation;
|
||||
|
||||
@interface RCTCxxBridge : NSObject
|
||||
|
||||
- (void)executeApplicationScript:(NSData *)script url:(NSURL *)url async:(BOOL)async;
|
||||
|
||||
@end
|
||||
|
|
@ -0,0 +1 @@
|
|||
#import "RCTCxxBridge.h"
|
||||
Loading…
Add table
Reference in a new issue