var current = parseInt(Ti.App.Properties.getString("CVERSION", APP.CVERSION).replace(".", ""), 10);
var minimum = parseInt(data.minimumVersion.replace(".", ""), 10);
If CVersion is 1.2.1 and minimumVersion is 1.2.2 you will get 12 for both values and the condition will prove true which is incorrect.
Rather than tweak the above I found a version compare function that seems to handle anything I throw at it. Let me know if you want me to submit a pull request.
In update.js on line 80:
If CVersion is 1.2.1 and minimumVersion is 1.2.2 you will get 12 for both values and the condition will prove true which is incorrect.
JSFiddle for demo: http://jsfiddle.net/aroyce/PkQ4M/2/
Rather than tweak the above I found a version compare function that seems to handle anything I throw at it. Let me know if you want me to submit a pull request.