Skip to content

Commit 0c8d143

Browse files
authored
Revert "[Firestore] Consolidate Firestore and FirestoreSwift (#11806)" (#11939)
1 parent 760d449 commit 0c8d143

30 files changed

+136
-264
lines changed

FirebaseFirestore.podspec

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ Google Cloud Firestore is a NoSQL document database built for automatic scaling,
5151
'Firestore/core/include/**/*.{cc,mm}',
5252
'Firestore/core/src/**/*.{cc,mm}',
5353
'FirebaseAuth/Interop/*.h',
54-
'Firestore/Swift/Source/**/*.swift',
5554
]
5655

5756
# Internal headers that aren't necessarily globally unique. Most C++ internal
@@ -90,8 +89,6 @@ Google Cloud Firestore is a NoSQL document database built for automatic scaling,
9089

9190
s.dependency 'FirebaseAppCheckInterop', '~> 10.17'
9291
s.dependency 'FirebaseCore', '~> 10.0'
93-
s.dependency 'FirebaseCoreExtension', '~> 10.0'
94-
s.dependency 'FirebaseSharedSwift', '~> 10.0'
9592

9693
abseil_version = '~> 1.20220623.0'
9794
s.dependency 'abseil/algorithm', abseil_version
@@ -114,7 +111,6 @@ Google Cloud Firestore is a NoSQL document database built for automatic scaling,
114111
s.library = 'c++'
115112
s.pod_target_xcconfig = {
116113
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++14',
117-
'CLANG_CXX_LIBRARY' => 'libc++',
118114
'GCC_C_LANGUAGE_STANDARD' => 'c99',
119115
'GCC_PREPROCESSOR_DEFINITIONS' =>
120116
"FIRFirestore_VERSION=#{s.version} " +

FirebaseFirestoreSwift.podspec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ Google Cloud Firestore is a NoSQL document database built for automatic scaling,
3131

3232
s.requires_arc = true
3333
s.source_files = [
34-
'FirebaseFirestoreSwift/Sources/FirebaseFirestoreSwift.swift'
34+
'Firestore/Swift/Source/**/*.swift',
3535
]
3636

37-
s.dependency 'FirebaseFirestore', '~> 10.17'
37+
s.dependency 'FirebaseCore', '~> 10.0'
38+
s.dependency 'FirebaseCoreExtension', '~> 10.0'
39+
s.dependency 'FirebaseFirestore', '~> 10.0'
40+
s.dependency 'FirebaseSharedSwift', '~> 10.0'
3841

3942
end

FirebaseFirestoreSwift/Sources/FirebaseFirestoreSwift.swift

Lines changed: 0 additions & 30 deletions
This file was deleted.

Firestore/CHANGELOG.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Unreleased
2-
- [feature] The `FirebaseFirestore` module now contains Firebase Firestore's
3-
Swift-only APIs that were previously only available via the
4-
`FirebaseFirestoreSwift` extension SDK. See the
5-
`FirebaseFirestoreSwift` release note from this release for more details.
6-
71
# 10.16.0
82
- [fixed] Fixed an issue where Firestore's binary SwiftPM distribution would
93
not link properly when building a target for testing. This issue affected

Firestore/Swift/CHANGELOG.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
# Unreleased
2-
- [deprecated] All of the public API from `FirebaseFirestoreSwift` can now
3-
be accessed through the `FirebaseFirestore` module. Therefore,
4-
`FirebaseFirestoreSwift` has been deprecated, and will be removed in a
5-
future release. See https://firebase.google.com/docs/ios/swift-migration for
6-
migration instructions.
7-
81
# 10.12.0
92
- [added] Added support animations on the `@FirestoreQuery` property wrapper.
103

Firestore/Swift/Source/AsyncAwait/CollectionReference+AsyncAwait.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
#if SWIFT_PACKAGE
18-
@_exported import FirebaseFirestoreInternal
19-
#endif // SWIFT_PACKAGE
17+
import FirebaseFirestore
2018
import Foundation
2119

2220
#if compiler(>=5.5.2) && canImport(_Concurrency)

Firestore/Swift/Source/AsyncAwait/Firestore+AsyncAwait.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
#if SWIFT_PACKAGE
18-
@_exported import FirebaseFirestoreInternal
19-
#endif // SWIFT_PACKAGE
17+
import FirebaseFirestore
2018
import Foundation
2119

2220
#if compiler(>=5.5.2) && canImport(_Concurrency)

Firestore/Swift/Source/Codable/CodablePassThroughTypes.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616

1717
import Foundation
1818
import FirebaseSharedSwift
19-
#if SWIFT_PACKAGE
20-
@_exported import FirebaseFirestoreInternal
21-
#endif // SWIFT_PACKAGE
19+
import FirebaseFirestore
2220

2321
internal struct FirestorePassthroughTypes: StructureCodingPassthroughTypeResolver {
2422
static func isPassthroughType<T>(_ t: T) -> Bool {

Firestore/Swift/Source/Codable/CollectionReference+WriteEncodable.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
*/
1616

1717
import Foundation
18-
#if SWIFT_PACKAGE
19-
@_exported import FirebaseFirestoreInternal
20-
#endif // SWIFT_PACKAGE
18+
import FirebaseFirestore
2119

2220
public extension CollectionReference {
2321
/// Encodes an instance of `Encodable` and adds a new document to this collection

Firestore/Swift/Source/Codable/DocumentID.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
#if SWIFT_PACKAGE
18-
@_exported import FirebaseFirestoreInternal
19-
#endif // SWIFT_PACKAGE
17+
import FirebaseFirestore
2018
import FirebaseSharedSwift
2119
@_implementationOnly import FirebaseCoreExtension
2220

0 commit comments

Comments
 (0)