AppStoreVersionDetector 1.0.1

AppStoreVersionDetector 1.0.1

Tenfay 维护。



  • Tenfay

AppStoreVersionDetector

从AppStore检测应用版本且支持Objective-C。

CI Status Version License Platform

示例

要运行示例项目,首先克隆仓库,然后从Example目录运行pod install

安装

AppStoreVersionDetector可以通过CocoaPods使用。要安装它,只需将以下行添加到Podfile中

pod 'AppStoreVersionDetector'

用法

  • 检测应用版本
AppStoreVDetector.default.onDetect(id: "15674646463", delayToExecute: 5) { result in
    switch result {
    case .success(let hasNewVersion, let response):
        print("hasNewVersion: \(hasNewVersion), response: \(response ?? [:])")
        break
    case .failure(let message):
        print("message: \(message)")
        break
    }
}
  • 前往AppStore
AppStoreVDetector.default.toAppStore(withAppId: "15674646463")
  • 前往AppStore并撰写评论。
AppStoreVDetector.default.toWriteReview(withAppId: "15674646463")

要了解Objective-C中的用法,请查看本项目中的文件(VersionDetectObjcInvokeSample.m)。

许可证

AppStoreVersionDetector可以在MIT许可证下使用。有关更多信息,请参阅LICENSE文件。