timtraversy / new_version

Check if your user has the most recent version of your Flutter app.
BSD 3-Clause "New" or "Revised" License
125 stars 152 forks source link

RangeError occurred in iOS #99

Open alexaung opened 2 years ago

alexaung commented 2 years ago

I have store version 2.0.0.17 and local version is 2.0.0.18 in iOS. 17 and 18 is build.

At canUpdate function, local is [2,0,0] and store is [2,0,0,17] So when compare, there is RangeError (RangeError (index): Invalid value: Not in inclusive range 0..2: 3) exception occurred.