{"action":"created","comment":{"url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/pulls/comments/50408108","id":50408108,"diff_hunk":"@@ -21,6 +21,50 @@ const getProjectDependencies = () => {\n   return Object.keys(pjson.dependencies).filter(name => name !== 'react-native');\n };\n \n+const makeLink = (project, dependency) => (cb) => {\n+  if (project.android && dependency.config.android) {\n+    log.info(`Linking ${dependency.name} android dependency`);\n+\n+    const didLink = registerDependencyAndroid(\n+      dependency.name,\n+      dependency.config.android,\n+      project.android\n+    );\n+\n+    if (didLink) {\n+      log.info(`Android module ${packageName} has been successfully linked`);","path":"src/link.js","position":15,"original_position":15,"commit_id":"73575b72205606a9556af74f2e435c95e989f428","original_commit_id":"73575b72205606a9556af74f2e435c95e989f428","user":{"login":"grabbou","id":2464966,"avatar_url":"https://avatars.githubusercontent.com/u/2464966?v=3","gravatar_id":"","url":"https://api.github.com/users/grabbou","html_url":"https://github.com/grabbou","followers_url":"https://api.github.com/users/grabbou/followers","following_url":"https://api.github.com/users/grabbou/following{/other_user}","gists_url":"https://api.github.com/users/grabbou/gists{/gist_id}","starred_url":"https://api.github.com/users/grabbou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grabbou/subscriptions","organizations_url":"https://api.github.com/users/grabbou/orgs","repos_url":"https://api.github.com/users/grabbou/repos","events_url":"https://api.github.com/users/grabbou/events{/privacy}","received_events_url":"https://api.github.com/users/grabbou/received_events","type":"User","site_admin":false},"body":"I was just following `unlink` part (trying to match the style). Any changes e.g. `Android module already linked` should be subject to another PR.","created_at":"2016-01-21T14:43:14Z","updated_at":"2016-01-21T14:43:14Z","html_url":"https://github.com/rnpm/rnpm-plugin-link/pull/17#discussion_r50408108","pull_request_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/rnpm/rnpm-plugin-link/pulls/comments/50408108"},"html":{"href":"https://github.com/rnpm/rnpm-plugin-link/pull/17#discussion_r50408108"},"pull_request":{"href":"https://api.github.com/repos/rnpm/rnpm-plugin-link/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/pulls/17","id":55539626,"html_url":"https://github.com/rnpm/rnpm-plugin-link/pull/17","diff_url":"https://github.com/rnpm/rnpm-plugin-link/pull/17.diff","patch_url":"https://github.com/rnpm/rnpm-plugin-link/pull/17.patch","issue_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/issues/17","number":17,"state":"open","locked":false,"title":"Support \"unlink\" functionality for iOS","user":{"login":"grabbou","id":2464966,"avatar_url":"https://avatars.githubusercontent.com/u/2464966?v=3","gravatar_id":"","url":"https://api.github.com/users/grabbou","html_url":"https://github.com/grabbou","followers_url":"https://api.github.com/users/grabbou/followers","following_url":"https://api.github.com/users/grabbou/following{/other_user}","gists_url":"https://api.github.com/users/grabbou/gists{/gist_id}","starred_url":"https://api.github.com/users/grabbou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grabbou/subscriptions","organizations_url":"https://api.github.com/users/grabbou/orgs","repos_url":"https://api.github.com/users/grabbou/repos","events_url":"https://api.github.com/users/grabbou/events{/privacy}","received_events_url":"https://api.github.com/users/grabbou/received_events","type":"User","site_admin":false},"body":"Todo: \r\n- [X] remove project from Xcode\r\n- [X] unit tests","created_at":"2016-01-09T10:10:08Z","updated_at":"2016-01-21T14:43:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72eaf0fa1c501aebf2aa4b837f0fa67ba34b32ea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/pulls/17/commits","review_comments_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/pulls/17/comments","review_comment_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/issues/17/comments","statuses_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/statuses/73575b72205606a9556af74f2e435c95e989f428","head":{"label":"rnpm:feature/unlink-ios","ref":"feature/unlink-ios","sha":"73575b72205606a9556af74f2e435c95e989f428","user":{"login":"rnpm","id":16019332,"avatar_url":"https://avatars.githubusercontent.com/u/16019332?v=3","gravatar_id":"","url":"https://api.github.com/users/rnpm","html_url":"https://github.com/rnpm","followers_url":"https://api.github.com/users/rnpm/followers","following_url":"https://api.github.com/users/rnpm/following{/other_user}","gists_url":"https://api.github.com/users/rnpm/gists{/gist_id}","starred_url":"https://api.github.com/users/rnpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnpm/subscriptions","organizations_url":"https://api.github.com/users/rnpm/orgs","repos_url":"https://api.github.com/users/rnpm/repos","events_url":"https://api.github.com/users/rnpm/events{/privacy}","received_events_url":"https://api.github.com/users/rnpm/received_events","type":"Organization","site_admin":false},"repo":{"id":46947718,"name":"rnpm-plugin-link","full_name":"rnpm/rnpm-plugin-link","owner":{"login":"rnpm","id":16019332,"avatar_url":"https://avatars.githubusercontent.com/u/16019332?v=3","gravatar_id":"","url":"https://api.github.com/users/rnpm","html_url":"https://github.com/rnpm","followers_url":"https://api.github.com/users/rnpm/followers","following_url":"https://api.github.com/users/rnpm/following{/other_user}","gists_url":"https://api.github.com/users/rnpm/gists{/gist_id}","starred_url":"https://api.github.com/users/rnpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnpm/subscriptions","organizations_url":"https://api.github.com/users/rnpm/orgs","repos_url":"https://api.github.com/users/rnpm/repos","events_url":"https://api.github.com/users/rnpm/events{/privacy}","received_events_url":"https://api.github.com/users/rnpm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rnpm/rnpm-plugin-link","description":"Allows linking dependencies to your React Native project","fork":false,"url":"https://api.github.com/repos/rnpm/rnpm-plugin-link","forks_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/forks","keys_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/teams","hooks_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/hooks","issue_events_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/issues/events{/number}","events_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/events","assignees_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/assignees{/user}","branches_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/branches{/branch}","tags_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/tags","blobs_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/git/refs{/sha}","trees_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/statuses/{sha}","languages_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/languages","stargazers_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/stargazers","contributors_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/contributors","subscribers_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/subscribers","subscription_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/subscription","commits_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/commits{/sha}","git_commits_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/git/commits{/sha}","comments_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/comments{/number}","issue_comment_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/issues/comments{/number}","contents_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/contents/{+path}","compare_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/merges","archive_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/downloads","issues_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/issues{/number}","pulls_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/pulls{/number}","milestones_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/milestones{/number}","notifications_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/labels{/name}","releases_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/releases{/id}","created_at":"2015-11-26T21:35:32Z","updated_at":"2016-01-21T00:42:46Z","pushed_at":"2016-01-20T23:48:18Z","git_url":"git://github.com/rnpm/rnpm-plugin-link.git","ssh_url":"git@github.com:rnpm/rnpm-plugin-link.git","clone_url":"https://github.com/rnpm/rnpm-plugin-link.git","svn_url":"https://github.com/rnpm/rnpm-plugin-link","homepage":"","size":106,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"rnpm:master","ref":"master","sha":"0444d0d413704a66685e53e6876d3ac401a6149f","user":{"login":"rnpm","id":16019332,"avatar_url":"https://avatars.githubusercontent.com/u/16019332?v=3","gravatar_id":"","url":"https://api.github.com/users/rnpm","html_url":"https://github.com/rnpm","followers_url":"https://api.github.com/users/rnpm/followers","following_url":"https://api.github.com/users/rnpm/following{/other_user}","gists_url":"https://api.github.com/users/rnpm/gists{/gist_id}","starred_url":"https://api.github.com/users/rnpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnpm/subscriptions","organizations_url":"https://api.github.com/users/rnpm/orgs","repos_url":"https://api.github.com/users/rnpm/repos","events_url":"https://api.github.com/users/rnpm/events{/privacy}","received_events_url":"https://api.github.com/users/rnpm/received_events","type":"Organization","site_admin":false},"repo":{"id":46947718,"name":"rnpm-plugin-link","full_name":"rnpm/rnpm-plugin-link","owner":{"login":"rnpm","id":16019332,"avatar_url":"https://avatars.githubusercontent.com/u/16019332?v=3","gravatar_id":"","url":"https://api.github.com/users/rnpm","html_url":"https://github.com/rnpm","followers_url":"https://api.github.com/users/rnpm/followers","following_url":"https://api.github.com/users/rnpm/following{/other_user}","gists_url":"https://api.github.com/users/rnpm/gists{/gist_id}","starred_url":"https://api.github.com/users/rnpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnpm/subscriptions","organizations_url":"https://api.github.com/users/rnpm/orgs","repos_url":"https://api.github.com/users/rnpm/repos","events_url":"https://api.github.com/users/rnpm/events{/privacy}","received_events_url":"https://api.github.com/users/rnpm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rnpm/rnpm-plugin-link","description":"Allows linking dependencies to your React Native project","fork":false,"url":"https://api.github.com/repos/rnpm/rnpm-plugin-link","forks_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/forks","keys_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/teams","hooks_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/hooks","issue_events_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/issues/events{/number}","events_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/events","assignees_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/assignees{/user}","branches_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/branches{/branch}","tags_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/tags","blobs_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/git/refs{/sha}","trees_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/statuses/{sha}","languages_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/languages","stargazers_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/stargazers","contributors_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/contributors","subscribers_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/subscribers","subscription_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/subscription","commits_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/commits{/sha}","git_commits_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/git/commits{/sha}","comments_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/comments{/number}","issue_comment_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/issues/comments{/number}","contents_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/contents/{+path}","compare_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/merges","archive_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/downloads","issues_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/issues{/number}","pulls_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/pulls{/number}","milestones_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/milestones{/number}","notifications_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/labels{/name}","releases_url":"https://api.github.com/repos/rnpm/rnpm-plugin-link/releases{/id}","created_at":"2015-11-26T21:35:32Z","updated_at":"2016-01-21T00:42:46Z","pushed_at":"2016-01-20T23:48:18Z","git_url":"git://github.com/rnpm/rnpm-plugin-link.git","ssh_url":"git@github.com:rnpm/rnpm-plugin-link.git","clone_url":"https://github.com/rnpm/rnpm-plugin-link.git","svn_url":"https://github.com/rnpm/rnpm-plugin-link","homepage":"","size":106,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rnpm/rnpm-plugin-link/pulls/17"},"html":{"href":"https://github.com/rnpm/rnpm-plugin-link/pull/17"},"issue":{"href":"https://api.github.com/repos/rnpm/rnpm-plugin-link/issues/17"},"comments":{"href":"https://api.github.com/repos/rnpm/rnpm-plugin-link/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/rnpm/rnpm-plugin-link/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/rnpm/rnpm-plugin-link/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rnpm/rnpm-plugin-link/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/rnpm/rnpm-plugin-link/statuses/73575b72205606a9556af74f2e435c95e989f428"}}}}