{ "id": "143386", "key": "TIMOB-18431", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2015-06-12T01:16:59.000+0000", "created": "2015-01-22T18:39:26.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-06-23T17:52:18.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h6.Issue Description\r\nWith the 3.5.0.GA TiSDK the Ti.getVersion() function only returns the first 3 digits of the TiSDK so it returns 3.5.0 even though its using a custom SDK like 3.5.0.GA.FIS TiSDK. It would be great to have this fixed in the next Maintenance release like 3.5.1 if possible. \r\n\r\nh6.Test Case\r\n{code}\r\n(function() { \r\n\r\nTi.API.error(\"Get Version: \" + Ti.getVersion()); \r\n\r\n})(); \r\n{code}\r\n\r\nh6.Console Output\r\n{code}\r\n[INFO] : Test/1.0 (3.5.0.0014f83)\r\n[INFO] : [object ComAppceleratorApmModule] loaded\r\n[INFO] : Get Version: 3.5.0\r\n{code}", "attachment": [], "flagged": false, "summary": "TiAPI: Ti.getVersion returns only the first 3 digits of the version", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "iOS8\r\nTiSDK 3.5.0.GA", "closedSprints": [ { "id": 416, "state": "closed", "name": "2015 Sprint 12 SDK", "startDate": "2015-06-06T00:00:43.862Z", "endDate": "2015-06-20T00:00:00.000Z", "completeDate": "2015-06-23T05:41:35.834Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "340583", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "What is the reason why we wouldn't return the full version number? The developer can always choose to truncate. ", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-26T18:39:52.000+0000", "updated": "2015-01-26T18:39:52.000+0000" }, { "id": "340607", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "So its not a regression then? What was the reasoning for the change?", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2015-01-26T19:41:03.000+0000", "updated": "2015-01-26T19:41:03.000+0000" }, { "id": "342591", "author": { "name": "core13", "key": "core13", "displayName": "Malcolm Hollingsworth", "active": true, "timeZone": "Europe/London" }, "body": "It must be more work to NOT return the original value - please sir can I have my revision code back.", "updateAuthor": { "name": "core13", "key": "core13", "displayName": "Malcolm Hollingsworth", "active": true, "timeZone": "Europe/London" }, "created": "2015-02-09T18:51:58.000+0000", "updated": "2015-02-09T18:51:58.000+0000" }, { "id": "342602", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Okay, this seems like we should do this based on feedback. Does this apply to Android as well?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-09T19:02:55.000+0000", "updated": "2015-02-09T19:02:55.000+0000" }, { "id": "353293", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Just to note: Both iOS and Android returns 3 digits currently.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-05-22T03:31:43.000+0000", "updated": "2015-05-22T03:31:43.000+0000" }, { "id": "354223", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Ti.getVersion returns the version number based on the file here */build/titanium_version.py* in the titanium_mobile repo.\r\nThis has been tested on the latest master branch on iOS and Android.\r\nBasically, for any custom SDK built based on our titanium_mobile, you just have to change the version string in this file, execute scons to compile, subsequently calling this method based on the packaged build, will return the custom version string.\r\nWe will not make any changes to our usual convention of putting a 3 digit string here, so as not to cause behavior change. \r\nDevelopers who needs this for their customised SDK can just use the method I described here.\r\n\r\n\r\n", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-03T08:25:09.000+0000", "updated": "2015-06-03T23:59:17.000+0000" }, { "id": "354647", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "If this is acceptable, will be closing ticket on Friday 12 June.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-09T06:18:14.000+0000", "updated": "2015-06-09T06:18:14.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }