Skip to content

Commit 7887fe5

Browse files
committed
simplify cocoapods
1 parent 2dfbe50 commit 7887fe5

File tree

4 files changed

+11
-68
lines changed

4 files changed

+11
-68
lines changed

FirebaseCombineSwift.podspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ for internal testing only. It should not be published.
5959

6060
s.pod_target_xcconfig = {
6161
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
62+
'SWIFT_OBJC_INTEROP_MODE' => 'objcxx',
6263
}
6364

6465
s.test_spec 'unit' do |unit_tests|
@@ -81,7 +82,8 @@ for internal testing only. It should not be published.
8182
unit_tests.exclude_files = 'FirebaseCombineSwift/Tests/Unit/**/*Template.swift'
8283
unit_tests.requires_app_host = true
8384
unit_tests.pod_target_xcconfig = {
84-
'SWIFT_OBJC_BRIDGING_HEADER' => '$(PODS_TARGET_SRCROOT)/FirebaseCombineSwift/Tests/Unit/FirebaseCombine-unit-Bridging-Header.h'
85+
'SWIFT_OBJC_BRIDGING_HEADER' => '$(PODS_TARGET_SRCROOT)/FirebaseCombineSwift/Tests/Unit/FirebaseCombine-unit-Bridging-Header.h',
86+
'SWIFT_OBJC_INTEROP_MODE' => 'objcxx',
8587
}
8688
unit_tests.dependency 'OCMock'
8789
unit_tests.dependency 'FirebaseAuthTestingSupport'

FirebaseFirestoreCpp.podspec

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

FirebaseFirestoreInternal.podspec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ Google Cloud Firestore is a NoSQL document database built for automatic scaling,
2828
# Header files that constitute the interface to this module. Only Objective-C
2929
# headers belong here, since FirebaseFirestore is primarily an Objective-C
3030
# framework.
31-
s.public_header_files = 'Firestore/Source/Public/FirebaseFirestore/*.h'
31+
s.public_header_files = [
32+
'Firestore/Source/Public/FirebaseFirestore/*.h',
33+
'Firestore/core/swift/include/*.h'
34+
]
3235

3336
# source_files contains most of the header and source files for the project.
3437
# This includes files named in `public_header_files`.
@@ -52,6 +55,7 @@ Google Cloud Firestore is a NoSQL document database built for automatic scaling,
5255
'Firestore/core/include/**/*.{cc,mm}',
5356
'Firestore/core/src/**/*.{cc,mm}',
5457
'FirebaseAuth/Interop/**/*.h',
58+
'Firestore/core/swift/**/*.{cc,h}',
5559
]
5660

5761
# Internal headers that aren't necessarily globally unique. Most C++ internal

Firestore/Swift/Source/SwiftAPI/SwiftCppAPI.swift

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

17-
import FirebaseFirestoreCpp
17+
#if SWIFT_PACKAGE
18+
@_exported import FirebaseFirestoreCpp
19+
#endif // SWIFT_PACKAGE
1820

1921
public class SwiftCppWrapper {
2022
public init(_ value: String) {

0 commit comments

Comments
 (0)