Skip to content

Commit

Permalink
add include deader
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylEnkidu committed Jan 27, 2025
1 parent f171bf4 commit 504ee98
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/

#import <Foundation/Foundation.h>

#if defined(__cplusplus)
#include <memory>
#include <vector>

Expand Down Expand Up @@ -60,3 +62,4 @@ NS_SWIFT_NAME(CallbackWrapper)
@end

NS_ASSUME_NONNULL_END
#endif
6 changes: 6 additions & 0 deletions Firestore/Source/Public/FirebaseFirestore/FIRFirestore.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
*/

#import <Foundation/Foundation.h>
#if defined(__cplusplus)
#include <memory>
#endif

#import "FIRListenerRegistration.h"

Expand All @@ -31,6 +33,7 @@
@class FIRWriteBatch;
@class FIRPersistentCacheIndexManager;

#if defined(__cplusplus)
namespace firebase {
namespace firestore {
namespace api {
Expand All @@ -40,6 +43,7 @@ class Firestore;
} // namespace firebase

namespace cppApi = firebase::firestore::api;
#endif

NS_ASSUME_NONNULL_BEGIN

Expand Down Expand Up @@ -102,7 +106,9 @@ NS_SWIFT_NAME(Firestore)
*/
+ (instancetype)firestoreForDatabase:(NSString *)database NS_SWIFT_NAME(firestore(database:));

#if defined(__cplusplus)
@property(nonatomic, assign, readonly) std::shared_ptr<cppApi::Firestore> cppFirestorePtr;
#endif

/**
* Custom settings used to configure this `Firestore` object.
Expand Down
1 change: 1 addition & 0 deletions Firestore/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ firebase_ios_glob(
src/remote/*.cc
src/remote/*.h
interfaceForSwift/api/*.h
interfaceForSwift/api/*.cc
EXCLUDE ${nanopb_sources}
)

Expand Down

0 comments on commit 504ee98

Please sign in to comment.