-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Puf kill switches #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This gets rid of most of the switch-case and repeated if-then-else constructs.
And move the need for google-services.json upward, to make it more prominent.
Firebase's JWT is still stored until it expires, but the Google token isn't
The name made no sense after we added PASSWORD to it.
This way we can invoke it from a loop in FirebaseLoginDialog. All existing implementations are now (implicit) overrides of the empty method in the base class.
This removes the need for google-services.json
…without position parameter) Fixes #9
There was a question about it here: #11.
The position parameter is no longer optional, so update the docs to always have it. Screenshots are not updated, so may still use the old signature.
This ensures we only need the Google auth binding in the build.gradle, when we are using Google auth.
import java.lang.reflect.InvocationTargetException; | ||
|
||
public enum AuthProviderType { | ||
GOOGLE ("google", "com.firebase.ui.auth.google.GoogleAuthProvider", R.id.google_button), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we not do just "google.GoogleAuthProvider" and assume the "com.firebase.ui.auth" in the constructor? I feel like that might read better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Overall lgtm - thanks for cleaning up a bit of my mess :) |
…droid into puf-kill-switches
…droid into puf-kill-switches
…droid into puf-kill-switches
a7a54b0
to
5ceaba2
Compare
5ceaba2
to
544fc98
Compare
705c080
to
5e96d68
Compare
Fixes #20. But
also changes #9 to
needing to override both
populdateView()
andparseSnapshot()
.