Browse Source

Fix build problem on Xcode < 7.3 #30 #31

Ben Hsieh 8 years ago
parent
commit
3fec76a9a6
2 changed files with 4 additions and 3 deletions
  1. 1
    0
      src/ios/RNFetchBlobFS.m
  2. 3
    3
      src/ios/RNFetchBlobNetwork.h

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

293
                             else
293
                             else
294
                                 asciiStr = [asciiStr stringByAppendingFormat:@"%d", val];
294
                                 asciiStr = [asciiStr stringByAppendingFormat:@"%d", val];
295
                         }
295
                         }
296
+                        free(bytePtr);
296
                     }
297
                     }
297
                     asciiStr = [asciiStr stringByAppendingString:@"]"];
298
                     asciiStr = [asciiStr stringByAppendingString:@"]"];
298
                     [self.bridge.eventDispatcher
299
                     [self.bridge.eventDispatcher

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

21
 @property (nonatomic) int expectedBytes;
21
 @property (nonatomic) int expectedBytes;
22
 @property (nonatomic) int receivedBytes;
22
 @property (nonatomic) int receivedBytes;
23
 @property (nullable, nonatomic) NSMutableData * respData;
23
 @property (nullable, nonatomic) NSMutableData * respData;
24
-@property (nullable, nonatomic) RCTResponseSenderBlock callback;
24
+@property (strong, nonatomic) RCTResponseSenderBlock callback;
25
 @property (nullable, nonatomic) RCTBridge * bridge;
25
 @property (nullable, nonatomic) RCTBridge * bridge;
26
 @property (nullable, nonatomic) NSDictionary * options;
26
 @property (nullable, nonatomic) NSDictionary * options;
27
 @property (nullable, nonatomic) RNFetchBlobFS * fileStream;
27
 @property (nullable, nonatomic) RNFetchBlobFS * fileStream;
28
-@property (nullable, nonatomic) CompletionHander fileTaskCompletionHandler;
29
-@property (nullable, nonatomic) DataTaskCompletionHander dataTaskCompletionHandler;
28
+@property (strong, nonatomic) CompletionHander fileTaskCompletionHandler;
29
+@property (strong, nonatomic) DataTaskCompletionHander dataTaskCompletionHandler;
30
 @property (nullable, nonatomic) NSError * error;
30
 @property (nullable, nonatomic) NSError * error;
31
 
31
 
32
 
32