@@ -23,6 +23,24 @@ Google Cloud Firestore is a NoSQL document database built for automatic scaling,
23
23
s . cocoapods_version = '>= 1.4.0'
24
24
s . prefix_header_file = false
25
25
26
+ # Header files that constitute the interface to this module. Only Objective-C
27
+ # headers belong here, since FirebaseFirestore is primarily an Objective-C
28
+ # framework.
29
+ s . public_header_files = 'Firestore/Source/Public/FirebaseFirestore/*.h'
30
+
31
+ # source_files contains most of the header and source files for the project.
32
+ # This includes files named in `public_header_files`.
33
+ #
34
+ # Each header in this list must be globally unique, even within customer
35
+ # projects. This generally means that only Objective-C Headers with a `FIR`
36
+ # or `FST` prefix can be in `source_files`. Non-public C++ headers that have
37
+ # no filename prefix must be in `preserve_paths`. See
38
+ # https://github.com/firebase/firebase-ios-sdk/issues/4035 for more details.
39
+ #
40
+ # Note: headers from FirebaseCore can be in this list because while they're
41
+ # not globally unique, each copy will be the same. It doesn't matter which
42
+ # version wins in the global header map. The benefit of keeping them here is
43
+ # that "quick open" by filename in Xcode will continue to work.
26
44
s . source_files = [
27
45
'FirebaseCore/Sources/Private/*.h' ,
28
46
'Firestore/Source/Public/FirebaseFirestore/*.h' ,
@@ -32,6 +50,13 @@ Google Cloud Firestore is a NoSQL document database built for automatic scaling,
32
50
'Firestore/core/src/**/*.{cc,mm}' ,
33
51
'Interop/Auth/Public/*.h' ,
34
52
]
53
+
54
+ # Internal headers that aren't necessarily globally unique. Most C++ internal
55
+ # headers should be here to avoid polluting the global header map with
56
+ # unprefixed filenames.
57
+ #
58
+ # These filenames won't be available in Xcode's "quick open" but the types
59
+ # inside these files will be available.
35
60
s . preserve_paths = [
36
61
'Firestore/Source/API/*.h' ,
37
62
'Firestore/Source/Core/*.h' ,
@@ -46,16 +71,18 @@ Google Cloud Firestore is a NoSQL document database built for automatic scaling,
46
71
'Firestore/Source/**/*' ,
47
72
'Firestore/core/src/**/*.mm' ,
48
73
]
74
+
75
+ # Exclude alternate implementations for other platforms. These types depend
76
+ # upon link-time substitution, and there's no provision within CocoaPods for
77
+ # selecting files dynamically.
49
78
s . exclude_files = [
50
- # Exclude alternate implementations for other platforms
51
79
'Firestore/core/src/api/input_validation_std.cc' ,
52
80
'Firestore/core/src/remote/connectivity_monitor_noop.cc' ,
53
81
'Firestore/core/src/util/filesystem_win.cc' ,
54
82
'Firestore/core/src/util/hard_assert_stdio.cc' ,
55
83
'Firestore/core/src/util/log_stdio.cc' ,
56
84
'Firestore/core/src/util/secure_random_openssl.cc'
57
85
]
58
- s . public_header_files = 'Firestore/Source/Public/FirebaseFirestore/*.h'
59
86
60
87
s . dependency 'FirebaseCore' , '~> 7.0'
61
88
0 commit comments