修改pods

This commit is contained in:
2025-09-20 17:13:38 +08:00
parent 7787b3ee30
commit 28ff2b0264
5251 changed files with 345029 additions and 285168 deletions

View File

@@ -20,7 +20,7 @@
@_exported import FirebaseFirestoreInternal
#endif // SWIFT_PACKAGE
@_implementationOnly import FirebaseCoreExtension
internal import FirebaseCoreExtension
import FirebaseSharedSwift
extension CodingUserInfoKey {
@@ -113,7 +113,7 @@ public struct DocumentID<Value: DocumentIDWrappable & Codable>:
private var value: Value? = nil
public init(wrappedValue value: Value?) {
if let value = value {
if let value {
logIgnoredValueWarning(value: value)
}
self.value = value
@@ -121,18 +121,13 @@ public struct DocumentID<Value: DocumentIDWrappable & Codable>:
public var wrappedValue: Value? {
get { value }
set {
if let someNewValue = newValue {
logIgnoredValueWarning(value: someNewValue)
}
value = newValue
}
set { value = newValue }
}
private func logIgnoredValueWarning(value: Value) {
FirebaseLogger.log(
level: .warning,
service: "[FirebaseFirestoreSwift]",
service: "[FirebaseFirestore]",
code: "I-FST000002",
message: """
Attempting to initialize or set a @DocumentID property with a non-nil \
@@ -146,7 +141,7 @@ public struct DocumentID<Value: DocumentIDWrappable & Codable>:
extension DocumentID: DocumentIDProtocol {
init(from documentReference: DocumentReference?) throws {
if let documentReference = documentReference {
if let documentReference {
value = try Value.wrap(documentReference)
} else {
value = nil