VersionUpdate
Check and update app's version for both AppStore & Fir
How to use
-
Add Channel in info.plist Now we only support two channels "AppStore" or "Fir", no channel or other channel are ignored.
-
Include library use CocoaPods pod 'VersionUpdate', '~> 1.0.2'
-
Call this when app launch
let versionUpdate = VersionUpdate() versionUpdate.addAppStoreChannelWithAppId("your app id on appstore") versionUpdate.addFirChannelWithAppId("your app id on fir", token: "your koken on fir", downloadUrl: "http://fir.im/xxxxxx") versionUpdate.checkUpdate()
-
If there has new version,just show alert which you can ignore or go to update.