File tree 5 files changed +22
-3
lines changed
5 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 370
370
"$(inherited)",
371
371
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
372
372
"$(SRCROOT)/../../react-native/React/**",
373
- "$(SRCROOT)/../Examples/CodePushDemoApp/node_modules/react-native/React/**",
374
373
);
375
374
LIBRARY_SEARCH_PATHS = "$(inherited)";
376
375
OTHER_LDFLAGS = (
389
388
"$(inherited)",
390
389
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
391
390
"$(SRCROOT)/../../react-native/React/**",
392
- "$(SRCROOT)/../Examples/CodePushDemoApp/node_modules/react-native/React/**",
393
391
);
394
392
LIBRARY_SEARCH_PATHS = "$(inherited)";
395
393
OTHER_LDFLAGS = (
Original file line number Diff line number Diff line change 1
- #if __has_include(" RCTEventEmitter.h" )
1
+ #if __has_include(<React/ RCTEventEmitter.h> )
2
2
#import < React/RCTEventEmitter.h>
3
+ #elif __has_include("RCTEventEmitter.h")
4
+ #import " RCTEventEmitter.h"
3
5
#else
4
6
#import " React/RCTEventEmitter.h" // Required when used as a Pod in a Swift project
5
7
#endif
Original file line number Diff line number Diff line change
1
+ #if __has_include(<React/RCTAssert.h>)
1
2
#import < React/RCTAssert.h>
2
3
#import < React/RCTBridgeModule.h>
3
4
#import < React/RCTConvert.h>
4
5
#import < React/RCTEventDispatcher.h>
5
6
#import < React/RCTRootView.h>
6
7
#import < React/RCTUtils.h>
8
+ #else // back compatibility for RN version < 0.40
9
+ #import " RCTAssert.h"
10
+ #import " RCTBridgeModule.h"
11
+ #import " RCTConvert.h"
12
+ #import " RCTEventDispatcher.h"
13
+ #import " RCTRootView.h"
14
+ #import " RCTUtils.h"
15
+ #endif
7
16
8
17
#import " CodePush.h"
9
18
Original file line number Diff line number Diff line change 1
1
#import " CodePush.h"
2
+
3
+ #if __has_include(<React/RCTConvert.h>)
2
4
#import < React/RCTConvert.h>
5
+ #else
6
+ #import " RCTConvert.h"
7
+ #endif
3
8
4
9
// Extending the RCTConvert class allows the React Native
5
10
// bridge to handle args of type "CodePushInstallMode"
Original file line number Diff line number Diff line change 1
1
#import " CodePush.h"
2
+
3
+ #if __has_include(<React/RCTConvert.h>)
2
4
#import < React/RCTConvert.h>
5
+ #else
6
+ #import " RCTConvert.h"
7
+ #endif
3
8
4
9
// Extending the RCTConvert class allows the React Native
5
10
// bridge to handle args of type "CodePushUpdateState"
You can’t perform that action at this time.
0 commit comments