Skip to content

Commit

Permalink
Firestack compatibility (#81)
Browse files Browse the repository at this point in the history
* Add firestack header search paths

If users have installed firestack, modules may live here instead.
Include them just in case.

* Include firestack paths to frameworks

* Import Firebase via module

* Ignore xcuserdata
  • Loading branch information
slycoder authored and Libin Lu committed Sep 20, 2016
1 parent 5c02979 commit c9f4e36
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
build
build
xcuserdata
3 changes: 2 additions & 1 deletion ios/RNFIRMessaging.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

#import <UIKit/UIKit.h>

#import "Firebase.h"
@import Firebase;
@import FirebaseMessaging;

#import "RCTBridgeModule.h"

Expand Down
4 changes: 4 additions & 0 deletions ios/RNFIRMessaging.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,13 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/../../../ios/**",
"$(SRCROOT)/../../../node_modules/react-native-firestack/ios/**",
);
GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)";
HEADER_SEARCH_PATHS = (
"$(SRCROOT)/../../react-native/React/**",
"$(SRCROOT)/../../../ios/**",
"$(SRCROOT)/../../../node_modules/react-native-firestack/ios/**",
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
OTHER_LDFLAGS = "-ObjC";
Expand All @@ -233,10 +235,12 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/../../../ios/**",
"$(SRCROOT)/../../../node_modules/react-native-firestack/ios/**",
);
HEADER_SEARCH_PATHS = (
"$(SRCROOT)/../../react-native/React/**",
"$(SRCROOT)/../../../ios/**",
"$(SRCROOT)/../../../node_modules/react-native-firestack/ios/**",
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
OTHER_LDFLAGS = "-ObjC";
Expand Down

0 comments on commit c9f4e36

Please sign in to comment.