{"action":"created","comment":{"url":"https://api.github.com/repos/flutter/firebase_auth/pulls/comments/112254320","pull_request_review_id":33554771,"id":112254320,"diff_hunk":"@@ -0,0 +1,111 @@\n+// Copyright 2017 The Chromium Authors. All rights reserved.\n+// Use of this source code is governed by a BSD-style license that can be\n+// found in the LICENSE file.\n+\n+package io.flutter.firebase_auth;\n+\n+import android.support.annotation.NonNull;\n+\n+import com.google.android.gms.tasks.Task;\n+import com.google.android.gms.tasks.OnCompleteListener;\n+import com.google.common.collect.ImmutableList;\n+import com.google.common.collect.ImmutableMap;\n+import com.google.firebase.FirebaseApp;\n+import com.google.firebase.auth.AuthResult;\n+import com.google.firebase.auth.FirebaseAuth;\n+import com.google.firebase.auth.FirebaseUser;\n+import com.google.firebase.auth.UserInfo;\n+\n+import io.flutter.app.FlutterActivity;\n+import io.flutter.plugin.common.FlutterMethodChannel;\n+import io.flutter.plugin.common.FlutterMethodChannel.MethodCallHandler;\n+import io.flutter.plugin.common.FlutterMethodChannel.Response;\n+import io.flutter.plugin.common.MethodCall;\n+\n+import java.util.Map;\n+\n+/**\n+ * Flutter plugin for Firebase Auth.\n+ */\n+public class FirebaseAuthPlugin implements MethodCallHandler {\n+  private final FlutterActivity activity;\n+  private final FirebaseAuth firebaseAuth;\n+\n+  private static final String ERROR_REASON_EXCEPTION = \"exception\";\n+\n+  public static FirebaseAuthPlugin register(FlutterActivity activity) {\n+    return new FirebaseAuthPlugin(activity);\n+  }\n+\n+  private FirebaseAuthPlugin(FlutterActivity activity) {\n+    this.activity = activity;\n+    FirebaseApp.initializeApp(activity);","path":"android/src/main/java/io/flutter/firebase_auth/FirebaseAuthPlugin.java","position":42,"original_position":42,"commit_id":"957f9bfda6951104a635d2d686754f6fe3ef9c81","original_commit_id":"957f9bfda6951104a635d2d686754f6fe3ef9c81","user":{"login":"yjbanov","id":211513,"avatar_url":"https://avatars2.githubusercontent.com/u/211513?v=3","gravatar_id":"","url":"https://api.github.com/users/yjbanov","html_url":"https://github.com/yjbanov","followers_url":"https://api.github.com/users/yjbanov/followers","following_url":"https://api.github.com/users/yjbanov/following{/other_user}","gists_url":"https://api.github.com/users/yjbanov/gists{/gist_id}","starred_url":"https://api.github.com/users/yjbanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yjbanov/subscriptions","organizations_url":"https://api.github.com/users/yjbanov/orgs","repos_url":"https://api.github.com/users/yjbanov/repos","events_url":"https://api.github.com/users/yjbanov/events{/privacy}","received_events_url":"https://api.github.com/users/yjbanov/received_events","type":"User","site_admin":false},"body":"Also, I should probably do the same over in analytics. Will send a PR.","created_at":"2017-04-19T16:42:52Z","updated_at":"2017-04-19T16:42:52Z","html_url":"https://github.com/flutter/firebase_auth/pull/1#discussion_r112254320","pull_request_url":"https://api.github.com/repos/flutter/firebase_auth/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/flutter/firebase_auth/pulls/comments/112254320"},"html":{"href":"https://github.com/flutter/firebase_auth/pull/1#discussion_r112254320"},"pull_request":{"href":"https://api.github.com/repos/flutter/firebase_auth/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/flutter/firebase_auth/pulls/1","id":116475986,"html_url":"https://github.com/flutter/firebase_auth/pull/1","diff_url":"https://github.com/flutter/firebase_auth/pull/1.diff","patch_url":"https://github.com/flutter/firebase_auth/pull/1.patch","issue_url":"https://api.github.com/repos/flutter/firebase_auth/issues/1","number":1,"state":"open","locked":false,"title":"Implementation of anonymous sign-in","user":{"login":"collinjackson","id":394889,"avatar_url":"https://avatars1.githubusercontent.com/u/394889?v=3","gravatar_id":"","url":"https://api.github.com/users/collinjackson","html_url":"https://github.com/collinjackson","followers_url":"https://api.github.com/users/collinjackson/followers","following_url":"https://api.github.com/users/collinjackson/following{/other_user}","gists_url":"https://api.github.com/users/collinjackson/gists{/gist_id}","starred_url":"https://api.github.com/users/collinjackson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collinjackson/subscriptions","organizations_url":"https://api.github.com/users/collinjackson/orgs","repos_url":"https://api.github.com/users/collinjackson/repos","events_url":"https://api.github.com/users/collinjackson/events{/privacy}","received_events_url":"https://api.github.com/users/collinjackson/received_events","type":"User","site_admin":false},"body":null,"created_at":"2017-04-19T06:16:19Z","updated_at":"2017-04-19T16:42:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42c5708329ac549cad30b61d84d7a8b750a12369","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/flutter/firebase_auth/pulls/1/commits","review_comments_url":"https://api.github.com/repos/flutter/firebase_auth/pulls/1/comments","review_comment_url":"https://api.github.com/repos/flutter/firebase_auth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flutter/firebase_auth/issues/1/comments","statuses_url":"https://api.github.com/repos/flutter/firebase_auth/statuses/957f9bfda6951104a635d2d686754f6fe3ef9c81","head":{"label":"collinjackson:mvp","ref":"mvp","sha":"957f9bfda6951104a635d2d686754f6fe3ef9c81","user":{"login":"collinjackson","id":394889,"avatar_url":"https://avatars1.githubusercontent.com/u/394889?v=3","gravatar_id":"","url":"https://api.github.com/users/collinjackson","html_url":"https://github.com/collinjackson","followers_url":"https://api.github.com/users/collinjackson/followers","following_url":"https://api.github.com/users/collinjackson/following{/other_user}","gists_url":"https://api.github.com/users/collinjackson/gists{/gist_id}","starred_url":"https://api.github.com/users/collinjackson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collinjackson/subscriptions","organizations_url":"https://api.github.com/users/collinjackson/orgs","repos_url":"https://api.github.com/users/collinjackson/repos","events_url":"https://api.github.com/users/collinjackson/events{/privacy}","received_events_url":"https://api.github.com/users/collinjackson/received_events","type":"User","site_admin":false},"repo":{"id":88689902,"name":"firebase_auth","full_name":"collinjackson/firebase_auth","owner":{"login":"collinjackson","id":394889,"avatar_url":"https://avatars1.githubusercontent.com/u/394889?v=3","gravatar_id":"","url":"https://api.github.com/users/collinjackson","html_url":"https://github.com/collinjackson","followers_url":"https://api.github.com/users/collinjackson/followers","following_url":"https://api.github.com/users/collinjackson/following{/other_user}","gists_url":"https://api.github.com/users/collinjackson/gists{/gist_id}","starred_url":"https://api.github.com/users/collinjackson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/collinjackson/subscriptions","organizations_url":"https://api.github.com/users/collinjackson/orgs","repos_url":"https://api.github.com/users/collinjackson/repos","events_url":"https://api.github.com/users/collinjackson/events{/privacy}","received_events_url":"https://api.github.com/users/collinjackson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/collinjackson/firebase_auth","description":null,"fork":true,"url":"https://api.github.com/repos/collinjackson/firebase_auth","forks_url":"https://api.github.com/repos/collinjackson/firebase_auth/forks","keys_url":"https://api.github.com/repos/collinjackson/firebase_auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/collinjackson/firebase_auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/collinjackson/firebase_auth/teams","hooks_url":"https://api.github.com/repos/collinjackson/firebase_auth/hooks","issue_events_url":"https://api.github.com/repos/collinjackson/firebase_auth/issues/events{/number}","events_url":"https://api.github.com/repos/collinjackson/firebase_auth/events","assignees_url":"https://api.github.com/repos/collinjackson/firebase_auth/assignees{/user}","branches_url":"https://api.github.com/repos/collinjackson/firebase_auth/branches{/branch}","tags_url":"https://api.github.com/repos/collinjackson/firebase_auth/tags","blobs_url":"https://api.github.com/repos/collinjackson/firebase_auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/collinjackson/firebase_auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/collinjackson/firebase_auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/collinjackson/firebase_auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/collinjackson/firebase_auth/statuses/{sha}","languages_url":"https://api.github.com/repos/collinjackson/firebase_auth/languages","stargazers_url":"https://api.github.com/repos/collinjackson/firebase_auth/stargazers","contributors_url":"https://api.github.com/repos/collinjackson/firebase_auth/contributors","subscribers_url":"https://api.github.com/repos/collinjackson/firebase_auth/subscribers","subscription_url":"https://api.github.com/repos/collinjackson/firebase_auth/subscription","commits_url":"https://api.github.com/repos/collinjackson/firebase_auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/collinjackson/firebase_auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/collinjackson/firebase_auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/collinjackson/firebase_auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/collinjackson/firebase_auth/contents/{+path}","compare_url":"https://api.github.com/repos/collinjackson/firebase_auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/collinjackson/firebase_auth/merges","archive_url":"https://api.github.com/repos/collinjackson/firebase_auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/collinjackson/firebase_auth/downloads","issues_url":"https://api.github.com/repos/collinjackson/firebase_auth/issues{/number}","pulls_url":"https://api.github.com/repos/collinjackson/firebase_auth/pulls{/number}","milestones_url":"https://api.github.com/repos/collinjackson/firebase_auth/milestones{/number}","notifications_url":"https://api.github.com/repos/collinjackson/firebase_auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/collinjackson/firebase_auth/labels{/name}","releases_url":"https://api.github.com/repos/collinjackson/firebase_auth/releases{/id}","deployments_url":"https://api.github.com/repos/collinjackson/firebase_auth/deployments","created_at":"2017-04-19T02:10:52Z","updated_at":"2017-04-19T02:10:54Z","pushed_at":"2017-04-19T16:22:22Z","git_url":"git://github.com/collinjackson/firebase_auth.git","ssh_url":"git@github.com:collinjackson/firebase_auth.git","clone_url":"https://github.com/collinjackson/firebase_auth.git","svn_url":"https://github.com/collinjackson/firebase_auth","homepage":null,"size":64,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"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":"flutter:master","ref":"master","sha":"5819c3a28c4209f457772c99be8a03c3214b79a2","user":{"login":"flutter","id":14101776,"avatar_url":"https://avatars0.githubusercontent.com/u/14101776?v=3","gravatar_id":"","url":"https://api.github.com/users/flutter","html_url":"https://github.com/flutter","followers_url":"https://api.github.com/users/flutter/followers","following_url":"https://api.github.com/users/flutter/following{/other_user}","gists_url":"https://api.github.com/users/flutter/gists{/gist_id}","starred_url":"https://api.github.com/users/flutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flutter/subscriptions","organizations_url":"https://api.github.com/users/flutter/orgs","repos_url":"https://api.github.com/users/flutter/repos","events_url":"https://api.github.com/users/flutter/events{/privacy}","received_events_url":"https://api.github.com/users/flutter/received_events","type":"Organization","site_admin":false},"repo":{"id":88689855,"name":"firebase_auth","full_name":"flutter/firebase_auth","owner":{"login":"flutter","id":14101776,"avatar_url":"https://avatars0.githubusercontent.com/u/14101776?v=3","gravatar_id":"","url":"https://api.github.com/users/flutter","html_url":"https://github.com/flutter","followers_url":"https://api.github.com/users/flutter/followers","following_url":"https://api.github.com/users/flutter/following{/other_user}","gists_url":"https://api.github.com/users/flutter/gists{/gist_id}","starred_url":"https://api.github.com/users/flutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flutter/subscriptions","organizations_url":"https://api.github.com/users/flutter/orgs","repos_url":"https://api.github.com/users/flutter/repos","events_url":"https://api.github.com/users/flutter/events{/privacy}","received_events_url":"https://api.github.com/users/flutter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/flutter/firebase_auth","description":null,"fork":false,"url":"https://api.github.com/repos/flutter/firebase_auth","forks_url":"https://api.github.com/repos/flutter/firebase_auth/forks","keys_url":"https://api.github.com/repos/flutter/firebase_auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flutter/firebase_auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flutter/firebase_auth/teams","hooks_url":"https://api.github.com/repos/flutter/firebase_auth/hooks","issue_events_url":"https://api.github.com/repos/flutter/firebase_auth/issues/events{/number}","events_url":"https://api.github.com/repos/flutter/firebase_auth/events","assignees_url":"https://api.github.com/repos/flutter/firebase_auth/assignees{/user}","branches_url":"https://api.github.com/repos/flutter/firebase_auth/branches{/branch}","tags_url":"https://api.github.com/repos/flutter/firebase_auth/tags","blobs_url":"https://api.github.com/repos/flutter/firebase_auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flutter/firebase_auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flutter/firebase_auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/flutter/firebase_auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flutter/firebase_auth/statuses/{sha}","languages_url":"https://api.github.com/repos/flutter/firebase_auth/languages","stargazers_url":"https://api.github.com/repos/flutter/firebase_auth/stargazers","contributors_url":"https://api.github.com/repos/flutter/firebase_auth/contributors","subscribers_url":"https://api.github.com/repos/flutter/firebase_auth/subscribers","subscription_url":"https://api.github.com/repos/flutter/firebase_auth/subscription","commits_url":"https://api.github.com/repos/flutter/firebase_auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/flutter/firebase_auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/flutter/firebase_auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/flutter/firebase_auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/flutter/firebase_auth/contents/{+path}","compare_url":"https://api.github.com/repos/flutter/firebase_auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flutter/firebase_auth/merges","archive_url":"https://api.github.com/repos/flutter/firebase_auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flutter/firebase_auth/downloads","issues_url":"https://api.github.com/repos/flutter/firebase_auth/issues{/number}","pulls_url":"https://api.github.com/repos/flutter/firebase_auth/pulls{/number}","milestones_url":"https://api.github.com/repos/flutter/firebase_auth/milestones{/number}","notifications_url":"https://api.github.com/repos/flutter/firebase_auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flutter/firebase_auth/labels{/name}","releases_url":"https://api.github.com/repos/flutter/firebase_auth/releases{/id}","deployments_url":"https://api.github.com/repos/flutter/firebase_auth/deployments","created_at":"2017-04-19T02:10:17Z","updated_at":"2017-04-19T02:10:44Z","pushed_at":"2017-04-19T16:22:24Z","git_url":"git://github.com/flutter/firebase_auth.git","ssh_url":"git@github.com:flutter/firebase_auth.git","clone_url":"https://github.com/flutter/firebase_auth.git","svn_url":"https://github.com/flutter/firebase_auth","homepage":null,"size":55,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_projects":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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flutter/firebase_auth/pulls/1"},"html":{"href":"https://github.com/flutter/firebase_auth/pull/1"},"issue":{"href":"https://api.github.com/repos/flutter/firebase_auth/issues/1"},"comments":{"href":"https://api.github.com/repos/flutter/firebase_auth/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/flutter/firebase_auth/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/flutter/firebase_auth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flutter/firebase_auth/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/flutter/firebase_auth/statuses/957f9bfda6951104a635d2d686754f6fe3ef9c81"}}}}
{"actor":{"display_login":"yjbanov"}}