@@ -253,7 +253,7 @@ The `FirestorePagingAdapter` is built on top of the [Android Paging Support Libr
253
253
Before using the adapter in your application, you must add a dependency on the support library:
254
254
255
255
``` groovy
256
- implementation 'android.arch. paging:runtime:1 .x.x'
256
+ implementation 'androidx. paging:paging- runtime:2 .x.x'
257
257
```
258
258
259
259
First, configure the adapter by building ` FirestorePagingOptions ` . Since the paging adapter
@@ -266,7 +266,7 @@ an adapter that loads a generic `Item`:
266
266
Query baseQuery = mItemsCollection. orderBy(" value" , Query . Direction . ASCENDING );
267
267
268
268
// This configuration comes from the Paging Support Library
269
- // https://developer.android.com/reference/android/arch/ paging/PagedList.Config.html
269
+ // https://developer.android.com/reference/androidx/ paging/PagedList.Config
270
270
PagedList . Config config = new PagedList .Config .Builder ()
271
271
.setEnablePlaceholders(false )
272
272
.setPrefetchDistance(10 )
@@ -394,6 +394,6 @@ FirestorePagingAdapter<Item, ItemViewHolder> adapter =
394
394
395
395
[ firestore-docs ] : https://firebase.google.com/docs/firestore/
396
396
[ firestore-custom-objects ] : https://firebase.google.com/docs/firestore/manage-data/add-data#custom_objects
397
- [ recyclerview ] : https://developer.android.com/reference/android/support/v7/ widget/RecyclerView.html
397
+ [ recyclerview ] : https://developer.android.com/reference/androidx/recyclerview/ widget/RecyclerView
398
398
[ arch-components ] : https://developer.android.com/topic/libraries/architecture/index.html
399
399
[ paging-support ] : https://developer.android.com/topic/libraries/architecture/paging.html
0 commit comments