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
16
16
import kotlinx.coroutines.channels.awaitClose
17
17
import kotlinx.coroutines.coroutineScope
18
18
import kotlinx.coroutines.flow.callbackFlow
19
+ import kotlinx.coroutines.flow.filter
20
+ import kotlinx.coroutines.flow.produceIn
19
21
import kotlinx.coroutines.selects.select
20
22
import kotlinx.coroutines.tasks.asDeferred
21
23
import kotlinx.coroutines.tasks.await
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ import kotlinx.coroutines.CompletableDeferred
15
15
import kotlinx.coroutines.channels.awaitClose
16
16
import kotlinx.coroutines.coroutineScope
17
17
import kotlinx.coroutines.flow.callbackFlow
18
+ import kotlinx.coroutines.flow.filter
19
+ import kotlinx.coroutines.flow.produceIn
18
20
import kotlinx.coroutines.selects.select
19
21
import kotlinx.serialization.DeserializationStrategy
20
22
import 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) {
113
113
114
114
actual class Transaction (val android : com.google.firebase.firestore.Transaction ) {
115
115
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) {
117
117
true -> android.set(documentRef.android, encode(data)!! , SetOptions .merge())
118
118
false -> android.set(documentRef.android, encode(data)!! )
119
119
}.let { this }
120
120
121
- actual inline fun set (documentRef : DocumentReference , data : Any , vararg mergeFields : String ) =
121
+ actual fun set (documentRef : DocumentReference , data : Any , vararg mergeFields : String ) =
122
122
android.set(documentRef.android, encode(data)!! , SetOptions .mergeFields(* mergeFields))
123
123
.let { this }
124
124
125
- actual inline fun set (documentRef : DocumentReference , data : Any , vararg mergeFieldsPaths : FieldPath ) =
125
+ actual fun set (documentRef : DocumentReference , data : Any , vararg mergeFieldsPaths : FieldPath ) =
126
126
android.set(documentRef.android, encode(data)!! , SetOptions .mergeFieldPaths(mergeFieldsPaths.toList()))
127
127
.let { this }
128
128
Original file line number Diff line number Diff line change 5
5
package dev.teamhub.firebase.firestore
6
6
7
7
import cocoapods.FirebaseFirestore.*
8
+ import dev.teamhub.firebase.*
8
9
import kotlinx.cinterop.*
9
10
import kotlinx.coroutines.CompletableDeferred
10
11
import kotlinx.coroutines.channels.awaitClose
You can’t perform that action at this time.
0 commit comments