Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 51e702f

Browse files
author
Anis Kadri
committed
Issue #110 using ifdefs instead
1 parent 1a056d0 commit 51e702f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/ios/ContentSync.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ typedef NSUInteger ErrorCodes;
4141
- (void) cancel:(CDVInvokedUrlCommand*)command;
4242
- (void) download:(CDVInvokedUrlCommand*)command;
4343
- (void) unzip:(CDVInvokedUrlCommand*)command;
44-
#ifndef __CORDOVA_4_0_0
45-
- (void) loadUrl:(CDVInvokedUrlCommand*)command;
46-
#endif
4744

4845
@end
4946

src/ios/ContentSync.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,13 +528,15 @@ - (BOOL) copyCordovaAssets:(NSString*)unzippedPath copyRootApp:(BOOL)copyRootApp
528528
return YES;
529529
}
530530

531+
#ifdef __CORDOVA_4_0_0
531532
- (void)loadUrl:(CDVInvokedUrlCommand*) command {
532533
NSString* url = [command argumentAtIndex:0 withDefault:nil];
533534
if(url != nil) {
534535
NSURLRequest* request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]];
535536
[self.webViewEngine loadRequest:request];
536537
}
537538
}
539+
#endif
538540

539541
- (NSURLSession*) backgroundSession:(NSNumber*)timeout {
540542
static NSURLSession *session = nil;

0 commit comments

Comments
 (0)