{"action":"created","issue":{"url":"https://api.github.com/repos/concretesolutions/kappuccino/issues/102","repository_url":"https://api.github.com/repos/concretesolutions/kappuccino","labels_url":"https://api.github.com/repos/concretesolutions/kappuccino/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/concretesolutions/kappuccino/issues/102/comments","events_url":"https://api.github.com/repos/concretesolutions/kappuccino/issues/102/events","html_url":"https://github.com/concretesolutions/kappuccino/issues/102","id":340290663,"node_id":"MDU6SXNzdWUzNDAyOTA2NjM=","number":102,"title":"Permission actions not working","user":{"login":"alancamargo92","id":33719607,"node_id":"MDQ6VXNlcjMzNzE5NjA3","avatar_url":"https://avatars2.githubusercontent.com/u/33719607?v=4","gravatar_id":"","url":"https://api.github.com/users/alancamargo92","html_url":"https://github.com/alancamargo92","followers_url":"https://api.github.com/users/alancamargo92/followers","following_url":"https://api.github.com/users/alancamargo92/following{/other_user}","gists_url":"https://api.github.com/users/alancamargo92/gists{/gist_id}","starred_url":"https://api.github.com/users/alancamargo92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alancamargo92/subscriptions","organizations_url":"https://api.github.com/users/alancamargo92/orgs","repos_url":"https://api.github.com/users/alancamargo92/repos","events_url":"https://api.github.com/users/alancamargo92/events{/privacy}","received_events_url":"https://api.github.com/users/alancamargo92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-07-11T15:20:55Z","updated_at":"2018-08-30T14:38:04Z","closed_at":null,"author_association":"COLLABORATOR","body":"The `grant` function is actually denying the permissions, while `deny` isn't doing anything at all.\r\nThis behaviour might have something to do with the index of the button in the dialogue.\r\n\r\nIn the code, the DENY button is at index 0 and the ALLOW button is at index 1, but when pressing the button at index 1, the test is pressing the first button (DENY), so I guess the permission dialogue doesn't work with zero-based indices.\r\n\r\nMy suggestion is to deprecate or even delete that `permissionUtils` file, because in the support library there is a very straightfoward rule that handles permissions. Here is an example:\r\n\r\n``` kotlin\r\n@Rule\r\n@JvmField\r\nval cameraPermissionRule: GrantPermissionRule = GrantPermissionRule.grant(CAMERA)\r\n```\r\n\r\nUsing the support library, this is all that needs to be done in order to grant a permission."},"comment":{"url":"https://api.github.com/repos/concretesolutions/kappuccino/issues/comments/417343079","html_url":"https://github.com/concretesolutions/kappuccino/issues/102#issuecomment-417343079","issue_url":"https://api.github.com/repos/concretesolutions/kappuccino/issues/102","id":417343079,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzM0MzA3OQ==","user":{"login":"heitorcolangelo","id":6201773,"node_id":"MDQ6VXNlcjYyMDE3NzM=","avatar_url":"https://avatars1.githubusercontent.com/u/6201773?v=4","gravatar_id":"","url":"https://api.github.com/users/heitorcolangelo","html_url":"https://github.com/heitorcolangelo","followers_url":"https://api.github.com/users/heitorcolangelo/followers","following_url":"https://api.github.com/users/heitorcolangelo/following{/other_user}","gists_url":"https://api.github.com/users/heitorcolangelo/gists{/gist_id}","starred_url":"https://api.github.com/users/heitorcolangelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heitorcolangelo/subscriptions","organizations_url":"https://api.github.com/users/heitorcolangelo/orgs","repos_url":"https://api.github.com/users/heitorcolangelo/repos","events_url":"https://api.github.com/users/heitorcolangelo/events{/privacy}","received_events_url":"https://api.github.com/users/heitorcolangelo/received_events","type":"User","site_admin":false},"created_at":"2018-08-30T14:38:04Z","updated_at":"2018-08-30T14:38:04Z","author_association":"CONTRIBUTOR","body":"@alancamargo92 that can be closed now 👍 \r\n"}}
{"actor":{"display_login":"heitorcolangelo"}}