-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add supported providers annotation #700
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
Add supported providers annotation #700
Conversation
…ted-providers-annotation # Conflicts: # auth/src/main/java/com/firebase/ui/auth/provider/FacebookProvider.java # auth/src/main/java/com/firebase/ui/auth/ui/idp/AuthMethodPickerActivity.java # auth/src/main/java/com/firebase/ui/auth/ui/idp/CredentialSignInHandler.java
…ted-providers-annotation # Conflicts: # auth/src/main/java/com/firebase/ui/auth/IdpResponse.java # auth/src/main/java/com/firebase/ui/auth/provider/FacebookProvider.java # auth/src/main/java/com/firebase/ui/auth/provider/GoogleProvider.java # auth/src/main/java/com/firebase/ui/auth/provider/TwitterProvider.java # auth/src/main/java/com/firebase/ui/auth/ui/User.java # auth/src/main/java/com/firebase/ui/auth/ui/accountlink/WelcomeBackPasswordPrompt.java # auth/src/main/java/com/firebase/ui/auth/ui/email/RegisterEmailActivity.java # auth/src/main/java/com/firebase/ui/auth/ui/email/RegisterEmailFragment.java # auth/src/main/java/com/firebase/ui/auth/util/signincontainer/SignInDelegate.java # auth/src/test/java/com/firebase/ui/auth/testhelpers/FakeAuthResult.java # auth/src/test/java/com/firebase/ui/auth/ui/email/RegisterEmailActivityTest.java # auth/src/test/java/com/firebase/ui/auth/ui/email/WelcomeBackPasswordPromptTest.java # auth/src/test/java/com/firebase/ui/auth/ui/idp/AuthMethodPickerActivityTest.java # auth/src/test/java/com/firebase/ui/auth/ui/idp/CredentialSignInHandlerTest.java
…ted-providers-annotation # Conflicts: # auth/src/main/java/com/firebase/ui/auth/ui/idp/CredentialSignInHandler.java
FacebookAuthProvider.PROVIDER_ID, FACEBOOK_PROVIDER, | ||
TwitterAuthProvider.PROVIDER_ID, TWITTER_PROVIDER | ||
}) | ||
public @interface SupportedProvider {} |
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.
Do we want this to be public? I feel like it could be useful, but it also means we have to maintain backwards compatibility...
cleanup(); | ||
} | ||
|
||
public void cleanup() { |
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.
@samtstern What size level of changes do you want me to split into other PRs? I'm happy to move this to another PR. (it was just a small nit Intellij complained about)
…ted-providers-annotation
@samtstern do you want to take a look at this one before 2.0? I think it's a nice improvement to help devs know what they should be passing in for the provider. |
@SUPERCILEX yep I'll add this one to 2.0 milestone |
@samtstern cool! |
Forgot about this one, gonna merge it! |
Awesome possum! Gonna go merge stuff now 😃 |
@samtstern While doing some debugging, I made a typo and passed in a hardcoded string to the
IdpBuilder#setProvider
method that ended in a runtime exception. 😢 I think we can be fancier with our supported providers so this PR add our ownSupportedProvider
annotation. 😎:smile:Here's an example error:

PS: sorry for the yucky commit history, I built it off another PR.