TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Aug 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Siddharth Chopra.
KahunaControlAppBootup is written in Swift
To run the example project, clone the repo, and run pod install
from the Example directory first.
In order to access this feature of app boot up, you need to have Kahuna Logcamp Id
KahunaControlAppBootup is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'KahunaControlAppBootup', '~> 0.2.2'
New development will happen exclusively on the master/Swift 3 branch.
let shared = AppBootupHandler.sharedInstance
shared.initServerBaseURL(serverBaseURL: kServerBaseURL)
Note: Add import KahunaControlAppBootup into respected file
shared.isAppTypeProduction(flag: true)
Note: Default value for production = false
shared.initAllAppBootupKeys(appId: logCampId)
OR
shared.initAllAppBootupKeys(appId: logCampId, checkFreeSpace: true)
Note: Default value for checkFreeSpace = false
shared.checkForRemoteUpdate()
shared.checkForRemoteUpdateByCustomView { (success, jsonObject) in
if success && jsonObject is KahunaAppBootup {
let kahunaAppBooup = jsonObject as! KahunaAppBootup
print(kahunaAppBooup.action)
print(kahunaAppBooup.message)
print(kahunaAppBooup.title)
print(kahunaAppBooup.url)
}
}
Note: When success == true and jsonObject is KahunaAppBootup then we need to perform check actions and show message with title
siddharthchopra, [email protected]
KahunaControlAppBootup is available under the MIT license. See the LICENSE file for more info.