{"action":"created","comment":{"url":"https://api.github.com/repos/halu5071/git-push-hackathon/pulls/comments/166243618","pull_request_review_id":94286879,"id":166243618,"diff_hunk":"@@ -0,0 +1,51 @@\n+/*\n+ *  GitHub-Client\n+ *\n+ *  Crypto.kt\n+ *\n+ *  Copyright 2018 moatwel.io\n+ *  author : halu5071 (Yasunori Horii)\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+ *          http://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+ */\n+\n+package io.moatwel.github.data.datasource\n+\n+import android.content.Context\n+import com.github.gfx.util.encrypt.Encryption\n+import javax.inject.Inject\n+\n+class Crypto @Inject constructor(\n+  private val context: Context\n+) {\n+\n+  private var encryption: Encryption?\n+\n+  init {\n+    encryption = createEncryption(context)\n+  }\n+\n+  private fun createEncryption(context: Context): Encryption? {\n+    return Encryption(Encryption.getDefaultCipher(), Encryption.getDefaultPrivateKey(context))\n+","path":"halu5071/app/src/main/java/io/moatwel/github/data/datasource/Crypto.kt","position":41,"original_position":41,"commit_id":"6a2a86b1e60991ece6a27fd835575243999c3182","original_commit_id":"6a2a86b1e60991ece6a27fd835575243999c3182","user":{"login":"halubot","id":32922369,"avatar_url":"https://avatars1.githubusercontent.com/u/32922369?v=4","gravatar_id":"","url":"https://api.github.com/users/halubot","html_url":"https://github.com/halubot","followers_url":"https://api.github.com/users/halubot/followers","following_url":"https://api.github.com/users/halubot/following{/other_user}","gists_url":"https://api.github.com/users/halubot/gists{/gist_id}","starred_url":"https://api.github.com/users/halubot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halubot/subscriptions","organizations_url":"https://api.github.com/users/halubot/orgs","repos_url":"https://api.github.com/users/halubot/repos","events_url":"https://api.github.com/users/halubot/events{/privacy}","received_events_url":"https://api.github.com/users/halubot/received_events","type":"User","site_admin":false},"body":"<table data-meta=\"generated_by_danger\">\n  <tbody>\n    <tr>\n      <td>:warning:</td>\n      <td width=\"100%\" data-sticky=\"false\"><span data-href=\"https://github.com/halu5071/git-push-hackathon/blob/6a2a86b1e60991ece6a27fd835575243999c3182/halu5071/app/src/main/java/io/moatwel/github/data/datasource/Crypto.kt#L41\"></span>Unexpected blank line(s) before “}”</td>\n    </tr>\n  </tbody>\n</table>\n\n\n\n","created_at":"2018-02-06T10:10:47Z","updated_at":"2018-02-06T10:10:47Z","html_url":"https://github.com/halu5071/git-push-hackathon/pull/52#discussion_r166243618","pull_request_url":"https://api.github.com/repos/halu5071/git-push-hackathon/pulls/52","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/halu5071/git-push-hackathon/pulls/comments/166243618"},"html":{"href":"https://github.com/halu5071/git-push-hackathon/pull/52#discussion_r166243618"},"pull_request":{"href":"https://api.github.com/repos/halu5071/git-push-hackathon/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/halu5071/git-push-hackathon/pulls/52","id":167346661,"html_url":"https://github.com/halu5071/git-push-hackathon/pull/52","diff_url":"https://github.com/halu5071/git-push-hackathon/pull/52.diff","patch_url":"https://github.com/halu5071/git-push-hackathon/pull/52.patch","issue_url":"https://api.github.com/repos/halu5071/git-push-hackathon/issues/52","number":52,"state":"open","locked":false,"title":"Encrypto AuthData on SharedPreferences","user":{"login":"halu5071","id":18444125,"avatar_url":"https://avatars1.githubusercontent.com/u/18444125?v=4","gravatar_id":"","url":"https://api.github.com/users/halu5071","html_url":"https://github.com/halu5071","followers_url":"https://api.github.com/users/halu5071/followers","following_url":"https://api.github.com/users/halu5071/following{/other_user}","gists_url":"https://api.github.com/users/halu5071/gists{/gist_id}","starred_url":"https://api.github.com/users/halu5071/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halu5071/subscriptions","organizations_url":"https://api.github.com/users/halu5071/orgs","repos_url":"https://api.github.com/users/halu5071/repos","events_url":"https://api.github.com/users/halu5071/events{/privacy}","received_events_url":"https://api.github.com/users/halu5071/received_events","type":"User","site_admin":false},"body":"## Issue\r\n- close #17 \r\n\r\n","created_at":"2018-02-06T08:21:55Z","updated_at":"2018-02-06T10:10:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"845a6464ea0af7feb11ddf4be1b8b5a1af8968d5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/halu5071/git-push-hackathon/pulls/52/commits","review_comments_url":"https://api.github.com/repos/halu5071/git-push-hackathon/pulls/52/comments","review_comment_url":"https://api.github.com/repos/halu5071/git-push-hackathon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/halu5071/git-push-hackathon/issues/52/comments","statuses_url":"https://api.github.com/repos/halu5071/git-push-hackathon/statuses/6a2a86b1e60991ece6a27fd835575243999c3182","head":{"label":"halu5071:feature-17","ref":"feature-17","sha":"6a2a86b1e60991ece6a27fd835575243999c3182","user":{"login":"halu5071","id":18444125,"avatar_url":"https://avatars1.githubusercontent.com/u/18444125?v=4","gravatar_id":"","url":"https://api.github.com/users/halu5071","html_url":"https://github.com/halu5071","followers_url":"https://api.github.com/users/halu5071/followers","following_url":"https://api.github.com/users/halu5071/following{/other_user}","gists_url":"https://api.github.com/users/halu5071/gists{/gist_id}","starred_url":"https://api.github.com/users/halu5071/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halu5071/subscriptions","organizations_url":"https://api.github.com/users/halu5071/orgs","repos_url":"https://api.github.com/users/halu5071/repos","events_url":"https://api.github.com/users/halu5071/events{/privacy}","received_events_url":"https://api.github.com/users/halu5071/received_events","type":"User","site_admin":false},"repo":{"id":118399797,"name":"git-push-hackathon","full_name":"halu5071/git-push-hackathon","owner":{"login":"halu5071","id":18444125,"avatar_url":"https://avatars1.githubusercontent.com/u/18444125?v=4","gravatar_id":"","url":"https://api.github.com/users/halu5071","html_url":"https://github.com/halu5071","followers_url":"https://api.github.com/users/halu5071/followers","following_url":"https://api.github.com/users/halu5071/following{/other_user}","gists_url":"https://api.github.com/users/halu5071/gists{/gist_id}","starred_url":"https://api.github.com/users/halu5071/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halu5071/subscriptions","organizations_url":"https://api.github.com/users/halu5071/orgs","repos_url":"https://api.github.com/users/halu5071/repos","events_url":"https://api.github.com/users/halu5071/events{/privacy}","received_events_url":"https://api.github.com/users/halu5071/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/halu5071/git-push-hackathon","description":"$ git push hackathon :computer: ","fork":true,"url":"https://api.github.com/repos/halu5071/git-push-hackathon","forks_url":"https://api.github.com/repos/halu5071/git-push-hackathon/forks","keys_url":"https://api.github.com/repos/halu5071/git-push-hackathon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/halu5071/git-push-hackathon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/halu5071/git-push-hackathon/teams","hooks_url":"https://api.github.com/repos/halu5071/git-push-hackathon/hooks","issue_events_url":"https://api.github.com/repos/halu5071/git-push-hackathon/issues/events{/number}","events_url":"https://api.github.com/repos/halu5071/git-push-hackathon/events","assignees_url":"https://api.github.com/repos/halu5071/git-push-hackathon/assignees{/user}","branches_url":"https://api.github.com/repos/halu5071/git-push-hackathon/branches{/branch}","tags_url":"https://api.github.com/repos/halu5071/git-push-hackathon/tags","blobs_url":"https://api.github.com/repos/halu5071/git-push-hackathon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/halu5071/git-push-hackathon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/halu5071/git-push-hackathon/git/refs{/sha}","trees_url":"https://api.github.com/repos/halu5071/git-push-hackathon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/halu5071/git-push-hackathon/statuses/{sha}","languages_url":"https://api.github.com/repos/halu5071/git-push-hackathon/languages","stargazers_url":"https://api.github.com/repos/halu5071/git-push-hackathon/stargazers","contributors_url":"https://api.github.com/repos/halu5071/git-push-hackathon/contributors","subscribers_url":"https://api.github.com/repos/halu5071/git-push-hackathon/subscribers","subscription_url":"https://api.github.com/repos/halu5071/git-push-hackathon/subscription","commits_url":"https://api.github.com/repos/halu5071/git-push-hackathon/commits{/sha}","git_commits_url":"https://api.github.com/repos/halu5071/git-push-hackathon/git/commits{/sha}","comments_url":"https://api.github.com/repos/halu5071/git-push-hackathon/comments{/number}","issue_comment_url":"https://api.github.com/repos/halu5071/git-push-hackathon/issues/comments{/number}","contents_url":"https://api.github.com/repos/halu5071/git-push-hackathon/contents/{+path}","compare_url":"https://api.github.com/repos/halu5071/git-push-hackathon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/halu5071/git-push-hackathon/merges","archive_url":"https://api.github.com/repos/halu5071/git-push-hackathon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/halu5071/git-push-hackathon/downloads","issues_url":"https://api.github.com/repos/halu5071/git-push-hackathon/issues{/number}","pulls_url":"https://api.github.com/repos/halu5071/git-push-hackathon/pulls{/number}","milestones_url":"https://api.github.com/repos/halu5071/git-push-hackathon/milestones{/number}","notifications_url":"https://api.github.com/repos/halu5071/git-push-hackathon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/halu5071/git-push-hackathon/labels{/name}","releases_url":"https://api.github.com/repos/halu5071/git-push-hackathon/releases{/id}","deployments_url":"https://api.github.com/repos/halu5071/git-push-hackathon/deployments","created_at":"2018-01-22T03:12:02Z","updated_at":"2018-01-22T09:11:16Z","pushed_at":"2018-02-06T10:08:25Z","git_url":"git://github.com/halu5071/git-push-hackathon.git","ssh_url":"git@github.com:halu5071/git-push-hackathon.git","clone_url":"https://github.com/halu5071/git-push-hackathon.git","svn_url":"https://github.com/halu5071/git-push-hackathon","homepage":"https://www.cyberagent.co.jp/","size":18859,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":12,"license":null,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"halu5071:master","ref":"master","sha":"4cdd2c019dc6199a50c775a7647b56b75ae9a57e","user":{"login":"halu5071","id":18444125,"avatar_url":"https://avatars1.githubusercontent.com/u/18444125?v=4","gravatar_id":"","url":"https://api.github.com/users/halu5071","html_url":"https://github.com/halu5071","followers_url":"https://api.github.com/users/halu5071/followers","following_url":"https://api.github.com/users/halu5071/following{/other_user}","gists_url":"https://api.github.com/users/halu5071/gists{/gist_id}","starred_url":"https://api.github.com/users/halu5071/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halu5071/subscriptions","organizations_url":"https://api.github.com/users/halu5071/orgs","repos_url":"https://api.github.com/users/halu5071/repos","events_url":"https://api.github.com/users/halu5071/events{/privacy}","received_events_url":"https://api.github.com/users/halu5071/received_events","type":"User","site_admin":false},"repo":{"id":118399797,"name":"git-push-hackathon","full_name":"halu5071/git-push-hackathon","owner":{"login":"halu5071","id":18444125,"avatar_url":"https://avatars1.githubusercontent.com/u/18444125?v=4","gravatar_id":"","url":"https://api.github.com/users/halu5071","html_url":"https://github.com/halu5071","followers_url":"https://api.github.com/users/halu5071/followers","following_url":"https://api.github.com/users/halu5071/following{/other_user}","gists_url":"https://api.github.com/users/halu5071/gists{/gist_id}","starred_url":"https://api.github.com/users/halu5071/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halu5071/subscriptions","organizations_url":"https://api.github.com/users/halu5071/orgs","repos_url":"https://api.github.com/users/halu5071/repos","events_url":"https://api.github.com/users/halu5071/events{/privacy}","received_events_url":"https://api.github.com/users/halu5071/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/halu5071/git-push-hackathon","description":"$ git push hackathon :computer: ","fork":true,"url":"https://api.github.com/repos/halu5071/git-push-hackathon","forks_url":"https://api.github.com/repos/halu5071/git-push-hackathon/forks","keys_url":"https://api.github.com/repos/halu5071/git-push-hackathon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/halu5071/git-push-hackathon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/halu5071/git-push-hackathon/teams","hooks_url":"https://api.github.com/repos/halu5071/git-push-hackathon/hooks","issue_events_url":"https://api.github.com/repos/halu5071/git-push-hackathon/issues/events{/number}","events_url":"https://api.github.com/repos/halu5071/git-push-hackathon/events","assignees_url":"https://api.github.com/repos/halu5071/git-push-hackathon/assignees{/user}","branches_url":"https://api.github.com/repos/halu5071/git-push-hackathon/branches{/branch}","tags_url":"https://api.github.com/repos/halu5071/git-push-hackathon/tags","blobs_url":"https://api.github.com/repos/halu5071/git-push-hackathon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/halu5071/git-push-hackathon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/halu5071/git-push-hackathon/git/refs{/sha}","trees_url":"https://api.github.com/repos/halu5071/git-push-hackathon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/halu5071/git-push-hackathon/statuses/{sha}","languages_url":"https://api.github.com/repos/halu5071/git-push-hackathon/languages","stargazers_url":"https://api.github.com/repos/halu5071/git-push-hackathon/stargazers","contributors_url":"https://api.github.com/repos/halu5071/git-push-hackathon/contributors","subscribers_url":"https://api.github.com/repos/halu5071/git-push-hackathon/subscribers","subscription_url":"https://api.github.com/repos/halu5071/git-push-hackathon/subscription","commits_url":"https://api.github.com/repos/halu5071/git-push-hackathon/commits{/sha}","git_commits_url":"https://api.github.com/repos/halu5071/git-push-hackathon/git/commits{/sha}","comments_url":"https://api.github.com/repos/halu5071/git-push-hackathon/comments{/number}","issue_comment_url":"https://api.github.com/repos/halu5071/git-push-hackathon/issues/comments{/number}","contents_url":"https://api.github.com/repos/halu5071/git-push-hackathon/contents/{+path}","compare_url":"https://api.github.com/repos/halu5071/git-push-hackathon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/halu5071/git-push-hackathon/merges","archive_url":"https://api.github.com/repos/halu5071/git-push-hackathon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/halu5071/git-push-hackathon/downloads","issues_url":"https://api.github.com/repos/halu5071/git-push-hackathon/issues{/number}","pulls_url":"https://api.github.com/repos/halu5071/git-push-hackathon/pulls{/number}","milestones_url":"https://api.github.com/repos/halu5071/git-push-hackathon/milestones{/number}","notifications_url":"https://api.github.com/repos/halu5071/git-push-hackathon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/halu5071/git-push-hackathon/labels{/name}","releases_url":"https://api.github.com/repos/halu5071/git-push-hackathon/releases{/id}","deployments_url":"https://api.github.com/repos/halu5071/git-push-hackathon/deployments","created_at":"2018-01-22T03:12:02Z","updated_at":"2018-01-22T09:11:16Z","pushed_at":"2018-02-06T10:08:25Z","git_url":"git://github.com/halu5071/git-push-hackathon.git","ssh_url":"git@github.com:halu5071/git-push-hackathon.git","clone_url":"https://github.com/halu5071/git-push-hackathon.git","svn_url":"https://github.com/halu5071/git-push-hackathon","homepage":"https://www.cyberagent.co.jp/","size":18859,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":12,"license":null,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/halu5071/git-push-hackathon/pulls/52"},"html":{"href":"https://github.com/halu5071/git-push-hackathon/pull/52"},"issue":{"href":"https://api.github.com/repos/halu5071/git-push-hackathon/issues/52"},"comments":{"href":"https://api.github.com/repos/halu5071/git-push-hackathon/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/halu5071/git-push-hackathon/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/halu5071/git-push-hackathon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/halu5071/git-push-hackathon/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/halu5071/git-push-hackathon/statuses/6a2a86b1e60991ece6a27fd835575243999c3182"}},"author_association":"OWNER"}}
{"actor":{"display_login":"halubot"}}