ATVersionControl
*
使用 AyanTech 服务器检查应用最新版本* 应将应用注册在 AyanTechServers
使用方法
版本控制
要配置参数,请使用这个
VersionControl.shared.applicationName = "MyAppName"
VersionControl.shared.categoryName = "cat"
VersionControl.shared.version = "1.0.0" //default version is CFBundleShortVersionString
VersionControl.shared.extraInfo["Token"] = "Test" //Json object and optional
要检查任何时候的最新版本,只需调用
VersionControl.shared.checkVersion()
如果存在更新,它将自动显示更新对话框,并处理操作。
共享应用
只需调用
VersionControl.shared.shareAppLink()
它将自动显示用于分享应用程序链接或文本的 UIActivityViewController
。
安装
ATVersionControl 通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile 中
pod 'ATVersionControl'
作者
Sepehr Behroozi, [email protected]