https://github.com/codeweaver13/lothar
基于CTMediator的组件化中间件
https://github.com/codeweaver13/lothar
appdelegate-application cocoapods lothar mediator objective-c urlroute
Last synced: about 1 month ago
JSON representation
基于CTMediator的组件化中间件
- Host: GitHub
- URL: https://github.com/codeweaver13/lothar
- Owner: CodeWeaver13
- License: other
- Created: 2016-12-11T16:21:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-14T09:36:38.000Z (over 6 years ago)
- Last Synced: 2025-04-28T15:59:11.103Z (about 1 month ago)
- Topics: appdelegate-application, cocoapods, lothar, mediator, objective-c, urlroute
- Language: Objective-C
- Homepage:
- Size: 31.3 KB
- Stars: 30
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/wangshiyu13/Lothar/blob/master/LICENSE)
[](https://travis-ci.org/wangshiyu13/Lothar)
[](http://cocoapods.org/?q=Lothar)
[](https://www.apple.com/nl/ios/)
#### 基于[CTMediator](https://github.com/casatwy/CTMediator)的组件化中间件## 特点
相对于CTMediator,增加了一些功能1. 增加容错处理
2. 增加短链映射处理
3. 提供基于user:password的鉴权方案====
## 使用方法
**具体使用方法请看[我的简书](http://www.jianshu.com/p/568e875abd48)*****AppDelegate application:didFinishLaunchingWithOptions:***
```objective-c
[Lothar setupConfig:^(LotharConfig * _Nonnull config) {
config.URLScheme = @"lothar";
config.URLVerifySkip = YES;
config.URLRouteMapFilePath = [[NSBundle mainBundle] pathForResource:@"RouteMapTemplate" ofType:@"plist"];
}];
```***AppDelegate application:openURL:options:***
```objective-c
return [[LotharMediator performActionWithUrl:url completion:nil] boolValue];
```## 环境要求
该库需运行在 iOS 8.0 和 Xcode 7.0以上环境.
## 集成方法
Lothar is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "Lothar"
```## 更新日志
## 作者
wangshiyu13, [email protected]
## 开源协议
HLNetworking is available under the MIT license. See the LICENSE file for more info.