2020-05-12 10:52:06 +08:00
2020-05-12 10:52:06 +08:00
2020-01-07 14:14:57 +08:00
2020-01-07 14:14:57 +08:00
2020-01-07 14:14:57 +08:00
2020-01-14 15:13:13 +08:00
2020-01-16 11:06:59 +08:00
2020-01-14 14:45:28 +08:00

Zealot iOS SDK

CI Status Version License Platform

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

使用

  1. 在 AppDelegate 文件t引入 Zealot 框架头:
// Swift
import Zealot
// Objective-C
#import <Zealot/Zealot-Swift.h>
  1. 接着在上面文件的 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.

S
Description
Languages
Swift 93.7%
Ruby 6.3%