测试已测试 | ✓ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布最新发布 | 2017年10月 |
SwiftSwift版本 | 4.0 |
SPM支持SPM | ✗ |
由asashin227维护。
在Info.plist中使用的Bundle标识符
和Bundle版本字符串,简短
在AppUpdateChecker中使用。
并且使用iTunes API
AppUpdateChecker().conferm() {
result in
switch result {
case .existUpdate(let version, let storeScheme):
// For example, Show UIAlertController here.
print("Now available version: \(version)")
print("DL from hare: \(storeScheme.absoluteString)")
case .noUpdate:
print("Current version is newest")
case .error(let error):
print("error: \(error)")
}
}
要运行示例项目,请克隆仓库,然后首先在Example目录中运行pod install
AppUpdateChecker可通过CocoaPods获得。要安装它,只需将以下行添加到Podfile中
AppUpdateChecker在MIT许可证下可用。有关更多信息,请参阅LICENSE文件。
pod 'AppUpdateChecker'
CocoaPods是由Dimitris Koutsogiorgas,Danielle Lancashire,Eric Amorde,Orta Therox,Paul Beusterien,Samuel Giddins和CocoaPods开发团队以及许多人的贡献组成的。