{ "id": "165728", "key": "AC-4769", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-02-02T14:26:43.000+0000", "created": "2017-02-02T09:47:08.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-02-02T14:26:43.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Currently, the Titanium.App namespace holds various settings regarding to tiapp.xml. However, it does not include the bundle ID of your app (i.e. \"com.appcelerator.app\", which can be found under the \"\" tag in tiapp.xml) and possibly more settings.\r\n\r\nI suggest a generic approach: perhaps a new namespace should be created that uses https://www.npmjs.com/package/xml2js or something similar, to parse the tiapp.xml to an in-app readable JSON-format (lets call the new namespace \"Titanium.TiApp\"). This would expose anything that the developer might need and it will work for any future additions to tiapp.xml.\r\n\r\nThen, Titanium.App will only contain values that are not explicitly in tiapp.xml, like:\r\nidleTimerDisabled, keyboardVisible, disableNetworkActivityIndicator (see http://docs.appcelerator.com/platform/latest/#!/api/Titanium.App). All other settings that can be found in the \"Titanium.TiApp\" namespace should then be deprecated in Titanium.App.", "attachment": [], "flagged": false, "summary": "Expose Bundle ID and more to Titanium.App namespace", "creator": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "environment": "Any (tested on Ti SDK 6.0.1)", "comment": { "comments": [ { "id": "406144", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "http://docs.appcelerator.com/platform/latest/#!/api/Titanium.App-method-getId", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-02T13:55:15.000+0000", "updated": "2017-02-02T13:55:15.000+0000" }, { "id": "406146", "author": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "body": "oh i see, my bad. I was looking for \"bundle\" keywords but couldnt find any. \r\n\r\nPlease close the report, thanks :)", "updateAuthor": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "created": "2017-02-02T14:18:11.000+0000", "updated": "2017-02-02T14:18:11.000+0000" }, { "id": "406148", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "All good! For next time: All root-keys are mapped to generic getters (same for {{url}}, etc). And for properties, you can access them using {{Ti.App.Properties}}.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-02T14:26:37.000+0000", "updated": "2017-02-02T14:26:37.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }