CTMediator的组件化中间件
基于特点
相对于CTMediator,增加了一些功能
- 增加容错处理
- 增加短链映射处理
- 提供基于user:password的认证方案
====
使用方法
具体的使用方法请参阅我的简书
AppDelegate application:didFinishLaunchingWithOptions
[Lothar setupConfig:^(LotharConfig * _Nonnull config) {
config.URLScheme = @"lothar";
config.URLVerifySkip = YES;
config.URLRouteMapFilePath = [[NSBundle mainBundle] pathForResource:@"RouteMapTemplate" ofType:@"plist"];
}];
AppDelegate application:openURL:options
return [[LotharMediator performActionWithUrl:url completion:nil] boolValue];
环境要求
此库需要在iOS 8.0和Xcode 7.0以上环境下运行。
集成方法
Lothar 可通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile 中
pod "Lothar"
更新日志
作者
wangshiyu13, [email protected]
开源协议
HLNetworking 可在 MIT 许可证下使用。更多信息请查看 LICENSE 文件。