ProblemTerminator is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ProblemTerminator'
/// 配置
[JMHotFixManage shareInstance].kAES128Key = @"";
[JMHotFixManage shareInstance].kAES128Iv = @"";
[JMHotFixManage shareInstance].kHotUrl = @"";
[JMHotFixManage shareInstance].kExitHotUrl = @"";
/// 加载包
[[JMHotFixManage shareInstance] loadHotFix];
基于 MangoFix 封装, 实现了拉修复包,缓存,修复等功能。
设计流程图:
基于补丁是从服务端拉取的,有一定的延时,为了不影响启动时间及代码修复,同时也为了减少每次冷启重复的请求,故加入缓存机制。
ProblemTerminator is available under the MIT license. See the LICENSE file for more info.