rwbutler / Updates

📲 Automatically detects app updates and seamlessly prompts users to upgrade.
https://medium.com/swlh/updating-users-to-the-latest-app-release-on-ios-ed96e4c76705
MIT License
289 stars 37 forks source link

False alarm because of wrong version comparision #6

Closed broncha closed 4 years ago

broncha commented 4 years ago
Updates.updateAvailable(appVersion: "1.5.0", apiVersion: "1.4.4", comparator: .patch))

This returns true which is wrong. The app version from api is 1.4.4 which is in no way greater than 1.5.0, but the lib true for updateAvailable because 4 > 0

rwbutler commented 4 years ago

Thanks for letting me know about this - I've released a fix (v1.2.2). Hopefully this should resolve the issue for you.