浏览代码

#223 Move import statements to .h file

Ben Hsieh 8 年前
父节点
当前提交
8330f566ef
共有 2 个文件被更改,包括 10 次插入17 次删除
  1. 10
    0
      src/ios/RNFetchBlob/RNFetchBlob.h
  2. 0
    17
      src/ios/RNFetchBlob/RNFetchBlob.m

+ 10
- 0
src/ios/RNFetchBlob/RNFetchBlob.h 查看文件

10
 #ifndef RNFetchBlob_h
10
 #ifndef RNFetchBlob_h
11
 #define RNFetchBlob_h
11
 #define RNFetchBlob_h
12
 
12
 
13
+
13
 #ifdef OLD_IMPORT
14
 #ifdef OLD_IMPORT
14
 #import "RCTBridgeModule.h"
15
 #import "RCTBridgeModule.h"
16
+#import "RCTLog.h"
17
+#import "RCTRootView.h"
18
+#import "RCTBridge.h"
19
+#import "RCTEventDispatcher.h"
15
 #else
20
 #else
21
+#import <React/RCTLog.h>
22
+#import <React/RCTRootView.h>
23
+#import <React/RCTBridge.h>
24
+#import <React/RCTEventDispatcher.h>
16
 #import <React/RCTBridgeModule.h>
25
 #import <React/RCTBridgeModule.h>
17
 #endif
26
 #endif
27
+
18
 #import <UIKit/UIKit.h>
28
 #import <UIKit/UIKit.h>
19
 
29
 
20
 
30
 

+ 0
- 17
src/ios/RNFetchBlob/RNFetchBlob.m 查看文件

12
 #import "RNFetchBlobProgress.h"
12
 #import "RNFetchBlobProgress.h"
13
 
13
 
14
 
14
 
15
-#ifdef OLD_IMPORT
16
-
17
-#import "RCTLog.h"
18
-#import "RCTRootView.h"
19
-#import "RCTBridge.h"
20
-#import "RCTEventDispatcher.h"
21
-
22
-#else
23
-
24
-#import <React/RCTLog.h>
25
-#import <React/RCTRootView.h>
26
-#import <React/RCTBridge.h>
27
-#import <React/RCTEventDispatcher.h>
28
-
29
-#endif
30
-
31
-
32
 __strong RCTBridge * bridgeRef;
15
 __strong RCTBridge * bridgeRef;
33
 dispatch_queue_t commonTaskQueue;
16
 dispatch_queue_t commonTaskQueue;
34
 dispatch_queue_t fsQueue;
17
 dispatch_queue_t fsQueue;