@@ -57,7 +57,6 @@ public class FirebaseAuthPlugin implements MethodCallHandler {
57
57
// Handles are ints used as indexes into the sparse array of active observers
58
58
private int nextHandle = 0 ;
59
59
60
-
61
60
public static void registerWith (PluginRegistry .Registrar registrar ) {
62
61
MethodChannel channel =
63
62
new MethodChannel (registrar .messenger (), "plugins.flutter.io/firebase_auth" );
@@ -176,8 +175,8 @@ public void onMethodCall(MethodCall call, Result result) {
176
175
}
177
176
}
178
177
179
- private void handleSignInWithPhoneNumber (MethodCall call , Result result ,
180
- FirebaseAuth firebaseAuth ) {
178
+ private void handleSignInWithPhoneNumber (
179
+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
181
180
Map <String , String > arguments = call .arguments ();
182
181
String verificationId = arguments .get ("verificationId" );
183
182
String smsCode = arguments .get ("smsCode" );
@@ -189,8 +188,8 @@ private void handleSignInWithPhoneNumber(MethodCall call, Result result,
189
188
.addOnCompleteListener (new SignInCompleteListener (result ));
190
189
}
191
190
192
- private void handleVerifyPhoneNumber (MethodCall call , Result result ,
193
- final FirebaseAuth firebaseAuth ) {
191
+ private void handleVerifyPhoneNumber (
192
+ MethodCall call , Result result , final FirebaseAuth firebaseAuth ) {
194
193
Map <String , Object > arguments = call .arguments ();
195
194
final int handle = (int ) arguments .get ("handle" );
196
195
String phoneNumber = (String ) arguments .get ("phoneNumber" );
@@ -285,8 +284,8 @@ private Map<String, Object> getVerifyPhoneNumberExceptionMap(FirebaseException e
285
284
return exceptionMap ;
286
285
}
287
286
288
- private void handleLinkWithEmailAndPassword (MethodCall call , Result result ,
289
- FirebaseAuth firebaseAuth ) {
287
+ private void handleLinkWithEmailAndPassword (
288
+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
290
289
Map <String , String > arguments = call .arguments ();
291
290
String email = arguments .get ("email" );
292
291
String password = arguments .get ("password" );
@@ -298,8 +297,8 @@ private void handleLinkWithEmailAndPassword(MethodCall call, Result result,
298
297
.addOnCompleteListener (new SignInCompleteListener (result ));
299
298
}
300
299
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 ) {
303
302
FirebaseUser user = firebaseAuth .getCurrentUser ();
304
303
if (user == null ) {
305
304
result .success (null );
@@ -309,13 +308,13 @@ private void handleCurrentUser(@SuppressWarnings("unused") MethodCall call, fina
309
308
result .success (userMap );
310
309
}
311
310
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 ) {
314
313
firebaseAuth .signInAnonymously ().addOnCompleteListener (new SignInCompleteListener (result ));
315
314
}
316
315
317
- private void handleCreateUserWithEmailAndPassword (MethodCall call , Result result ,
318
- FirebaseAuth firebaseAuth ) {
316
+ private void handleCreateUserWithEmailAndPassword (
317
+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
319
318
Map <String , String > arguments = call .arguments ();
320
319
String email = arguments .get ("email" );
321
320
String password = arguments .get ("password" );
@@ -325,8 +324,8 @@ private void handleCreateUserWithEmailAndPassword(MethodCall call, Result result
325
324
.addOnCompleteListener (new SignInCompleteListener (result ));
326
325
}
327
326
328
- private void handleFetchSignInMethodsForEmail (MethodCall call , Result result ,
329
- FirebaseAuth firebaseAuth ) {
327
+ private void handleFetchSignInMethodsForEmail (
328
+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
330
329
Map <String , String > arguments = call .arguments ();
331
330
String email = arguments .get ("email" );
332
331
@@ -335,8 +334,8 @@ private void handleFetchSignInMethodsForEmail(MethodCall call, Result result,
335
334
.addOnCompleteListener (new GetSignInMethodsCompleteListener (result ));
336
335
}
337
336
338
- private void handleSendPasswordResetEmail (MethodCall call , Result result ,
339
- FirebaseAuth firebaseAuth ) {
337
+ private void handleSendPasswordResetEmail (
338
+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
340
339
Map <String , String > arguments = call .arguments ();
341
340
String email = arguments .get ("email" );
342
341
@@ -367,8 +366,8 @@ private void handleDelete(MethodCall call, Result result, FirebaseAuth firebaseA
367
366
.addOnCompleteListener (new TaskVoidCompleteListener (result ));
368
367
}
369
368
370
- private void handleSignInWithEmailAndPassword (MethodCall call , Result result ,
371
- FirebaseAuth firebaseAuth ) {
369
+ private void handleSignInWithEmailAndPassword (
370
+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
372
371
Map <String , String > arguments = call .arguments ();
373
372
String email = arguments .get ("email" );
374
373
String password = arguments .get ("password" );
@@ -389,8 +388,8 @@ private void handleSignInWithGoogle(MethodCall call, Result result, FirebaseAuth
389
388
.addOnCompleteListener (new SignInCompleteListener (result ));
390
389
}
391
390
392
- private void handleLinkWithGoogleCredential (MethodCall call , Result result ,
393
- FirebaseAuth firebaseAuth ) {
391
+ private void handleLinkWithGoogleCredential (
392
+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
394
393
Map <String , String > arguments = call .arguments ();
395
394
String idToken = arguments .get ("idToken" );
396
395
String accessToken = arguments .get ("accessToken" );
@@ -402,8 +401,8 @@ private void handleLinkWithGoogleCredential(MethodCall call, Result result,
402
401
.addOnCompleteListener (new SignInCompleteListener (result ));
403
402
}
404
403
405
- private void handleLinkWithFacebookCredential (MethodCall call , Result result ,
406
- FirebaseAuth firebaseAuth ) {
404
+ private void handleLinkWithFacebookCredential (
405
+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
407
406
Map <String , String > arguments = call .arguments ();
408
407
String accessToken = arguments .get ("accessToken" );
409
408
@@ -434,8 +433,8 @@ private void handleSignInWithTwitter(MethodCall call, Result result, FirebaseAut
434
433
.addOnCompleteListener (new SignInCompleteListener (result ));
435
434
}
436
435
437
- private void handleLinkWithTwitterCredential (MethodCall call , Result result ,
438
- FirebaseAuth firebaseAuth ) {
436
+ private void handleLinkWithTwitterCredential (
437
+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
439
438
String authToken = call .argument ("authToken" );
440
439
String authTokenSecret = call .argument ("authTokenSecret" );
441
440
@@ -455,8 +454,8 @@ private void handleSignInWithGithub(MethodCall call, Result result, FirebaseAuth
455
454
.addOnCompleteListener (new SignInCompleteListener (result ));
456
455
}
457
456
458
- private void handleLinkWithGithubCredential (MethodCall call , Result result ,
459
- FirebaseAuth firebaseAuth ) {
457
+ private void handleLinkWithGithubCredential (
458
+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
460
459
String token = call .argument ("token" );
461
460
462
461
AuthCredential credential = GithubAuthProvider .getCredential (token );
@@ -476,8 +475,8 @@ private void handleUnlinkCredential(MethodCall call, Result result, FirebaseAuth
476
475
.addOnCompleteListener (new SignInCompleteListener (result ));
477
476
}
478
477
479
- private void handleSignInWithCustomToken (MethodCall call , final Result result ,
480
- FirebaseAuth firebaseAuth ) {
478
+ private void handleSignInWithCustomToken (
479
+ MethodCall call , final Result result , FirebaseAuth firebaseAuth ) {
481
480
Map <String , String > arguments = call .arguments ();
482
481
String token = arguments .get ("token" );
483
482
@@ -570,8 +569,8 @@ public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {
570
569
result .success (handle );
571
570
}
572
571
573
- private void handleStopListeningAuthState (MethodCall call , Result result ,
574
- FirebaseAuth firebaseAuth ) {
572
+ private void handleStopListeningAuthState (
573
+ MethodCall call , Result result , FirebaseAuth firebaseAuth ) {
575
574
Map <String , Integer > arguments = call .arguments ();
576
575
Integer id = arguments .get ("id" );
577
576
0 commit comments