{ "id": "106793", "key": "TIMOB-12135", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14817", "description": "2013 Sprint 01 JS", "name": "2013 Sprint 01 JS", "archived": true, "released": true, "releaseDate": "2013-01-14" }, { "id": "14804", "description": "2013 Sprint 01", "name": "2013 Sprint 01", "archived": true, "released": true, "releaseDate": "2013-01-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-01-11T15:35:32.000+0000", "created": "2012-12-19T09:22:18.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "Regression", "community", "module_app_properties", "qe-manualtest" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-08-13T10:14:12.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "h3. Problem description\r\nTitanium.App.getVersion() returns the bundle version on device, not the version defined in TiAPP.xml\r\n\r\nNot reproducible using 2.1.4 GA\r\n\r\nh3. Steps to reproduce\r\nSet the version number in TiAPP.xml (for example 1.25)\r\n\r\nThe Titanium.App.getVersion() works fine on simulator. (returns 1.25)\r\nBut same code on device returns the bundle version (returns for example 1.25.565432543)\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\ttitle : 'test',\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\nvar debugVersion = Ti.UI.createLabel({\r\n\ttext : 'v ' + Ti.App.getVersion(),\r\n\twidth : 200,\r\n\theight : 50,\r\n\tleft : 20,\r\n\ttop : 20\r\n});\r\n\r\nwin.add(debugVersion);\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "CLI: Titanium.App.getVersion() returns the bundle version on device, not the tiapp.xml version", "creator": { "name": "jam", "key": "jam", "displayName": "jammer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.0.0 GA\r\niOS, tested on simulator os6 and iPhone 5 (iOS 6.0.2)\r\n", "comment": { "comments": [ { "id": "233884", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3695\n3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3696", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-01-10T16:36:39.000+0000", "updated": "2013-01-10T16:36:39.000+0000" }, { "id": "234885", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Works fine.\r\n\r\nVerified on :\r\niphone 5 , simulator ios6\r\nSDK version: 3.1.0.v20130111163212,3.0.2.v20130117161659\r\nCLI version : 3.0.22\r\nOS : MAC OSX 10.7.5\r\nXCode : 4.5.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-01-18T02:11:48.000+0000", "updated": "2013-01-18T02:11:48.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }