Browse Source

#244 #243 Replace condition of RN40 in headers

Dombi Soma Kristóf 8 years ago
parent
commit
18f89ecd70

+ 1
- 1
src/ios/RNFetchBlob/RNFetchBlob.h View File

12
 #define RNFetchBlob_h
12
 #define RNFetchBlob_h
13
 
13
 
14
 
14
 
15
-#ifdef RN040_IMPORT
15
+#ifdef __has_include(<React/RCTBridge.h>)
16
 #import <React/RCTLog.h>
16
 #import <React/RCTLog.h>
17
 #import <React/RCTRootView.h>
17
 #import <React/RCTRootView.h>
18
 #import <React/RCTBridge.h>
18
 #import <React/RCTBridge.h>

+ 1
- 1
src/ios/RNFetchBlobFS.h View File

12
 #import "RNFetchBlob.h"
12
 #import "RNFetchBlob.h"
13
 
13
 
14
 #import <Foundation/Foundation.h>
14
 #import <Foundation/Foundation.h>
15
-#ifdef RN040_IMPORT
15
+#ifdef __has_include(<React/RCTBridgeModule.h>)
16
 #import <React/RCTBridgeModule.h>
16
 #import <React/RCTBridgeModule.h>
17
 #else
17
 #else
18
 #import "RCTBridgeModule.h"
18
 #import "RCTBridgeModule.h"

+ 1
- 1
src/ios/RNFetchBlobFS.m View File

13
 #import "IOS7Polyfill.h"
13
 #import "IOS7Polyfill.h"
14
 @import AssetsLibrary;
14
 @import AssetsLibrary;
15
 
15
 
16
-#ifdef RN040_IMPORT
16
+#ifdef __has_include(<React/RCTBridge.h>)
17
 #import <React/RCTBridge.h>
17
 #import <React/RCTBridge.h>
18
 #import <React/RCTEventDispatcher.h>
18
 #import <React/RCTEventDispatcher.h>
19
 #else
19
 #else

+ 1
- 1
src/ios/RNFetchBlobNetwork.h View File

10
 #import "RNFetchBlobProgress.h"
10
 #import "RNFetchBlobProgress.h"
11
 #import "RNFetchBlobFS.h"
11
 #import "RNFetchBlobFS.h"
12
 
12
 
13
-#ifdef RN040_IMPORT
13
+#ifdef __has_include(<React/RCTBridgeModule.h>)
14
 #import <React/RCTBridgeModule.h>
14
 #import <React/RCTBridgeModule.h>
15
 #else
15
 #else
16
 #import "RCTBridgeModule.h"
16
 #import "RCTBridgeModule.h"

+ 1
- 1
src/ios/RNFetchBlobNetwork.m View File

17
 #import <CommonCrypto/CommonDigest.h>
17
 #import <CommonCrypto/CommonDigest.h>
18
 #import "RNFetchBlobProgress.h"
18
 #import "RNFetchBlobProgress.h"
19
 
19
 
20
-#ifdef RN040_IMPORT
20
+#ifdef __has_include(<React/RCTBridge.h>)
21
 #import <React/RCTRootView.h>
21
 #import <React/RCTRootView.h>
22
 #import <React/RCTLog.h>
22
 #import <React/RCTLog.h>
23
 #import <React/RCTEventDispatcher.h>
23
 #import <React/RCTEventDispatcher.h>

+ 1
- 1
src/ios/RNFetchBlobReqBuilder.m View File

13
 #import "RNFetchBlobFS.h"
13
 #import "RNFetchBlobFS.h"
14
 #import "IOS7Polyfill.h"
14
 #import "IOS7Polyfill.h"
15
 
15
 
16
-#ifdef RN040_IMPORT
16
+#ifdef __has_include(<React/RCTLog.h>)
17
 #import <React/RCTLog.h>
17
 #import <React/RCTLog.h>
18
 #else
18
 #else
19
 #import "RCTLog.h"
19
 #import "RCTLog.h"