@@ -57,7 +57,6 @@ public class FirebaseAuthPlugin implements MethodCallHandler {
5757 // Handles are ints used as indexes into the sparse array of active observers
5858 private int nextHandle = 0 ;
5959
60-
6160 public static void registerWith (PluginRegistry .Registrar registrar ) {
6261 MethodChannel channel =
6362 new MethodChannel (registrar .messenger (), "plugins.flutter.io/firebase_auth" );
@@ -176,8 +175,8 @@ public void onMethodCall(MethodCall call, Result result) {
176175 }
177176 }
178177
179- private void handleSignInWithPhoneNumber (MethodCall call , Result result ,
180- FirebaseAuth firebaseAuth ) {
178+ private void handleSignInWithPhoneNumber (
179+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
181180 Map <String , String > arguments = call .arguments ();
182181 String verificationId = arguments .get ("verificationId" );
183182 String smsCode = arguments .get ("smsCode" );
@@ -189,8 +188,8 @@ private void handleSignInWithPhoneNumber(MethodCall call, Result result,
189188 .addOnCompleteListener (new SignInCompleteListener (result ));
190189 }
191190
192- private void handleVerifyPhoneNumber (MethodCall call , Result result ,
193- final FirebaseAuth firebaseAuth ) {
191+ private void handleVerifyPhoneNumber (
192+ MethodCall call , Result result , final FirebaseAuth firebaseAuth ) {
194193 Map <String , Object > arguments = call .arguments ();
195194 final int handle = (int ) arguments .get ("handle" );
196195 String phoneNumber = (String ) arguments .get ("phoneNumber" );
@@ -285,8 +284,8 @@ private Map<String, Object> getVerifyPhoneNumberExceptionMap(FirebaseException e
285284 return exceptionMap ;
286285 }
287286
288- private void handleLinkWithEmailAndPassword (MethodCall call , Result result ,
289- FirebaseAuth firebaseAuth ) {
287+ private void handleLinkWithEmailAndPassword (
288+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
290289 Map <String , String > arguments = call .arguments ();
291290 String email = arguments .get ("email" );
292291 String password = arguments .get ("password" );
@@ -298,8 +297,8 @@ private void handleLinkWithEmailAndPassword(MethodCall call, Result result,
298297 .addOnCompleteListener (new SignInCompleteListener (result ));
299298 }
300299
301- private void handleCurrentUser (@ SuppressWarnings ( "unused" ) MethodCall call , final Result result ,
302- FirebaseAuth firebaseAuth ) {
300+ private void handleCurrentUser (
301+ @ SuppressWarnings ( "unused" ) MethodCall call , final Result result , FirebaseAuth firebaseAuth ) {
303302 FirebaseUser user = firebaseAuth .getCurrentUser ();
304303 if (user == null ) {
305304 result .success (null );
@@ -309,13 +308,13 @@ private void handleCurrentUser(@SuppressWarnings("unused") MethodCall call, fina
309308 result .success (userMap );
310309 }
311310
312- private void handleSignInAnonymously (@ SuppressWarnings ( "unused" ) MethodCall call , Result result ,
313- FirebaseAuth firebaseAuth ) {
311+ private void handleSignInAnonymously (
312+ @ SuppressWarnings ( "unused" ) MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
314313 firebaseAuth .signInAnonymously ().addOnCompleteListener (new SignInCompleteListener (result ));
315314 }
316315
317- private void handleCreateUserWithEmailAndPassword (MethodCall call , Result result ,
318- FirebaseAuth firebaseAuth ) {
316+ private void handleCreateUserWithEmailAndPassword (
317+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
319318 Map <String , String > arguments = call .arguments ();
320319 String email = arguments .get ("email" );
321320 String password = arguments .get ("password" );
@@ -325,8 +324,8 @@ private void handleCreateUserWithEmailAndPassword(MethodCall call, Result result
325324 .addOnCompleteListener (new SignInCompleteListener (result ));
326325 }
327326
328- private void handleFetchSignInMethodsForEmail (MethodCall call , Result result ,
329- FirebaseAuth firebaseAuth ) {
327+ private void handleFetchSignInMethodsForEmail (
328+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
330329 Map <String , String > arguments = call .arguments ();
331330 String email = arguments .get ("email" );
332331
@@ -335,8 +334,8 @@ private void handleFetchSignInMethodsForEmail(MethodCall call, Result result,
335334 .addOnCompleteListener (new GetSignInMethodsCompleteListener (result ));
336335 }
337336
338- private void handleSendPasswordResetEmail (MethodCall call , Result result ,
339- FirebaseAuth firebaseAuth ) {
337+ private void handleSendPasswordResetEmail (
338+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
340339 Map <String , String > arguments = call .arguments ();
341340 String email = arguments .get ("email" );
342341
@@ -367,8 +366,8 @@ private void handleDelete(MethodCall call, Result result, FirebaseAuth firebaseA
367366 .addOnCompleteListener (new TaskVoidCompleteListener (result ));
368367 }
369368
370- private void handleSignInWithEmailAndPassword (MethodCall call , Result result ,
371- FirebaseAuth firebaseAuth ) {
369+ private void handleSignInWithEmailAndPassword (
370+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
372371 Map <String , String > arguments = call .arguments ();
373372 String email = arguments .get ("email" );
374373 String password = arguments .get ("password" );
@@ -389,8 +388,8 @@ private void handleSignInWithGoogle(MethodCall call, Result result, FirebaseAuth
389388 .addOnCompleteListener (new SignInCompleteListener (result ));
390389 }
391390
392- private void handleLinkWithGoogleCredential (MethodCall call , Result result ,
393- FirebaseAuth firebaseAuth ) {
391+ private void handleLinkWithGoogleCredential (
392+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
394393 Map <String , String > arguments = call .arguments ();
395394 String idToken = arguments .get ("idToken" );
396395 String accessToken = arguments .get ("accessToken" );
@@ -402,8 +401,8 @@ private void handleLinkWithGoogleCredential(MethodCall call, Result result,
402401 .addOnCompleteListener (new SignInCompleteListener (result ));
403402 }
404403
405- private void handleLinkWithFacebookCredential (MethodCall call , Result result ,
406- FirebaseAuth firebaseAuth ) {
404+ private void handleLinkWithFacebookCredential (
405+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
407406 Map <String , String > arguments = call .arguments ();
408407 String accessToken = arguments .get ("accessToken" );
409408
@@ -434,8 +433,8 @@ private void handleSignInWithTwitter(MethodCall call, Result result, FirebaseAut
434433 .addOnCompleteListener (new SignInCompleteListener (result ));
435434 }
436435
437- private void handleLinkWithTwitterCredential (MethodCall call , Result result ,
438- FirebaseAuth firebaseAuth ) {
436+ private void handleLinkWithTwitterCredential (
437+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
439438 String authToken = call .argument ("authToken" );
440439 String authTokenSecret = call .argument ("authTokenSecret" );
441440
@@ -455,8 +454,8 @@ private void handleSignInWithGithub(MethodCall call, Result result, FirebaseAuth
455454 .addOnCompleteListener (new SignInCompleteListener (result ));
456455 }
457456
458- private void handleLinkWithGithubCredential (MethodCall call , Result result ,
459- FirebaseAuth firebaseAuth ) {
457+ private void handleLinkWithGithubCredential (
458+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
460459 String token = call .argument ("token" );
461460
462461 AuthCredential credential = GithubAuthProvider .getCredential (token );
@@ -476,8 +475,8 @@ private void handleUnlinkCredential(MethodCall call, Result result, FirebaseAuth
476475 .addOnCompleteListener (new SignInCompleteListener (result ));
477476 }
478477
479- private void handleSignInWithCustomToken (MethodCall call , final Result result ,
480- FirebaseAuth firebaseAuth ) {
478+ private void handleSignInWithCustomToken (
479+ MethodCall call , final Result result , FirebaseAuth firebaseAuth ) {
481480 Map <String , String > arguments = call .arguments ();
482481 String token = arguments .get ("token" );
483482
@@ -570,8 +569,8 @@ public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {
570569 result .success (handle );
571570 }
572571
573- private void handleStopListeningAuthState (MethodCall call , Result result ,
574- FirebaseAuth firebaseAuth ) {
572+ private void handleStopListeningAuthState (
573+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
575574 Map <String , Integer > arguments = call .arguments ();
576575 Integer id = arguments .get ("id" );
577576
0 commit comments