{"action":"created","comment":{"url":"https://api.github.com/repos/mapzen/eraser-map/pulls/comments/35660174","id":35660174,"diff_hunk":"@@ -145,15 +149,34 @@ public class MainActivity : AppCompatActivity(), MainViewController, Router.Call\n     private fun getApiKeys() {\n         var dl: ManifestDownLoader = ManifestDownLoader()\n         dl.download(apiKeys, {\n-            if(apiKeys?.getValhallaApiKey()== null) {\n+            if (apiKeys?.getValhallaApiKey() == null) {\n                 apiKeys?.setValhallaApiKey(BuildConfig.VALHALLA_API_KEY)\n             }\n-            if(apiKeys?.getVectorTileApiKeyReleaseProp()== null) {\n+            if (apiKeys?.getVectorTileApiKeyReleaseProp() == null) {\n                 apiKeys?.setVectorTileApiKeyReleaseProp(BuildConfig.VECTOR_TILE_API_KEY)\n             }\n+            if(apiKeys?.getMinVersion() != null) {\n+                checkIfUpdateNeeded()\n+            }\n         })\n     }\n \n+    public fun checkIfUpdateNeeded() {\n+        var currentVersion: Int = getPackageManager().getPackageInfo(getPackageName(), 0).versionCode;\n+        if(apiKeys?.getMinVersion() as Int > currentVersion ) {\n+            var builder: AlertDialog.Builder  = AlertDialog.Builder(this);\n+            builder.setMessage(getString(R.string.update_message))","path":"app/src/main/kotlin/com/mapzen/erasermap/view/MainActivity.kt","position":87,"original_position":87,"commit_id":"d4685d7a2609fadf77750fc949ee60b58ab37675","original_commit_id":"d4685d7a2609fadf77750fc949ee60b58ab37675","user":{"login":"kingofirony","id":556686,"avatar_url":"https://avatars.githubusercontent.com/u/556686?v=3","gravatar_id":"","url":"https://api.github.com/users/kingofirony","html_url":"https://github.com/kingofirony","followers_url":"https://api.github.com/users/kingofirony/followers","following_url":"https://api.github.com/users/kingofirony/following{/other_user}","gists_url":"https://api.github.com/users/kingofirony/gists{/gist_id}","starred_url":"https://api.github.com/users/kingofirony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingofirony/subscriptions","organizations_url":"https://api.github.com/users/kingofirony/orgs","repos_url":"https://api.github.com/users/kingofirony/repos","events_url":"https://api.github.com/users/kingofirony/events{/privacy}","received_events_url":"https://api.github.com/users/kingofirony/received_events","type":"User","site_admin":false},"body":"Over 100 lines\r\n","created_at":"2015-07-28T15:22:56Z","updated_at":"2015-07-28T15:22:56Z","html_url":"https://github.com/mapzen/eraser-map/pull/26#discussion_r35660174","pull_request_url":"https://api.github.com/repos/mapzen/eraser-map/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/mapzen/eraser-map/pulls/comments/35660174"},"html":{"href":"https://github.com/mapzen/eraser-map/pull/26#discussion_r35660174"},"pull_request":{"href":"https://api.github.com/repos/mapzen/eraser-map/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/mapzen/eraser-map/pulls/26","id":41021860,"html_url":"https://github.com/mapzen/eraser-map/pull/26","diff_url":"https://github.com/mapzen/eraser-map/pull/26.diff","patch_url":"https://github.com/mapzen/eraser-map/pull/26.patch","issue_url":"https://api.github.com/repos/mapzen/eraser-map/issues/26","number":26,"state":"open","locked":false,"title":"Peter/min check","user":{"login":"kingofirony","id":556686,"avatar_url":"https://avatars.githubusercontent.com/u/556686?v=3","gravatar_id":"","url":"https://api.github.com/users/kingofirony","html_url":"https://github.com/kingofirony","followers_url":"https://api.github.com/users/kingofirony/followers","following_url":"https://api.github.com/users/kingofirony/following{/other_user}","gists_url":"https://api.github.com/users/kingofirony/gists{/gist_id}","starred_url":"https://api.github.com/users/kingofirony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingofirony/subscriptions","organizations_url":"https://api.github.com/users/kingofirony/orgs","repos_url":"https://api.github.com/users/kingofirony/repos","events_url":"https://api.github.com/users/kingofirony/events{/privacy}","received_events_url":"https://api.github.com/users/kingofirony/received_events","type":"User","site_admin":false},"body":"- Adds check for minimum version number\r\n- Converts MainActivityTest to kotlin","created_at":"2015-07-28T15:03:56Z","updated_at":"2015-07-28T15:22:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f98056b04b8c3aeb696b205c87632164a4a5362d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mapzen/eraser-map/pulls/26/commits","review_comments_url":"https://api.github.com/repos/mapzen/eraser-map/pulls/26/comments","review_comment_url":"https://api.github.com/repos/mapzen/eraser-map/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapzen/eraser-map/issues/26/comments","statuses_url":"https://api.github.com/repos/mapzen/eraser-map/statuses/d4685d7a2609fadf77750fc949ee60b58ab37675","head":{"label":"mapzen:peter/min_check","ref":"peter/min_check","sha":"d4685d7a2609fadf77750fc949ee60b58ab37675","user":{"login":"mapzen","id":5435747,"avatar_url":"https://avatars.githubusercontent.com/u/5435747?v=3","gravatar_id":"","url":"https://api.github.com/users/mapzen","html_url":"https://github.com/mapzen","followers_url":"https://api.github.com/users/mapzen/followers","following_url":"https://api.github.com/users/mapzen/following{/other_user}","gists_url":"https://api.github.com/users/mapzen/gists{/gist_id}","starred_url":"https://api.github.com/users/mapzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapzen/subscriptions","organizations_url":"https://api.github.com/users/mapzen/orgs","repos_url":"https://api.github.com/users/mapzen/repos","events_url":"https://api.github.com/users/mapzen/events{/privacy}","received_events_url":"https://api.github.com/users/mapzen/received_events","type":"Organization","site_admin":false},"repo":{"id":33635700,"name":"eraser-map","full_name":"mapzen/eraser-map","owner":{"login":"mapzen","id":5435747,"avatar_url":"https://avatars.githubusercontent.com/u/5435747?v=3","gravatar_id":"","url":"https://api.github.com/users/mapzen","html_url":"https://github.com/mapzen","followers_url":"https://api.github.com/users/mapzen/followers","following_url":"https://api.github.com/users/mapzen/following{/other_user}","gists_url":"https://api.github.com/users/mapzen/gists{/gist_id}","starred_url":"https://api.github.com/users/mapzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapzen/subscriptions","organizations_url":"https://api.github.com/users/mapzen/orgs","repos_url":"https://api.github.com/users/mapzen/repos","events_url":"https://api.github.com/users/mapzen/events{/privacy}","received_events_url":"https://api.github.com/users/mapzen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapzen/eraser-map","description":"Privacy-focused mapping application for Android","fork":false,"url":"https://api.github.com/repos/mapzen/eraser-map","forks_url":"https://api.github.com/repos/mapzen/eraser-map/forks","keys_url":"https://api.github.com/repos/mapzen/eraser-map/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapzen/eraser-map/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapzen/eraser-map/teams","hooks_url":"https://api.github.com/repos/mapzen/eraser-map/hooks","issue_events_url":"https://api.github.com/repos/mapzen/eraser-map/issues/events{/number}","events_url":"https://api.github.com/repos/mapzen/eraser-map/events","assignees_url":"https://api.github.com/repos/mapzen/eraser-map/assignees{/user}","branches_url":"https://api.github.com/repos/mapzen/eraser-map/branches{/branch}","tags_url":"https://api.github.com/repos/mapzen/eraser-map/tags","blobs_url":"https://api.github.com/repos/mapzen/eraser-map/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapzen/eraser-map/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapzen/eraser-map/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapzen/eraser-map/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapzen/eraser-map/statuses/{sha}","languages_url":"https://api.github.com/repos/mapzen/eraser-map/languages","stargazers_url":"https://api.github.com/repos/mapzen/eraser-map/stargazers","contributors_url":"https://api.github.com/repos/mapzen/eraser-map/contributors","subscribers_url":"https://api.github.com/repos/mapzen/eraser-map/subscribers","subscription_url":"https://api.github.com/repos/mapzen/eraser-map/subscription","commits_url":"https://api.github.com/repos/mapzen/eraser-map/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapzen/eraser-map/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapzen/eraser-map/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapzen/eraser-map/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapzen/eraser-map/contents/{+path}","compare_url":"https://api.github.com/repos/mapzen/eraser-map/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapzen/eraser-map/merges","archive_url":"https://api.github.com/repos/mapzen/eraser-map/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapzen/eraser-map/downloads","issues_url":"https://api.github.com/repos/mapzen/eraser-map/issues{/number}","pulls_url":"https://api.github.com/repos/mapzen/eraser-map/pulls{/number}","milestones_url":"https://api.github.com/repos/mapzen/eraser-map/milestones{/number}","notifications_url":"https://api.github.com/repos/mapzen/eraser-map/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapzen/eraser-map/labels{/name}","releases_url":"https://api.github.com/repos/mapzen/eraser-map/releases{/id}","created_at":"2015-04-08T22:32:42Z","updated_at":"2015-07-27T21:45:13Z","pushed_at":"2015-07-28T15:03:57Z","git_url":"git://github.com/mapzen/eraser-map.git","ssh_url":"git@github.com:mapzen/eraser-map.git","clone_url":"https://github.com/mapzen/eraser-map.git","svn_url":"https://github.com/mapzen/eraser-map","homepage":null,"size":1735,"stargazers_count":1,"watchers_count":1,"language":"Kotlin","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"mapzen:master","ref":"master","sha":"cab186662ec574cc2ce26a872f43d427eee5108f","user":{"login":"mapzen","id":5435747,"avatar_url":"https://avatars.githubusercontent.com/u/5435747?v=3","gravatar_id":"","url":"https://api.github.com/users/mapzen","html_url":"https://github.com/mapzen","followers_url":"https://api.github.com/users/mapzen/followers","following_url":"https://api.github.com/users/mapzen/following{/other_user}","gists_url":"https://api.github.com/users/mapzen/gists{/gist_id}","starred_url":"https://api.github.com/users/mapzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapzen/subscriptions","organizations_url":"https://api.github.com/users/mapzen/orgs","repos_url":"https://api.github.com/users/mapzen/repos","events_url":"https://api.github.com/users/mapzen/events{/privacy}","received_events_url":"https://api.github.com/users/mapzen/received_events","type":"Organization","site_admin":false},"repo":{"id":33635700,"name":"eraser-map","full_name":"mapzen/eraser-map","owner":{"login":"mapzen","id":5435747,"avatar_url":"https://avatars.githubusercontent.com/u/5435747?v=3","gravatar_id":"","url":"https://api.github.com/users/mapzen","html_url":"https://github.com/mapzen","followers_url":"https://api.github.com/users/mapzen/followers","following_url":"https://api.github.com/users/mapzen/following{/other_user}","gists_url":"https://api.github.com/users/mapzen/gists{/gist_id}","starred_url":"https://api.github.com/users/mapzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapzen/subscriptions","organizations_url":"https://api.github.com/users/mapzen/orgs","repos_url":"https://api.github.com/users/mapzen/repos","events_url":"https://api.github.com/users/mapzen/events{/privacy}","received_events_url":"https://api.github.com/users/mapzen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapzen/eraser-map","description":"Privacy-focused mapping application for Android","fork":false,"url":"https://api.github.com/repos/mapzen/eraser-map","forks_url":"https://api.github.com/repos/mapzen/eraser-map/forks","keys_url":"https://api.github.com/repos/mapzen/eraser-map/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapzen/eraser-map/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapzen/eraser-map/teams","hooks_url":"https://api.github.com/repos/mapzen/eraser-map/hooks","issue_events_url":"https://api.github.com/repos/mapzen/eraser-map/issues/events{/number}","events_url":"https://api.github.com/repos/mapzen/eraser-map/events","assignees_url":"https://api.github.com/repos/mapzen/eraser-map/assignees{/user}","branches_url":"https://api.github.com/repos/mapzen/eraser-map/branches{/branch}","tags_url":"https://api.github.com/repos/mapzen/eraser-map/tags","blobs_url":"https://api.github.com/repos/mapzen/eraser-map/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapzen/eraser-map/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapzen/eraser-map/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapzen/eraser-map/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapzen/eraser-map/statuses/{sha}","languages_url":"https://api.github.com/repos/mapzen/eraser-map/languages","stargazers_url":"https://api.github.com/repos/mapzen/eraser-map/stargazers","contributors_url":"https://api.github.com/repos/mapzen/eraser-map/contributors","subscribers_url":"https://api.github.com/repos/mapzen/eraser-map/subscribers","subscription_url":"https://api.github.com/repos/mapzen/eraser-map/subscription","commits_url":"https://api.github.com/repos/mapzen/eraser-map/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapzen/eraser-map/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapzen/eraser-map/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapzen/eraser-map/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapzen/eraser-map/contents/{+path}","compare_url":"https://api.github.com/repos/mapzen/eraser-map/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapzen/eraser-map/merges","archive_url":"https://api.github.com/repos/mapzen/eraser-map/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapzen/eraser-map/downloads","issues_url":"https://api.github.com/repos/mapzen/eraser-map/issues{/number}","pulls_url":"https://api.github.com/repos/mapzen/eraser-map/pulls{/number}","milestones_url":"https://api.github.com/repos/mapzen/eraser-map/milestones{/number}","notifications_url":"https://api.github.com/repos/mapzen/eraser-map/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapzen/eraser-map/labels{/name}","releases_url":"https://api.github.com/repos/mapzen/eraser-map/releases{/id}","created_at":"2015-04-08T22:32:42Z","updated_at":"2015-07-27T21:45:13Z","pushed_at":"2015-07-28T15:03:57Z","git_url":"git://github.com/mapzen/eraser-map.git","ssh_url":"git@github.com:mapzen/eraser-map.git","clone_url":"https://github.com/mapzen/eraser-map.git","svn_url":"https://github.com/mapzen/eraser-map","homepage":null,"size":1735,"stargazers_count":1,"watchers_count":1,"language":"Kotlin","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapzen/eraser-map/pulls/26"},"html":{"href":"https://github.com/mapzen/eraser-map/pull/26"},"issue":{"href":"https://api.github.com/repos/mapzen/eraser-map/issues/26"},"comments":{"href":"https://api.github.com/repos/mapzen/eraser-map/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/mapzen/eraser-map/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/mapzen/eraser-map/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapzen/eraser-map/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/mapzen/eraser-map/statuses/d4685d7a2609fadf77750fc949ee60b58ab37675"}}}}