Skip to content

Commit

Permalink
Update README for Androidx
Browse files Browse the repository at this point in the history
Change-Id: I1f61650dfa9b2754ff1cf1d96be6cf4f9cb4bd13
  • Loading branch information
samtstern committed Sep 12, 2019
1 parent 9655063 commit f08115e
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,45 +105,46 @@ You can see the specific dependencies associated with each release on the
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. For example if you want to use Play services/Firebase version `FOO` and support
libraries version `BAR` add the following extra lines for each FirebaseUI module you're using:
you want to use. Here are some examples listing all of the critical dependencies:

#### Auth

```groovy
implementation "com.google.firebase:firebase-auth:$FOO"
implementation "com.google.android.gms:play-services-auth:$FOO"
implementation "com.android.support:design:$BAR"
implementation "com.android.support:customtabs:$BAR"
implementation "com.android.support:cardview-v7:$BAR"
implementation "com.google.firebase:firebase-auth:$X.Y.Z"
implementation "com.google.android.gms:play-services-auth:$X.Y.Z"
implementation "android.arch.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

```groovy
implementation "com.google.firebase:firebase-firestore:$FOO"
implementation "com.google.firebase:firebase-firestore:$X.Y.Z"
implementation "com.android.support:recyclerview-v7:$BAR"
implementation "com.android.support:support-v4:$BAR"
implementation "androidx.legacy:legacy-support-v4:$X.Y.Z"
implementation "androidx.recyclerview:recyclerview:$X.Y.Z"
```

#### Realtime Database

```groovy
implementation "com.google.firebase:firebase-database:$FOO"
implementation "com.google.firebase:firebase-database:$X.Y.Z"
implementation "com.android.support:recyclerview-v7:$BAR"
implementation "com.android.support:support-v4:$BAR"
implementation "androidx.legacy:legacy-support-v4:$X.Y.Z"
implementation "androidx.recyclerview:recyclerview:$X.Y.Z"
```

#### Storage

```groovy
implementation "com.google.firebase:firebase-storage:$FOO"
implementation "com.google.firebase:firebase-storage:$X.Y.Z"
implementation "com.android.support:appcompat-v7:$BAR"
implementation "com.android.support:palette-v7:$BAR"
implementation "androidx.legacy:legacy-support-v4:$X.Y.Z"
```


Expand Down Expand Up @@ -189,7 +190,7 @@ repositories {
Then you can depend on snapshot versions:

```groovy
implementation 'com.firebaseui:firebase-ui-auth:x.y.z-SNAPSHOT'
implementation 'com.firebaseui:firebase-ui-auth:$X.Y.Z-SNAPSHOT'
```

You can see which `SNAPSHOT` builds are avaiable here:
Expand Down

0 comments on commit f08115e

Please sign in to comment.