File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed
androidMain/kotlin/dev/teamhub/firebase/database
iosMain/kotlin/dev/teamhub/firebase/database
androidMain/kotlin/dev/teamhub/firebase/firestore
iosMain/kotlin/dev/teamhub/firebase/firestore Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ import dev.teamhub.firebase.decode
1616import kotlinx.coroutines.channels.awaitClose
1717import kotlinx.coroutines.coroutineScope
1818import kotlinx.coroutines.flow.callbackFlow
19+ import kotlinx.coroutines.flow.filter
20+ import kotlinx.coroutines.flow.produceIn
1921import kotlinx.coroutines.selects.select
2022import kotlinx.coroutines.tasks.asDeferred
2123import kotlinx.coroutines.tasks.await
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ import kotlinx.coroutines.CompletableDeferred
1515import kotlinx.coroutines.channels.awaitClose
1616import kotlinx.coroutines.coroutineScope
1717import kotlinx.coroutines.flow.callbackFlow
18+ import kotlinx.coroutines.flow.filter
19+ import kotlinx.coroutines.flow.produceIn
1820import kotlinx.coroutines.selects.select
1921import kotlinx.serialization.DeserializationStrategy
2022import kotlinx.serialization.SerializationStrategy
Original file line number Diff line number Diff line change @@ -113,16 +113,16 @@ actual class WriteBatch(val android: com.google.firebase.firestore.WriteBatch) {
113113
114114actual class Transaction (val android : com.google.firebase.firestore.Transaction ) {
115115
116- actual inline fun set (documentRef : DocumentReference , data : Any , merge : Boolean ) = when (merge) {
116+ actual fun set (documentRef : DocumentReference , data : Any , merge : Boolean ) = when (merge) {
117117 true -> android.set(documentRef.android, encode(data)!! , SetOptions .merge())
118118 false -> android.set(documentRef.android, encode(data)!! )
119119 }.let { this }
120120
121- actual inline fun set (documentRef : DocumentReference , data : Any , vararg mergeFields : String ) =
121+ actual fun set (documentRef : DocumentReference , data : Any , vararg mergeFields : String ) =
122122 android.set(documentRef.android, encode(data)!! , SetOptions .mergeFields(* mergeFields))
123123 .let { this }
124124
125- actual inline fun set (documentRef : DocumentReference , data : Any , vararg mergeFieldsPaths : FieldPath ) =
125+ actual fun set (documentRef : DocumentReference , data : Any , vararg mergeFieldsPaths : FieldPath ) =
126126 android.set(documentRef.android, encode(data)!! , SetOptions .mergeFieldPaths(mergeFieldsPaths.toList()))
127127 .let { this }
128128
Original file line number Diff line number Diff line change 55package dev.teamhub.firebase.firestore
66
77import cocoapods.FirebaseFirestore.*
8+ import dev.teamhub.firebase.*
89import kotlinx.cinterop.*
910import kotlinx.coroutines.CompletableDeferred
1011import kotlinx.coroutines.channels.awaitClose
You can’t perform that action at this time.
0 commit comments