Skip to content
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

[Auth] Can't set GithubLoginButtonID to AuthMethodPickerLayout #1783

Closed
le-kamba opened this issue May 16, 2020 · 1 comment
Closed

[Auth] Can't set GithubLoginButtonID to AuthMethodPickerLayout #1783

le-kamba opened this issue May 16, 2020 · 1 comment
Milestone

Comments

@le-kamba
Copy link

le-kamba commented May 16, 2020

Welcome to FirebaseUI and thanks for submitting an issue!

Please take a look at open issues, as well as resolved issues, to see if your issue is either already being addressed, or has been solved by someone else.

If not, please feel free to fill in the following info so we can help faster!

Step 1: Are you in the right place?

  • For issues or feature requests related to the code in this repository file a GitHub issue.
  • For general technical questions, post a question on StackOverflow tagged appropriately.
  • For general Firebase discussion, use the firebase-talk google group
  • For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel

Step 2: Describe your environment

  • Android device: any
  • Android OS version: any
  • Google Play Services version: classpath 'com.google.gms:google-services:4.3.3'
  • Firebase/Play Services SDK version: implementation 'com.google.firebase:firebase-core:17.4.1'
  • FirebaseUI version: implementation 'com.firebaseui:firebase-ui-auth:6.2.1'

Step 3: Describe the problem:

Steps to reproduce:

  1. import com.firebase.ui.auth.AuthMethodPickerLayout
  2. create AuthMethodPickerLayout with AuthMethodPickerLayout.Builder
  3. use setGithubButtonId to set button id from custom layout file.

Observed Results:

  • What happened? This could be a description, logcat output, etc.

There is a merged PR at #1583, so I expected to using setGithubButtonId , but cannot compile with Unresolved reference error.

I checked source code here,
https://github.com/firebase/FirebaseUI-Android/blob/master/auth/src/main/java/com/firebase/ui/auth/AuthMethodPickerLayout.java

and here,
https://github.com/firebase/FirebaseUI-Android/blob/version-6.2.1/auth/src/main/java/com/firebase/ui/auth/AuthMethodPickerLayout.java

I can't find setGithubButtonId method.

Is that removed for any reason?

Expected Results:

  • What did you expect to happen?

No compile error and build completes.

Relevant Code:

          val authLayout = AuthMethodPickerLayout.Builder(R.layout.layout_auth)
              .setEmailButtonId(R.id.email_button)
              .setFacebookButtonId(R.id.facebook_button)
              .setTwitterButtonId(R.id.twitter_button)
              .setGoogleButtonId(R.id.google_button)
              .setGithubButtonId(R.id.github_button)
              .build()
@samtstern
Copy link
Contributor

This issue is fixed and released in version 6.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants