{ "id": "153240", "key": "TIMOB-20005", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-12-07T05:27:57.000+0000", "created": "2015-11-17T14:25:58.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-01-26T18:23:30.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": "Just a small change to align the property names between the 4 API's for better predictability (ability to guess the property name without using docs).\r\n\r\n* {{Ti.Calendar.eventsAuthorization}} > {{calendarAuthorization}}\r\n* {{Ti.Media.cameraAuthorizationStatus}} > {{cameraAuthorization}}", "attachment": [], "flagged": false, "summary": "Line up *Authorization properties", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "closedSprints": [ { "id": 536, "state": "closed", "name": "2015 Sprint 25 SDK", "startDate": "2015-12-05T01:30:40.415Z", "endDate": "2015-12-19T01:30:00.000Z", "completeDate": "2015-12-29T03:19:42.127Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "371797", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR pending : https://github.com/appcelerator/titanium_mobile/pull/7524.\r\n\r\n{code:title=DemoCode.javascript|borderStyle=solid}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'white',\r\n layout : \"vertical\",\r\n title: \"Something\"\r\n});\r\n\r\naddButton(\"Camera Permissions\", checkCameraPermissions);\r\naddButton(\"Calendar Permissions\", checkCalendarPermissions);\r\nwin.open();\r\n \r\nfunction addButton(title, callback) {\r\n var btn = Ti.UI.createButton({\r\n title : title,\r\n top : 50\r\n });\r\n btn.addEventListener(\"click\", callback);\r\n win.add(btn);\r\n}\r\nfunction checkCameraPermissions() {\r\n if (Ti.Media.hasCameraPermissions()) {\r\n Ti.API.info(\"Premissions\", Ti.Media.cameraAuthorizationStatus);\r\n //Un-comment on second launch and comment out the above\r\n //Ti.API.info(\"Premissions\", Ti.Media.cameraAuthorization);\r\n } else {\r\n Ti.Media.requestCameraPermissions(function(e) {\r\n if (e.success === true) {\r\n alert(\"Access granted\");\r\n } else {\r\n alert(\"Access denied, error: \" + e.error);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction checkCalendarPermissions() {\r\n if (Ti.Calendar.hasCalendarPermissions()) {\r\n Ti.Calendar.getAllCalendars();\r\n alert(\"Access already granted\");\r\n Ti.API.info(\"Premissions\", Ti.Calendar.eventsAuthorization);\r\n //Un-comment on second launch and comment out the above\r\n //Ti.API.info(\"Premissions\", Ti.Calendar.calendarAuthorization);\r\n } else {\r\n Ti.Calendar.requestCalendarPermissions(function(e) {\r\n if (e.success === true) {\r\n alert(\"Access granted\");\r\n Ti.Calendar.getAllCalendars();\r\n } else {\r\n alert(\"Access denied, error: \" + e.error);\r\n }\r\n });\r\n }\r\n\r\n};\r\n{code}", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-12-01T20:22:00.000+0000", "updated": "2016-01-25T18:35:45.000+0000" }, { "id": "372259", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "CR and FT passed. PR Merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-12-07T05:27:46.000+0000", "updated": "2015-12-07T05:27:46.000+0000" }, { "id": "375304", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-01-26T18:23:24.000+0000", "updated": "2016-01-26T18:23:24.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }