Skip to content

Commit f08115e

Browse files
committed
Update README for Androidx
Change-Id: I1f61650dfa9b2754ff1cf1d96be6cf4f9cb4bd13
1 parent 9655063 commit f08115e

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

README.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -105,45 +105,46 @@ You can see the specific dependencies associated with each release on the
105105
If you would like to use a newer version of one of FirebaseUI's transitive dependencies, such
106106
as Firebase, Play services, or the Android support libraries, you need to add explicit
107107
`implementation` declarations in your `build.gradle` for all of FirebaseUI's dependencies at the version
108-
you want to use. For example if you want to use Play services/Firebase version `FOO` and support
109-
libraries version `BAR` add the following extra lines for each FirebaseUI module you're using:
108+
you want to use. Here are some examples listing all of the critical dependencies:
110109

111110
#### Auth
112111

113112
```groovy
114-
implementation "com.google.firebase:firebase-auth:$FOO"
115-
implementation "com.google.android.gms:play-services-auth:$FOO"
116-
117-
implementation "com.android.support:design:$BAR"
118-
implementation "com.android.support:customtabs:$BAR"
119-
implementation "com.android.support:cardview-v7:$BAR"
113+
implementation "com.google.firebase:firebase-auth:$X.Y.Z"
114+
implementation "com.google.android.gms:play-services-auth:$X.Y.Z"
115+
116+
implementation "android.arch.lifecycle:extensions:$X.Y.Z"
117+
implementation "androidx.browser:browser:$X.Y.Z"
118+
implementation "androidx.cardview:cardview:$X.Y.Z"
119+
implementation "androidx.constraintlayout:constraintlayout:$X.Y.Z"
120+
implementation "androidx.legacy:legacy-support-v4:$X.Y.Z"
121+
implementation "com.google.android.material:material:$X.Y.Z"
120122
```
121123

122124
#### Firestore
123125

124126
```groovy
125-
implementation "com.google.firebase:firebase-firestore:$FOO"
127+
implementation "com.google.firebase:firebase-firestore:$X.Y.Z"
126128
127-
implementation "com.android.support:recyclerview-v7:$BAR"
128-
implementation "com.android.support:support-v4:$BAR"
129+
implementation "androidx.legacy:legacy-support-v4:$X.Y.Z"
130+
implementation "androidx.recyclerview:recyclerview:$X.Y.Z"
129131
```
130132

131133
#### Realtime Database
132134

133135
```groovy
134-
implementation "com.google.firebase:firebase-database:$FOO"
136+
implementation "com.google.firebase:firebase-database:$X.Y.Z"
135137
136-
implementation "com.android.support:recyclerview-v7:$BAR"
137-
implementation "com.android.support:support-v4:$BAR"
138+
implementation "androidx.legacy:legacy-support-v4:$X.Y.Z"
139+
implementation "androidx.recyclerview:recyclerview:$X.Y.Z"
138140
```
139141

140142
#### Storage
141143

142144
```groovy
143-
implementation "com.google.firebase:firebase-storage:$FOO"
145+
implementation "com.google.firebase:firebase-storage:$X.Y.Z"
144146
145-
implementation "com.android.support:appcompat-v7:$BAR"
146-
implementation "com.android.support:palette-v7:$BAR"
147+
implementation "androidx.legacy:legacy-support-v4:$X.Y.Z"
147148
```
148149

149150

@@ -189,7 +190,7 @@ repositories {
189190
Then you can depend on snapshot versions:
190191

191192
```groovy
192-
implementation 'com.firebaseui:firebase-ui-auth:x.y.z-SNAPSHOT'
193+
implementation 'com.firebaseui:firebase-ui-auth:$X.Y.Z-SNAPSHOT'
193194
```
194195

195196
You can see which `SNAPSHOT` builds are avaiable here:

0 commit comments

Comments
 (0)