[Main] hook executeApplicationScript

This commit is contained in:
Jack Matthews 2023-03-12 05:17:05 -04:00
parent ea525c3d56
commit f3972d8010
No known key found for this signature in database
3 changed files with 18 additions and 0 deletions

View file

@ -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)
}
}

View file

@ -0,0 +1,7 @@
@import Foundation;
@interface RCTCxxBridge : NSObject
- (void)executeApplicationScript:(NSData *)script url:(NSURL *)url async:(BOOL)async;
@end

View file

@ -0,0 +1 @@
#import "RCTCxxBridge.h"