Skip to content

Commit a1e5040

Browse files
committed
add missing imports
1 parent 0127524 commit a1e5040

File tree

4 files changed

+8
-3
lines changed
  • firebase-database/src
    • androidMain/kotlin/dev/teamhub/firebase/database
    • iosMain/kotlin/dev/teamhub/firebase/database
  • firebase-firestore/src

4 files changed

+8
-3
lines changed

firebase-database/src/androidMain/kotlin/dev/teamhub/firebase/database/database.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import dev.teamhub.firebase.decode
1616
import kotlinx.coroutines.channels.awaitClose
1717
import kotlinx.coroutines.coroutineScope
1818
import kotlinx.coroutines.flow.callbackFlow
19+
import kotlinx.coroutines.flow.filter
20+
import kotlinx.coroutines.flow.produceIn
1921
import kotlinx.coroutines.selects.select
2022
import kotlinx.coroutines.tasks.asDeferred
2123
import kotlinx.coroutines.tasks.await

firebase-database/src/iosMain/kotlin/dev/teamhub/firebase/database/database.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import kotlinx.coroutines.CompletableDeferred
1515
import kotlinx.coroutines.channels.awaitClose
1616
import kotlinx.coroutines.coroutineScope
1717
import kotlinx.coroutines.flow.callbackFlow
18+
import kotlinx.coroutines.flow.filter
19+
import kotlinx.coroutines.flow.produceIn
1820
import kotlinx.coroutines.selects.select
1921
import kotlinx.serialization.DeserializationStrategy
2022
import kotlinx.serialization.SerializationStrategy

firebase-firestore/src/androidMain/kotlin/dev/teamhub/firebase/firestore/firestore.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,16 @@ actual class WriteBatch(val android: com.google.firebase.firestore.WriteBatch) {
113113

114114
actual 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

firebase-firestore/src/iosMain/kotlin/dev/teamhub/firebase/firestore/firestore.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package dev.teamhub.firebase.firestore
66

77
import cocoapods.FirebaseFirestore.*
8+
import dev.teamhub.firebase.*
89
import kotlinx.cinterop.*
910
import kotlinx.coroutines.CompletableDeferred
1011
import kotlinx.coroutines.channels.awaitClose

0 commit comments

Comments
 (0)