Problem description
Titanium.App.getVersion() returns the bundle version on device, not the version defined in TiAPP.xml
Not reproducible using 2.1.4 GA
Steps to reproduce
Set the version number in TiAPP.xml (for example 1.25)
The Titanium.App.getVersion() works fine on simulator. (returns 1.25)
But same code on device returns the bundle version (returns for example 1.25.565432543)
var win = Ti.UI.createWindow({
title : 'test',
backgroundColor : 'white'
});
var debugVersion = Ti.UI.createLabel({
text : 'v ' + Ti.App.getVersion(),
width : 200,
height : 50,
left : 20,
top : 20
});
win.add(debugVersion);
win.open();
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3695 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3696
Works fine. Verified on : iphone 5 , simulator ios6 SDK version: 3.1.0.v20130111163212,3.0.2.v20130117161659 CLI version : 3.0.22 OS : MAC OSX 10.7.5 XCode : 4.5.1