Browse Source

#223 Move import statements to .h file

Ben Hsieh 8 years ago
parent
commit
8330f566ef
2 changed files with 10 additions and 17 deletions
  1. 10
    0
      src/ios/RNFetchBlob/RNFetchBlob.h
  2. 0
    17
      src/ios/RNFetchBlob/RNFetchBlob.m

+ 10
- 0
src/ios/RNFetchBlob/RNFetchBlob.h View File

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

+ 0
- 17
src/ios/RNFetchBlob/RNFetchBlob.m View File

@@ -12,23 +12,6 @@
12 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 15
 __strong RCTBridge * bridgeRef;
33 16
 dispatch_queue_t commonTaskQueue;
34 17
 dispatch_queue_t fsQueue;