修改pods
This commit is contained in:
@@ -14,11 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#if SWIFT_PACKAGE
|
||||
@_exported import FirebaseFirestoreInternalWrapper
|
||||
#else
|
||||
@_exported import FirebaseFirestoreInternal
|
||||
#endif // SWIFT_PACKAGE
|
||||
@_exported import class FirebaseCore.Timestamp
|
||||
|
||||
/// A type that can initialize itself from a Firestore Timestamp, which makes
|
||||
/// it suitable for use with the `@ServerTimestamp` property wrapper.
|
||||
@@ -98,7 +94,7 @@ public struct ServerTimestamp<Value>: Codable
|
||||
|
||||
public func encode(to encoder: Encoder) throws {
|
||||
var container = encoder.singleValueContainer()
|
||||
if let value = value {
|
||||
if let value {
|
||||
try container.encode(Value.unwrap(value))
|
||||
} else {
|
||||
try container.encode(FieldValue.serverTimestamp())
|
||||
@@ -109,3 +105,5 @@ public struct ServerTimestamp<Value>: Codable
|
||||
extension ServerTimestamp: Equatable where Value: Equatable {}
|
||||
|
||||
extension ServerTimestamp: Hashable where Value: Hashable {}
|
||||
|
||||
extension ServerTimestamp: Sendable where Value: Sendable {}
|
||||
|
||||
Reference in New Issue
Block a user