{"action":"created","comment":{"url":"https://api.github.com/repos/aerogear/aerogear-android-push/pulls/comments/35216175","id":35216175,"diff_hunk":"@@ -0,0 +1,42 @@\n+/**\n+ * JBoss, Home of Professional Open Source\n+ * Copyright Red Hat, Inc., and individual contributors.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * \thttp://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package org.jboss.aerogear.android.unifiedpush.gcm;\n+\n+import android.content.Context;\n+import android.content.SharedPreferences;\n+import android.preference.PreferenceManager;\n+import org.jboss.aerogear.android.core.Provider;\n+\n+/**\n+ * Provides a standard shared preferences reference","path":"aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/gcm/GCMSharedPreferenceProvider.java","position":25,"original_position":25,"commit_id":"a52a727a28cdccb07983f061b8b8b9028d95083b","original_commit_id":"a52a727a28cdccb07983f061b8b8b9028d95083b","user":{"login":"secondsun","id":2413816,"avatar_url":"https://avatars.githubusercontent.com/u/2413816?v=3","gravatar_id":"","url":"https://api.github.com/users/secondsun","html_url":"https://github.com/secondsun","followers_url":"https://api.github.com/users/secondsun/followers","following_url":"https://api.github.com/users/secondsun/following{/other_user}","gists_url":"https://api.github.com/users/secondsun/gists{/gist_id}","starred_url":"https://api.github.com/users/secondsun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/secondsun/subscriptions","organizations_url":"https://api.github.com/users/secondsun/orgs","repos_url":"https://api.github.com/users/secondsun/repos","events_url":"https://api.github.com/users/secondsun/events{/privacy}","received_events_url":"https://api.github.com/users/secondsun/received_events","type":"User","site_admin":false},"body":"If we receive the update registrationID message while the application is offline we need to be able to load the registrar associated with that ID.  Right now the easiest thing to do is to store the configuration associated with the ID when .register is called.","created_at":"2015-07-22T14:10:15Z","updated_at":"2015-07-22T14:10:15Z","html_url":"https://github.com/aerogear/aerogear-android-push/pull/44#discussion_r35216175","pull_request_url":"https://api.github.com/repos/aerogear/aerogear-android-push/pulls/44","_links":{"self":{"href":"https://api.github.com/repos/aerogear/aerogear-android-push/pulls/comments/35216175"},"html":{"href":"https://github.com/aerogear/aerogear-android-push/pull/44#discussion_r35216175"},"pull_request":{"href":"https://api.github.com/repos/aerogear/aerogear-android-push/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/aerogear/aerogear-android-push/pulls/44","id":40194886,"html_url":"https://github.com/aerogear/aerogear-android-push/pull/44","diff_url":"https://github.com/aerogear/aerogear-android-push/pull/44.diff","patch_url":"https://github.com/aerogear/aerogear-android-push/pull/44.patch","issue_url":"https://api.github.com/repos/aerogear/aerogear-android-push/issues/44","number":44,"state":"open","locked":false,"title":"Agdroid 475 refresh token","user":{"login":"secondsun","id":2413816,"avatar_url":"https://avatars.githubusercontent.com/u/2413816?v=3","gravatar_id":"","url":"https://api.github.com/users/secondsun","html_url":"https://github.com/secondsun","followers_url":"https://api.github.com/users/secondsun/followers","following_url":"https://api.github.com/users/secondsun/following{/other_user}","gists_url":"https://api.github.com/users/secondsun/gists{/gist_id}","starred_url":"https://api.github.com/users/secondsun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/secondsun/subscriptions","organizations_url":"https://api.github.com/users/secondsun/orgs","repos_url":"https://api.github.com/users/secondsun/repos","events_url":"https://api.github.com/users/secondsun/events{/privacy}","received_events_url":"https://api.github.com/users/secondsun/received_events","type":"User","site_admin":false},"body":"How to test : \r\n * mvn clean install with device attached\r\n * make sure you have core and pipe 3.0.0-SNAPSHOT installed\r\n * You should see no errors\r\n\r\nBonus Tests : \r\n Check out the jboss helloworlds and apply the changes from y previous PR (I can lend a hand upon request)\r\n\r\nBlockers : \r\n I don't know how to get Google to send the token changed Intent.  Any thoughts on how to test that part?\r\n\r\n Possible improvements:\r\n\r\nI feel like there is some refactoring to be had.\r\n","created_at":"2015-07-17T02:13:33Z","updated_at":"2015-07-22T14:10:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f470f5e4e86a67413b0f9a694c5938761de6daaf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aerogear/aerogear-android-push/pulls/44/commits","review_comments_url":"https://api.github.com/repos/aerogear/aerogear-android-push/pulls/44/comments","review_comment_url":"https://api.github.com/repos/aerogear/aerogear-android-push/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aerogear/aerogear-android-push/issues/44/comments","statuses_url":"https://api.github.com/repos/aerogear/aerogear-android-push/statuses/a52a727a28cdccb07983f061b8b8b9028d95083b","head":{"label":"secondsun:AGDROID-475-REFRESH-TOKEN","ref":"AGDROID-475-REFRESH-TOKEN","sha":"a52a727a28cdccb07983f061b8b8b9028d95083b","user":{"login":"secondsun","id":2413816,"avatar_url":"https://avatars.githubusercontent.com/u/2413816?v=3","gravatar_id":"","url":"https://api.github.com/users/secondsun","html_url":"https://github.com/secondsun","followers_url":"https://api.github.com/users/secondsun/followers","following_url":"https://api.github.com/users/secondsun/following{/other_user}","gists_url":"https://api.github.com/users/secondsun/gists{/gist_id}","starred_url":"https://api.github.com/users/secondsun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/secondsun/subscriptions","organizations_url":"https://api.github.com/users/secondsun/orgs","repos_url":"https://api.github.com/users/secondsun/repos","events_url":"https://api.github.com/users/secondsun/events{/privacy}","received_events_url":"https://api.github.com/users/secondsun/received_events","type":"User","site_admin":false},"repo":{"id":21824214,"name":"aerogear-android-push","full_name":"secondsun/aerogear-android-push","owner":{"login":"secondsun","id":2413816,"avatar_url":"https://avatars.githubusercontent.com/u/2413816?v=3","gravatar_id":"","url":"https://api.github.com/users/secondsun","html_url":"https://github.com/secondsun","followers_url":"https://api.github.com/users/secondsun/followers","following_url":"https://api.github.com/users/secondsun/following{/other_user}","gists_url":"https://api.github.com/users/secondsun/gists{/gist_id}","starred_url":"https://api.github.com/users/secondsun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/secondsun/subscriptions","organizations_url":"https://api.github.com/users/secondsun/orgs","repos_url":"https://api.github.com/users/secondsun/repos","events_url":"https://api.github.com/users/secondsun/events{/privacy}","received_events_url":"https://api.github.com/users/secondsun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/secondsun/aerogear-android-push","description":"","fork":true,"url":"https://api.github.com/repos/secondsun/aerogear-android-push","forks_url":"https://api.github.com/repos/secondsun/aerogear-android-push/forks","keys_url":"https://api.github.com/repos/secondsun/aerogear-android-push/keys{/key_id}","collaborators_url":"https://api.github.com/repos/secondsun/aerogear-android-push/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/secondsun/aerogear-android-push/teams","hooks_url":"https://api.github.com/repos/secondsun/aerogear-android-push/hooks","issue_events_url":"https://api.github.com/repos/secondsun/aerogear-android-push/issues/events{/number}","events_url":"https://api.github.com/repos/secondsun/aerogear-android-push/events","assignees_url":"https://api.github.com/repos/secondsun/aerogear-android-push/assignees{/user}","branches_url":"https://api.github.com/repos/secondsun/aerogear-android-push/branches{/branch}","tags_url":"https://api.github.com/repos/secondsun/aerogear-android-push/tags","blobs_url":"https://api.github.com/repos/secondsun/aerogear-android-push/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/secondsun/aerogear-android-push/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/secondsun/aerogear-android-push/git/refs{/sha}","trees_url":"https://api.github.com/repos/secondsun/aerogear-android-push/git/trees{/sha}","statuses_url":"https://api.github.com/repos/secondsun/aerogear-android-push/statuses/{sha}","languages_url":"https://api.github.com/repos/secondsun/aerogear-android-push/languages","stargazers_url":"https://api.github.com/repos/secondsun/aerogear-android-push/stargazers","contributors_url":"https://api.github.com/repos/secondsun/aerogear-android-push/contributors","subscribers_url":"https://api.github.com/repos/secondsun/aerogear-android-push/subscribers","subscription_url":"https://api.github.com/repos/secondsun/aerogear-android-push/subscription","commits_url":"https://api.github.com/repos/secondsun/aerogear-android-push/commits{/sha}","git_commits_url":"https://api.github.com/repos/secondsun/aerogear-android-push/git/commits{/sha}","comments_url":"https://api.github.com/repos/secondsun/aerogear-android-push/comments{/number}","issue_comment_url":"https://api.github.com/repos/secondsun/aerogear-android-push/issues/comments{/number}","contents_url":"https://api.github.com/repos/secondsun/aerogear-android-push/contents/{+path}","compare_url":"https://api.github.com/repos/secondsun/aerogear-android-push/compare/{base}...{head}","merges_url":"https://api.github.com/repos/secondsun/aerogear-android-push/merges","archive_url":"https://api.github.com/repos/secondsun/aerogear-android-push/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/secondsun/aerogear-android-push/downloads","issues_url":"https://api.github.com/repos/secondsun/aerogear-android-push/issues{/number}","pulls_url":"https://api.github.com/repos/secondsun/aerogear-android-push/pulls{/number}","milestones_url":"https://api.github.com/repos/secondsun/aerogear-android-push/milestones{/number}","notifications_url":"https://api.github.com/repos/secondsun/aerogear-android-push/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/secondsun/aerogear-android-push/labels{/name}","releases_url":"https://api.github.com/repos/secondsun/aerogear-android-push/releases{/id}","created_at":"2014-07-14T15:12:37Z","updated_at":"2015-04-28T17:24:29Z","pushed_at":"2015-07-21T19:08:53Z","git_url":"git://github.com/secondsun/aerogear-android-push.git","ssh_url":"git@github.com:secondsun/aerogear-android-push.git","clone_url":"https://github.com/secondsun/aerogear-android-push.git","svn_url":"https://github.com/secondsun/aerogear-android-push","homepage":null,"size":502,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aerogear:master","ref":"master","sha":"7b094c606f8e856e9ef5157129a2bb46829cad39","user":{"login":"aerogear","id":954205,"avatar_url":"https://avatars.githubusercontent.com/u/954205?v=3","gravatar_id":"","url":"https://api.github.com/users/aerogear","html_url":"https://github.com/aerogear","followers_url":"https://api.github.com/users/aerogear/followers","following_url":"https://api.github.com/users/aerogear/following{/other_user}","gists_url":"https://api.github.com/users/aerogear/gists{/gist_id}","starred_url":"https://api.github.com/users/aerogear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerogear/subscriptions","organizations_url":"https://api.github.com/users/aerogear/orgs","repos_url":"https://api.github.com/users/aerogear/repos","events_url":"https://api.github.com/users/aerogear/events{/privacy}","received_events_url":"https://api.github.com/users/aerogear/received_events","type":"Organization","site_admin":false},"repo":{"id":18665536,"name":"aerogear-android-push","full_name":"aerogear/aerogear-android-push","owner":{"login":"aerogear","id":954205,"avatar_url":"https://avatars.githubusercontent.com/u/954205?v=3","gravatar_id":"","url":"https://api.github.com/users/aerogear","html_url":"https://github.com/aerogear","followers_url":"https://api.github.com/users/aerogear/followers","following_url":"https://api.github.com/users/aerogear/following{/other_user}","gists_url":"https://api.github.com/users/aerogear/gists{/gist_id}","starred_url":"https://api.github.com/users/aerogear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerogear/subscriptions","organizations_url":"https://api.github.com/users/aerogear/orgs","repos_url":"https://api.github.com/users/aerogear/repos","events_url":"https://api.github.com/users/aerogear/events{/privacy}","received_events_url":"https://api.github.com/users/aerogear/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aerogear/aerogear-android-push","description":"AeroGear Android Push","fork":false,"url":"https://api.github.com/repos/aerogear/aerogear-android-push","forks_url":"https://api.github.com/repos/aerogear/aerogear-android-push/forks","keys_url":"https://api.github.com/repos/aerogear/aerogear-android-push/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aerogear/aerogear-android-push/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aerogear/aerogear-android-push/teams","hooks_url":"https://api.github.com/repos/aerogear/aerogear-android-push/hooks","issue_events_url":"https://api.github.com/repos/aerogear/aerogear-android-push/issues/events{/number}","events_url":"https://api.github.com/repos/aerogear/aerogear-android-push/events","assignees_url":"https://api.github.com/repos/aerogear/aerogear-android-push/assignees{/user}","branches_url":"https://api.github.com/repos/aerogear/aerogear-android-push/branches{/branch}","tags_url":"https://api.github.com/repos/aerogear/aerogear-android-push/tags","blobs_url":"https://api.github.com/repos/aerogear/aerogear-android-push/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aerogear/aerogear-android-push/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aerogear/aerogear-android-push/git/refs{/sha}","trees_url":"https://api.github.com/repos/aerogear/aerogear-android-push/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aerogear/aerogear-android-push/statuses/{sha}","languages_url":"https://api.github.com/repos/aerogear/aerogear-android-push/languages","stargazers_url":"https://api.github.com/repos/aerogear/aerogear-android-push/stargazers","contributors_url":"https://api.github.com/repos/aerogear/aerogear-android-push/contributors","subscribers_url":"https://api.github.com/repos/aerogear/aerogear-android-push/subscribers","subscription_url":"https://api.github.com/repos/aerogear/aerogear-android-push/subscription","commits_url":"https://api.github.com/repos/aerogear/aerogear-android-push/commits{/sha}","git_commits_url":"https://api.github.com/repos/aerogear/aerogear-android-push/git/commits{/sha}","comments_url":"https://api.github.com/repos/aerogear/aerogear-android-push/comments{/number}","issue_comment_url":"https://api.github.com/repos/aerogear/aerogear-android-push/issues/comments{/number}","contents_url":"https://api.github.com/repos/aerogear/aerogear-android-push/contents/{+path}","compare_url":"https://api.github.com/repos/aerogear/aerogear-android-push/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aerogear/aerogear-android-push/merges","archive_url":"https://api.github.com/repos/aerogear/aerogear-android-push/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aerogear/aerogear-android-push/downloads","issues_url":"https://api.github.com/repos/aerogear/aerogear-android-push/issues{/number}","pulls_url":"https://api.github.com/repos/aerogear/aerogear-android-push/pulls{/number}","milestones_url":"https://api.github.com/repos/aerogear/aerogear-android-push/milestones{/number}","notifications_url":"https://api.github.com/repos/aerogear/aerogear-android-push/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aerogear/aerogear-android-push/labels{/name}","releases_url":"https://api.github.com/repos/aerogear/aerogear-android-push/releases{/id}","created_at":"2014-04-11T07:06:02Z","updated_at":"2015-07-21T14:51:51Z","pushed_at":"2015-07-21T19:08:54Z","git_url":"git://github.com/aerogear/aerogear-android-push.git","ssh_url":"git@github.com:aerogear/aerogear-android-push.git","clone_url":"https://github.com/aerogear/aerogear-android-push.git","svn_url":"https://github.com/aerogear/aerogear-android-push","homepage":"","size":942,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":1,"forks":19,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aerogear/aerogear-android-push/pulls/44"},"html":{"href":"https://github.com/aerogear/aerogear-android-push/pull/44"},"issue":{"href":"https://api.github.com/repos/aerogear/aerogear-android-push/issues/44"},"comments":{"href":"https://api.github.com/repos/aerogear/aerogear-android-push/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/aerogear/aerogear-android-push/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/aerogear/aerogear-android-push/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aerogear/aerogear-android-push/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/aerogear/aerogear-android-push/statuses/a52a727a28cdccb07983f061b8b8b9028d95083b"}}}}