mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-16 04:20:30 +00:00
* ensure heartbeat happened recently before enabling jit * JS controlled Debug Proxy * Fix heartbeat issue & JS nil issue * Update idevice * Fix compile issue
24 lines
965 B
Objective-C
24 lines
965 B
Objective-C
//
|
|
// JITEnableContext.h
|
|
// StikJIT
|
|
//
|
|
// Created by s s on 2025/3/28.
|
|
//
|
|
@import Foundation;
|
|
@import UIKit;
|
|
#include "idevice.h"
|
|
#include "jit.h"
|
|
|
|
typedef void (^HeartbeatCompletionHandler)(int result, NSString *message);
|
|
typedef void (^LogFuncC)(const char* message, ...);
|
|
typedef void (^LogFunc)(NSString *message);
|
|
|
|
@interface JITEnableContext : NSObject
|
|
@property (class, readonly)JITEnableContext* shared;
|
|
- (IdevicePairingFile*)getPairingFileWithError:(NSError**)error;
|
|
- (void)startHeartbeatWithCompletionHandler:(HeartbeatCompletionHandler)completionHandler logger:(LogFunc)logger;
|
|
- (BOOL)debugAppWithBundleID:(NSString*)bundleID logger:(LogFunc)logger jsCallback:(DebugAppCallback)jsCallback;
|
|
- (BOOL)debugAppWithPID:(int)pid logger:(LogFunc)logger jsCallback:(DebugAppCallback)jsCallback;
|
|
- (NSDictionary<NSString*, NSString*>*)getAppListWithError:(NSError**)error;
|
|
- (UIImage*)getAppIconWithBundleId:(NSString*)bundleId error:(NSError**)error;
|
|
@end
|