// // JXCrashHandler.h // AICity // // Feature: 003-ios-api-https // 剧星平台崩溃处理器 // #import NS_ASSUME_NONNULL_BEGIN @interface JXCrashInfo : NSObject @property (nonatomic, assign) NSTimeInterval timestamp; @property (nonatomic, strong) NSString *exceptionName; @property (nonatomic, strong) NSString *exceptionReason; @property (nonatomic, strong) NSArray *callStack; @property (nonatomic, strong) NSDictionary *deviceInfo; @property (nonatomic, strong) NSDictionary *appInfo; @end @interface JXCrashHandler : NSObject + (instancetype)sharedHandler; - (void)installCrashHandler; - (void)uninstallCrashHandler; // 崩溃日志管理 - (NSArray *)getLocalCrashLogs; - (void)cleanupOldCrashLogs:(NSTimeInterval)maxAge; // 手动上报崩溃信息 - (void)reportCrashInfo:(JXCrashInfo *)crashInfo; @end NS_ASSUME_NONNULL_END