The first step to using FirebaseUI is setting up dependencies then configuring identity providers.
As a pre-requisite, ensure your application is configured for use with Firebase: see the Firebase documentation. Then, add the FirebaseUI auth library dependency. If your project uses Gradle, add:
dependencies {
// ...
compile 'com.firebaseui:firebase-ui-auth:0.5.3'
}If instead your project uses Maven, add:
<dependency>
<groupId>com.firebaseui</groupId>
<artifactId>firebase-ui-auth</artifactId>
<version>0.5.3</version>
</dependency>In order to use either Google or Facebook accounts with your app, ensure that these authentication methods are first configured in the Firebase console.
FirebaseUI client-side configuration for Google sign-in is then provided
automatically by the
google-services gradle plugin.
If support for Facebook Sign-in is also required, define the
resource string facebook_application_id to match the application ID in
the Facebook developer dashboard:
<resources>
<!-- ... -->
<string name="facebook_application_id" translatable="false">APPID</string>
</resources>Check out the basic usage docs for next steps!