Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 648c2b4

Browse files
committed
Restructuring FBReactKit project: Part 1
1 parent 1109ce3 commit 648c2b4

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Libraries/AdSupport/RCTAdSupport.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
99

10-
#import <AdSupport/ASIdentifierManager.h>
11-
1210
#import "RCTBridgeModule.h"
1311

1412
@interface RCTAdSupport : NSObject <RCTBridgeModule>

Libraries/AdSupport/RCTAdSupport.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
99

10+
#import <AdSupport/ASIdentifierManager.h>
11+
1012
#import "RCTAdSupport.h"
1113

1214
@implementation RCTAdSupport

Libraries/Network/RCTNetworking.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ - (void)buildRequest:(NSDictionary *)query
285285
}];
286286
id<RCTURLRequestHandler> handler = [handlers lastObject];
287287
if (!handler) {
288-
RCTLogError(@"No suitable request handler found for %@", request);
288+
RCTLogError(@"No suitable request handler found for %@", request.URL);
289289
}
290290
return handler;
291291
}
@@ -322,6 +322,9 @@ - (void)processDataForHTTPQuery:(NSDictionary *)query callback:(void (^)(NSError
322322
NSURLRequest *request = [RCTConvert NSURLRequest:query[@"uri"]];
323323
if (request) {
324324
id<RCTURLRequestHandler> handler = [self handlerForRequest:request];
325+
if (!handler) {
326+
return;
327+
}
325328
(void)[[RCTDataLoader alloc] initWithRequest:request handler:handler callback:^(NSData *data, NSString *MIMEType, NSError *error) {
326329
if (data) {
327330
callback(nil, @{@"body": data, @"contentType": MIMEType});

0 commit comments

Comments
 (0)