Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

检测版本号bug #27

Open
lmmsoft opened this issue Dec 11, 2017 · 0 comments
Open

检测版本号bug #27

lmmsoft opened this issue Dec 11, 2017 · 0 comments

Comments

@lmmsoft
Copy link

lmmsoft commented Dec 11, 2017

现在是根据versionName来检测版本,比较字符串,不等则提示更新

bug: fir.im上是1.1,机器上是1.2(比线上新),因为字符串不相同,判断的结果是有新版本,也会提示下载更新

建议根据versionCode来检测,本身是int数字,可以通过比大小来判断新版本,fir.im的api返回的build字段就是versionCode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant