Skip to content

Commit 473e9ba

Browse files
committed
Make iOS emulator track settings correctly
1 parent 93d88f4 commit 473e9ba

File tree

1 file changed

+3
-2
lines changed
  • firebase-firestore/src/iosMain/kotlin/dev/gitlive/firebase/firestore

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ actual class FirebaseFirestore(val ios: FIRFirestore) {
6868

6969
actual fun useEmulator(host: String, port: Int) {
7070
ios.useEmulatorWithHost(host, port.toLong())
71-
ios.settings = ios.settings.apply {
72-
cacheSettings = FIRMemoryCacheSettings()
71+
settings = firestoreSettings(settings) {
72+
this.host = "$host:$port"
73+
cacheSettings = memoryCacheSettings { }
7374
sslEnabled = false
7475
}
7576
}

0 commit comments

Comments
 (0)