{ "id": "127965", "key": "TIMOB-16674", "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": "16270", "description": "2014 Sprint 10", "name": "2014 Sprint 10", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "16272", "description": "2014 Sprint 10 Tooling", "name": "2014 Sprint 10 Tooling", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-23T20:54:31.000+0000", "created": "2014-03-21T18:29:08.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "build", "defect", "module_android", "qe-testadded", "titanbeta" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-08-05T20:52:51.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": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10207", "name": "Tooling" } ], "description": "When publishing an app to Google Play, if the versionName has trailing zeros (e.g. 3.0, 3.10), those zeros are lost by the build process, so that in AndroidManifest.xml, versionName comes out as, for example, 3 instead of 3.0.\r\n\r\nExample tiapp.xml snippet:\r\n{panel}\r\n \r\n \r\n{panel}\r\n\r\nYou can see that versionName is set to \"3.0\", a string. In AndroidManifest.xml, you get this:\r\n{panel}\r\n\r\n{panel}\r\n\r\nI noticed that in _build.js, versionName is sometimes being treated as a\r\nnumber, and sometimes as a string.\r\n", "attachment": [], "flagged": false, "summary": "Android build/package: versionName loses zeros after the decimal", "creator": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "environment": "-Ti Studio 3.2.1.201402041146\r\n-Ti mobile SDK 3.2.2.GA\r\n-Android build/package\r\n-Windows 7", "closedSprints": [ { "id": 107, "state": "closed", "name": "2014 Sprint 10 Tooling", "startDate": "2014-05-12T16:00:00.000Z", "endDate": "2014-05-24T00:00:00.000Z", "completeDate": "2014-05-27T18:11:27.256Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "305310", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5691", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-05-16T17:45:48.000+0000", "updated": "2014-05-16T17:45:48.000+0000" }, { "id": "305333", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Works as expected, trailing zeros are preserved.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-05-16T19:10:54.000+0000", "updated": "2014-05-16T19:10:54.000+0000" }, { "id": "305357", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\r\nMac OSX 10.9.3\r\nAppcelerator Studio, build: 3.3.0.201405121247\r\nTitanium SDK, build: 3.3.0.v20140516130124\r\nTitanium CLI: 3.3.0-alpha\r\nAlloy: 1.4.0-alpha\r\n\r\nAndroid versionName no longer removes trailing zeros.\r\n{code}android:versionCode=\"15\" android:versionName=\"3.0\" android:installLocation=\"auto\">{code}\r\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-16T20:49:05.000+0000", "updated": "2014-05-16T20:49:05.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }