forked from GitLiveApp/firebase-kotlin-sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'track-master-2.1' into snapshot
- Loading branch information
Showing
10 changed files
with
67 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...estore/src/commonMain/kotlin/dev/gitlive/firebase/firestore/internal/FieldValueBuilder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package dev.gitlive.firebase.firestore.internal | ||
|
||
import kotlin.experimental.ExperimentalObjCName | ||
import kotlin.native.ObjCName | ||
|
||
@OptIn(ExperimentalObjCName::class) | ||
@ObjCName("FieldValueBuilderImpl") | ||
internal class FieldValueBuilder : dev.gitlive.firebase.firestore.FieldValueBuilder() { | ||
|
||
internal val fieldValues: MutableList<Any> = mutableListOf() | ||
|
||
override fun addEncoded(encodedValue: Any) { | ||
fieldValues += encodedValue | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...e/src/commonMain/kotlin/dev/gitlive/firebase/firestore/internal/FieldsAndValuesBuilder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package dev.gitlive.firebase.firestore.internal | ||
|
||
import dev.gitlive.firebase.firestore.FieldPath | ||
import dev.gitlive.firebase.firestore.FieldsAndValuesBuilder | ||
import kotlin.experimental.ExperimentalObjCName | ||
import kotlin.native.ObjCName | ||
|
||
@OptIn(ExperimentalObjCName::class) | ||
@ObjCName("FieldsAndValuesBuilderImpl") | ||
internal class FieldsAndValuesBuilder : FieldsAndValuesBuilder() { | ||
|
||
internal val fieldAndValues: MutableList<FieldAndValue> = mutableListOf() | ||
|
||
override fun String.toEncoded(encodedValue: Any?) { | ||
fieldAndValues += FieldAndValue.WithStringField(this, encodedValue) | ||
} | ||
|
||
override fun FieldPath.toEncoded(encodedValue: Any?) { | ||
fieldAndValues += FieldAndValue.WithFieldPath(this, encodedValue) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters