{ "id": "87884", "key": "TIMOB-7984", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-15T15:59:00.000+0000", "created": "2012-03-13T19:50:17.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_geolocation", "qe-port" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "15814", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "86154", "key": "TIMOB-7565", "fields": { "summary": "Android: refactor Geolocation module to support expanded Android functionality", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updated": "2012-03-19T14:25:11.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" } ], "description": "When an app only uses {{Ti.Geolocation.addEventListener}}, the proper Geolocation permissions aren't correctly added to the AndroidManifest.xml, causing a permissions error when the application tries to add a {{location}} event listener. It looks like the list of APIs that enable these permissions is simply missing this method:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/support/android/builder.py#L728\r\n\r\nSample app:\r\n{code}\r\nTitanium.Geolocation.addEventListener(\"location\", function listener(e) {\r\n Titanium.Geolocation.removeEventListener(\"location\", listener);\r\n});\r\n{code}\r\n\r\n\r\n* Updated this ticket to cover a general change to build script to allow for setting permissions based on module usage in general rather than relying on specific methods", "attachment": [], "flagged": false, "summary": "Android: Support setting permissions in generated permissions by module", "creator": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "187157", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "A better test case for confirming this issue is Opie's orignal test case from TIMOB-7565", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-19T13:07:52.000+0000", "updated": "2012-03-19T13:07:52.000+0000" }, { "id": "187192", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified you can launch code from TIMOB-7565 without setting any permissions in tiapp.xml on:\r\n\r\nSDK build: 2.0.0.v20120319003254\r\nRuntime: v8, rhino\r\nTitanium Studio, build: 2.0.0.201203182248\r\nDevice: LG Slate (3.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-19T14:24:47.000+0000", "updated": "2012-03-19T14:24:47.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }