@@ -18,15 +18,15 @@ import androidx.annotation.Keep
18
18
import com.google.firebase.FirebaseApp
19
19
import com.google.firebase.components.Component
20
20
import com.google.firebase.components.ComponentRegistrar
21
+ import com.google.firebase.firestore.DocumentReference
21
22
import com.google.firebase.firestore.DocumentSnapshot
22
23
import com.google.firebase.firestore.FieldPath
23
24
import com.google.firebase.firestore.FirebaseFirestore
24
25
import com.google.firebase.firestore.FirebaseFirestoreSettings
26
+ import com.google.firebase.firestore.MetadataChanges
27
+ import com.google.firebase.firestore.Query
25
28
import com.google.firebase.firestore.QueryDocumentSnapshot
26
29
import com.google.firebase.firestore.QuerySnapshot
27
- import com.google.firebase.firestore.DocumentReference
28
- import com.google.firebase.firestore.Query
29
- import com.google.firebase.firestore.MetadataChanges
30
30
import com.google.firebase.firestore.util.Executors.BACKGROUND_EXECUTOR
31
31
import com.google.firebase.ktx.Firebase
32
32
import com.google.firebase.platforminfo.LibraryVersionComponent
@@ -181,7 +181,7 @@ class FirebaseFirestoreKtxRegistrar : ComponentRegistrar {
181
181
* @param metadataChanges controls metadata-only changes. Default: [MetadataChanges.EXCLUDE]
182
182
*/
183
183
fun DocumentReference.snapshots (
184
- metadataChanges : MetadataChanges = MetadataChanges .EXCLUDE ,
184
+ metadataChanges : MetadataChanges = MetadataChanges .EXCLUDE
185
185
): Flow <DocumentSnapshot > {
186
186
return callbackFlow {
187
187
val registration = addSnapshotListener(BACKGROUND_EXECUTOR , metadataChanges) { snapshot, exception ->
@@ -204,7 +204,7 @@ fun DocumentReference.snapshots(
204
204
* @param metadataChanges controls metadata-only changes. Default: [MetadataChanges.EXCLUDE]
205
205
*/
206
206
fun Query.snapshots (
207
- metadataChanges : MetadataChanges = MetadataChanges .EXCLUDE ,
207
+ metadataChanges : MetadataChanges = MetadataChanges .EXCLUDE
208
208
): Flow <QuerySnapshot > {
209
209
return callbackFlow {
210
210
val registration = addSnapshotListener(BACKGROUND_EXECUTOR , metadataChanges) { snapshot, exception ->
0 commit comments