{"action":"created","issue":{"url":"https://api.github.com/repos/unfoldingWord-dev/translationKeyboard/issues/26","labels_url":"https://api.github.com/repos/unfoldingWord-dev/translationKeyboard/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/unfoldingWord-dev/translationKeyboard/issues/26/comments","events_url":"https://api.github.com/repos/unfoldingWord-dev/translationKeyboard/issues/26/events","html_url":"https://github.com/unfoldingWord-dev/translationKeyboard/issues/26","id":93170042,"number":26,"title":"In app bug reporting","user":{"login":"jag3773","id":107731,"avatar_url":"https://avatars.githubusercontent.com/u/107731?v=3","gravatar_id":"","url":"https://api.github.com/users/jag3773","html_url":"https://github.com/jag3773","followers_url":"https://api.github.com/users/jag3773/followers","following_url":"https://api.github.com/users/jag3773/following{/other_user}","gists_url":"https://api.github.com/users/jag3773/gists{/gist_id}","starred_url":"https://api.github.com/users/jag3773/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jag3773/subscriptions","organizations_url":"https://api.github.com/users/jag3773/orgs","repos_url":"https://api.github.com/users/jag3773/repos","events_url":"https://api.github.com/users/jag3773/events{/privacy}","received_events_url":"https://api.github.com/users/jag3773/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/unfoldingWord-dev/translationKeyboard/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"bknatterud","id":1545495,"avatar_url":"https://avatars.githubusercontent.com/u/1545495?v=3","gravatar_id":"","url":"https://api.github.com/users/bknatterud","html_url":"https://github.com/bknatterud","followers_url":"https://api.github.com/users/bknatterud/followers","following_url":"https://api.github.com/users/bknatterud/following{/other_user}","gists_url":"https://api.github.com/users/bknatterud/gists{/gist_id}","starred_url":"https://api.github.com/users/bknatterud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bknatterud/subscriptions","organizations_url":"https://api.github.com/users/bknatterud/orgs","repos_url":"https://api.github.com/users/bknatterud/repos","events_url":"https://api.github.com/users/bknatterud/events{/privacy}","received_events_url":"https://api.github.com/users/bknatterud/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-07-06T02:07:26Z","updated_at":"2015-07-24T18:17:27Z","closed_at":null,"body":"We need an in app method of reporting bugs and crash reports. Currently, there is no effective method of giving the devs the information they need."},"comment":{"url":"https://api.github.com/repos/unfoldingWord-dev/translationKeyboard/issues/comments/124607205","html_url":"https://github.com/unfoldingWord-dev/translationKeyboard/issues/26#issuecomment-124607205","issue_url":"https://api.github.com/repos/unfoldingWord-dev/translationKeyboard/issues/26","id":124607205,"user":{"login":"neutrinog","id":166412,"avatar_url":"https://avatars.githubusercontent.com/u/166412?v=3","gravatar_id":"","url":"https://api.github.com/users/neutrinog","html_url":"https://github.com/neutrinog","followers_url":"https://api.github.com/users/neutrinog/followers","following_url":"https://api.github.com/users/neutrinog/following{/other_user}","gists_url":"https://api.github.com/users/neutrinog/gists{/gist_id}","starred_url":"https://api.github.com/users/neutrinog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neutrinog/subscriptions","organizations_url":"https://api.github.com/users/neutrinog/orgs","repos_url":"https://api.github.com/users/neutrinog/repos","events_url":"https://api.github.com/users/neutrinog/events{/privacy}","received_events_url":"https://api.github.com/users/neutrinog/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T18:17:27Z","updated_at":"2015-07-24T18:17:27Z","body":"@PeeJWeeJ I may not completely understand your question.\r\nThe oauth2 token is passed to the `GithubReporter` constructor. As for storing it, I have been placing the value in a string resource. \r\n\r\nIn order to prevent others from getting a hold of the production token (because all the code is publicly available) I place the string resource in it's own file e.g. `src/main/res/values/private_strings.xml` or something like that. That file is then added to the `.gitignore` file.\r\n\r\nFurthermore, so that other developers can develop and build the code without things breaking when it can't find the oauth2 token (because it's ignored by git) I add in some conditional code checking if the resource exists before I try to use it.\r\n\r\ne.g.\r\n```java\r\nint githubTokenIdentifier = getResources().getIdentifier(\"github_oauth2\", \"string\", getPackageName());\r\nif(githubTokenIdentifier != 0) {\r\n   String oauth2 = getResources().getString(githubTokenIdentifier);\r\n}\r\n```\r\n"}}