Dependencies
Compatibility with Firebase / Google Play Services libraries
FirebaseUI libraries have the following transitive dependencies on the Firebase SDK:
firebase-ui-auth
|--- com.google.firebase:firebase-auth
|--- com.google.android.gms:play-services-auth
firebase-ui-database
|--- com.google.firebase:firebase-database
firebase-ui-firestore
|--- com.google.firebase:firebase-firestore
firebase-ui-storage
|--- com.google.firebase:firebase-storage
You can see the specific dependencies associated with each release on the
Releases page
.
Upgrading dependencies
If you would like to use a newer version of one of FirebaseUI's transitive dependencies, such
as Firebase, Play services, or the Android support libraries, you need to add explicit
implementation
declarations in your
build.gradle
for all of FirebaseUI's dependencies at the version
you want to use. Here are some examples listing all of the critical dependencies:
Auth
implementation "com.google.firebase:firebase-auth:$X.Y.Z"
implementation "com.google.android.gms:play-services-auth:$X.Y.Z"
implementation "androidx.lifecycle:lifecycle-extensions:$X.Y.Z"
implementation "androidx.browser:browser:$X.Y.Z"
implementation "androidx.cardview:cardview:$X.Y.Z"
implementation "androidx.constraintlayout:constraintlayout:$X.Y.Z"
implementation "androidx.legacy:legacy-support-v4:$X.Y.Z"
implementation "com.google.android.material:material:$X.Y.Z"
Firestore
implementation "com.google.firebase:firebase-firestore:$X.Y.Z"
implementation "androidx.legacy:legacy-support-v4:$X.Y.Z"
implementation "androidx.recyclerview:recyclerview:$X.Y.Z"
Realtime Database
implementation "com.google.firebase:firebase-database:$X.Y.Z"
implementation "androidx.legacy:legacy-support-v4:$X.Y.Z"
implementation "androidx.recyclerview:recyclerview:$X.Y.Z"
Storage
implementation "com.google.firebase:firebase-storage:$X.Y.Z"
implementation "androidx.legacy:legacy-support-v4:$X.Y.Z"