Skip to content

Commit 2ca7a0e

Browse files
committed
Added missing imports
1 parent 515a858 commit 2ca7a0e

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

firebase-common/src/iosMain/kotlin/dev/teamhub/firebase/_decoders.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import kotlinx.serialization.SerialDescriptor
66
import kotlinx.serialization.StructureKind
77

88
actual fun FirebaseDecoder.structureDecoder(desc: SerialDescriptor, vararg typeParams: KSerializer<*>): CompositeDecoder = when(desc.kind as StructureKind) {
9-
StructureKind.CLASS -> (value as Map<*, *>).let { map ->
9+
StructureKind.CLASS, StructureKind.OBJECT -> (value as Map<*, *>).let { map ->
1010
FirebaseClassDecoder(map.size, { map.containsKey(it) }) { desc, index -> map[desc.getElementName(index)] }
1111
}
1212
StructureKind.LIST -> (value as List<*>).let {

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ import dev.teamhub.firebase.database.ChildEvent.Type
1111
import dev.teamhub.firebase.decode
1212
import kotlinx.coroutines.channels.awaitClose
1313
import kotlinx.coroutines.coroutineScope
14+
import kotlinx.coroutines.flow.Flow
1415
import kotlinx.coroutines.flow.callbackFlow
16+
import kotlinx.coroutines.flow.filter
17+
import kotlinx.coroutines.flow.produceIn
1518
import kotlinx.coroutines.selects.select
1619
import kotlinx.coroutines.tasks.asDeferred
1720
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
@@ -11,6 +11,8 @@ import kotlinx.coroutines.CompletableDeferred
1111
import kotlinx.coroutines.channels.awaitClose
1212
import kotlinx.coroutines.coroutineScope
1313
import kotlinx.coroutines.flow.callbackFlow
14+
import kotlinx.coroutines.flow.filter
15+
import kotlinx.coroutines.flow.produceIn
1416
import kotlinx.coroutines.selects.select
1517
import kotlinx.serialization.DeserializationStrategy
1618
import kotlinx.serialization.SerializationStrategy

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
@@ -1,6 +1,7 @@
11
package dev.teamhub.firebase.firestore
22

33
import cocoapods.FirebaseFirestore.*
4+
import dev.teamhub.firebase.*
45
import kotlinx.cinterop.*
56
import kotlinx.coroutines.CompletableDeferred
67
import kotlinx.coroutines.channels.awaitClose

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
kotlin.code.style=official
22
kotlin.js.experimental.generateKotlinExternals=true
3+
org.gradle.daemon=true
4+
org.gradle.jvmargs=-Xmx2560m

0 commit comments

Comments
 (0)