Skip to content

Commit

Permalink
add include full path in implementation file
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylEnkidu committed Dec 10, 2024
1 parent a71739a commit a540383
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Firestore/core/swift/include/used_by_swift.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define FIREBASE_USED_BY_SWIFT_H

#include <string>
#include "Firestore/core/include/firebase/firestore/timestamp.h"
#include "../../include/firebase/firestore/timestamp.h"

namespace firebase {
class CppInterfaceCalledBySwift {
Expand Down
1 change: 1 addition & 0 deletions Firestore/core/swift/src/used_by_swift.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "../include/used_by_swift.h"
#include <iostream>
#include "Firestore/core/include/firebase/firestore/timestamp.h"

void firebase::CppInterfaceCalledBySwift::print(std::string content) {
std::cout << "C++ function runs with value: " << content << std::endl;
Expand Down
3 changes: 3 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1408,6 +1408,9 @@ func firestoreWrapperTarget() -> Target {
func firebaseFirestoreCppTarget() -> Target {
return .target(
name: "FirebaseFirestoreCpp",
dependencies: [
"FirebaseFirestoreInternalWrapper",
],
path: "Firestore/core/swift",
publicHeadersPath: "include", // Path to the public headers
cxxSettings: [
Expand Down

0 comments on commit a540383

Please sign in to comment.