Skip to main content
Version: Next 🚧

Zealot iOS SDK

The iOS component provides a service to check for new versions and installations for Zealot, supporting Swift and Objective-C.

Install​

Cocoapods​

Adding below code into Podfile:

pod 'Zealot', :git => 'https://github.com/tryzealot/zealot-ios.git', :branch => 'master'

Install it:

pod install

Usages​

Import header​

  1. Add the code in your AppDelegate:
import Zealot

Configure​

  1. Add the following code in application:didFinishLaunchingWithOptions: method block:
// Single channel
let zealot = Zealot(endpoint: "https://zealot.example.com", channelKey: "...")
zealot.checkVersion()

// Multi-channel, such as beta, adhoc versions
let zealot = Zealot(endpoint: "https://zealot.example.com",
channelKeys: [
"beta": "xxxxxxx",
"test": "yyyyyyy"],
default_enviroment: "beta")

// Active it
zealot.checkVersion()