Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CodeWeaver13/Lothar
基于CTMediator的组件化中间件
https://github.com/CodeWeaver13/Lothar
appdelegate-application cocoapods lothar mediator objective-c urlroute
Last synced: 2 months ago
JSON representation
基于CTMediator的组件化中间件
- Host: GitHub
- URL: https://github.com/CodeWeaver13/Lothar
- Owner: CodeWeaver13
- License: other
- Created: 2016-12-11T16:21:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-14T09:36:38.000Z (about 6 years ago)
- Last Synced: 2024-10-22T15:58:29.079Z (3 months ago)
- Topics: appdelegate-application, cocoapods, lothar, mediator, objective-c, urlroute
- Language: Objective-C
- Homepage:
- Size: 31.3 KB
- Stars: 30
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![License MIT](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/wangshiyu13/Lothar/blob/master/LICENSE)
[![CI Status](https://img.shields.io/badge/build-1.0.6-brightgreen.svg)](https://travis-ci.org/wangshiyu13/Lothar)
[![CocoaPods](https://img.shields.io/badge/platform-iOS-lightgrey.svg)](http://cocoapods.org/?q=Lothar)
[![Support](https://img.shields.io/badge/support-iOS%208%2B-blue.svg)](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.