b248c5de484dae6d112e60ec45bd2aafa1efc9bd
Zealot iOS SDK
iOS 组件提供为 Zealot 检查新版本和安装的服务,支持 Swift 和 Objective-C。
安装
Cocoapods
使用 Cocoapods 安装 Zealot 需要把它加到 PodFile:
未达到上线标准前暂不上 Cocoapods Specs
pod 'Zealot', :git => 'https://github.com/getzealot/zealot-ios.git', :branch => 'master'
保存后开始安装:
pod install
使用
- 在 AppDelegate 文件t引入 Zealot 框架头:
// Swift
import Zealot
// Objective-C
#import <Zealot/Zealot-Swift.h>
- 接着在上面文件的
application:didFinishLaunchingWithOptions:方法追加启动代码:
// Swift
let zealot = Zealot(endpoint: "http://zealot.test",
channelKey: "...")
zealot.checkVersion()
// Objective-C
Zealot *zealot = [[Zealot alloc] initWithEndpoint:@"http://zealot.test"
channelKey:@"..."];
[zealot checkVersion];
Author
icyleaf, icyleaf.cn@gmail.com
License
Zealot is available under the MIT license. See the LICENSE file for more info.
Languages
Swift
93.7%
Ruby
6.3%