Skip to content

检测版本号bug #27

Description

@lmmsoft

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

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions