Я пытаюсь начать с FirestorePagingAdapter
и FirestorePagingOptions
и я внимательно прочитал документацию, как здесь
https://github.com/firebase/FirebaseUI-Android/tree/master/firestore
и применил его шаг за шагом
1-
implementation 'android.arch.paging:runtime:1.x.x'
2- Query baseQuery = mItemsCollection.orderBy("value", Query.Direction.ASCENDING);
Но когда я пытаюсь добавить FirestorePagingOptions
, он появляется с помощью кода красной строки , что означает, что он не импортирован или не реализован должным образом, и я не использую какие-либо модели архитектуры Android. После долгих поисков я ничего не нашел про это
Итак, как правильно начать с FirestorePagingAdapter
? что я должен реализовать для начала?
это моя реализация
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.google.firebase:firebase-core:16.0.3'
//google sign inj
implementation 'com.google.android.gms:play-services-auth:15.0.0'
implementation 'com.google.firebase:firebase-firestore:15.0.0'
implementation 'com.google.firebase:firebase-auth:15.0.0'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.google.firebase:firebase-messaging:17.3.0'
implementation 'com.google.firebase:firebase-storage:15.0.0'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.firebaseui:firebase-ui-firestore:3.3.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
//FIREBASE UI LIBRARY
implementation 'android.arch.lifecycle:runtime:1.1.1'
implementation 'android.arch.lifecycle:extensions:1.1.1'
implementation 'android.arch.paging:runtime:1.0.1'
implementation 'android.arch.core:runtime:1.1.1'
implementation 'android.arch.core:common:1.1.1'
implementation 'android.arch.lifecycle:common-java8:1.1.1'