FirebaseUI-Android icon indicating copy to clipboard operation
FirebaseUI-Android copied to clipboard

AndroidX/Jetpack not working correctly with FirebaseUI

Open snotyak opened this issue 8 years ago • 9 comments

  • Android device: Pixel 2 XL
  • Android OS version: P Preview 3
  • FirebaseUI version: 4.0.1

Step 3: Describe the problem:

FirebaseUI isn't using the latest ConstraintLayout. See https://stackoverflow.com/questions/50774110/androidx-error-inflating-view

Steps to reproduce:

  1. Use firebase-ui 4.0.1
  2. Use jetpack + androidx
  3. Use
startActivityForResult(
        AuthUI.getInstance().build (),
        RC_SIGN_IN)
  1. Verify that you get Error inflating class androidx.constraintlayout.widget.ConstraintLayout
  2. For some reason this library is using androidx.constraintlayout.widget.ConstraintLayout but should be using androidx.constraintlayout.ConstraintLayout

Observed Results:

android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class androidx.constraintlayout.widget.ConstraintLayout
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2902)

Expected Results:

  • I expect the app to not crash

Relevant Code:

startActivityForResult(
        AuthUI.getInstance()
                .createSignInIntentBuilder()
                .setAvailableProviders(listOf(
                        AuthUI.IdpConfig.EmailBuilder().build(),
                        AuthUI.IdpConfig.GoogleBuilder().build()))
                .build(),
        RC_SIGN_IN)

snotyak avatar Jun 11 '18 00:06 snotyak

@snotyak duplicate of #1346

krisu7 avatar Jun 11 '18 08:06 krisu7

Supporting AndroidX may be a problem since it is in alpha and not everyone is ready to incorporate it into their projects unfortunately. Refactoring tool is only in AS canary too, i think.

krisu7 avatar Jun 11 '18 08:06 krisu7

@krisu7 thanks for chiming in! Yes you're right on all counts. We can't adopt AndroidX yet because the libraries/IDE/jetifier/etc are not yet stable.

samtstern avatar Jun 11 '18 15:06 samtstern

And what about now @krisu7 @samtstern ? It's almost been a year and AndroidX is not going away, so maybe time to get some further compatibility?

elmariocarlos avatar May 28 '19 15:05 elmariocarlos

@elmariocarlos thanks for asking! We have decided to this as soon as the Firebase Android SDKs migrate to depend on AndroidX. The good news is that should be happening in not too long!

samtstern avatar May 28 '19 16:05 samtstern

Hi, saw Flutter 1.7 moving to AndroidX full compat; so now it would be Firebase Android SDKs turn, but is this something to be looked on here or where should we go consult progress?

elmariocarlos avatar Jul 10 '19 05:07 elmariocarlos

The Firebase Android SDK moved to AndroidX a few weeks ago. Moving FirebaseUI is next!

On Tue, Jul 9, 2019, 10:00 PM Mario González [email protected] wrote:

Hi, saw Flutter 1.7 moving to AndroidX full compat; so now it would be Firebase Android SDKs turn, but is this something to be looked on here or where should we go consult progress?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/firebase/FirebaseUI-Android/issues/1348?email_source=notifications&email_token=ACATB2RVYUWKF6RLMM6JHE3P6VUGZA5CNFSM4FEHYWB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZSJLLI#issuecomment-509908397, or mute the thread https://github.com/notifications/unsubscribe-auth/ACATB2QF5NBAFKLYU7YSXNTP6VUGZANCNFSM4FEHYWBQ .

samtstern avatar Jul 10 '19 05:07 samtstern

Thanks for the update @samtstern, looking forward to this =)

elmariocarlos avatar Jul 10 '19 05:07 elmariocarlos

Any update to a target time for the implementation of Androidx for FirebaseUI?

Who would be working on an additional flutter implementation ot the UI components of FirebaseAuthUI ?

Thanks

ErstwhileIII avatar Aug 18 '19 14:08 ErstwhileIII