GithubHelp home page GithubHelp logo

huanzhile / hsupdateapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wolfhous/hsupdateapp

0.0 2.0 0.0 1.09 MB

基于天朝的AppStore检测自动跟新功能,无技术难点,只要一句代码即可实现,只是希望为您节约更多的时间,去陪恋人、家人和朋友。天天大吉大利、天天吃鸡!

License: MIT License

Ruby 3.93% Objective-C 96.07%

hsupdateapp's Introduction


基于天朝的AppStore检测自动跟新功能,无技术难点,只要一句代码即可实现,只是希望为您节约更多的时间,去陪恋人、家人和朋友。天天大吉大利、天天吃鸡!

最好在真机上运行才能看到完全效果哦


实现思路

1.本地检测项目版本号;

2.联网检测项目在AppStore上的版本号;

3.比较版本号,可选提供跳转到手机自带的AppStore项目页面供用户下载的地址;


文件小巧,轻便:

只有一个.h和.m文件.png

支持cocoapods:

pod 'HSUpdateApp'

具体用法:

#import "HSUpdateApp.h"
/**
   一行代码实现检测app是否为最新版本。appId,bundelId,随便传一个 或者都传nil 即可实现检测。

  @param currentVersion 返回当前版本号
  @param storeVersion 返回商店版本号
  @param openUrl 跳转到商店下载的链接
  @param isUpdate 是否需要更新
  @return 
*/
 [HSUpdateApp hs_updateWithAPPID:nil withBundleId:nil block:^(NSString *currentVersion, NSString *storeVersion, NSString *openUrl, BOOL isUpdate) {
  }];

问题1:这样审核能通过?

答1:亲测能通过,没问题的。


问题2:我项目APP ID 在哪里看?

答2:itunes connect 》我的APP》APP ID


问题3:假如我的项目还没上线,也没有APP ID 怎么搞?

--直接利用自动检测,appId和bundelId都传nil即可。

--或者去 itunes connect 申请一个APP,就会有对应的APP ID。

--如果你连开发者账号都没有,那就先用demo里面的APP ID 测试吧,上线的时候改过来即可。


简书介绍:http://www.jianshu.com/p/1d08c786b52f

✨欢迎star✨


hsupdateapp's People

Contributors

wolfhous avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.