ios: fix compilation warnings

This commit is contained in:
Saúl Ibarra Corretgé 2019-01-24 13:55:19 +01:00 committed by Saúl Ibarra Corretgé
parent 15c8f2b125
commit 8c0317cac0
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ RCT_EXPORT_METHOD(authorize:(RCTPromiseResolveBlock)resolve
[DBClientsManager authorizeFromController:[UIApplication sharedApplication]
controller:[[self class] topMostController]
openURL:^(NSURL *url) {
[[UIApplication sharedApplication] openURL:url];
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
}];
});
}
@ -137,7 +137,7 @@ RCT_EXPORT_METHOD(getSpaceUsage: (NSString *)token
} else {
NSString *msg;
if ([authResult isError]) {
msg = [NSString stringWithFormat:@"%@, error type: %ld",[authResult errorDescription], [authResult errorType]];
msg = [NSString stringWithFormat:@"%@, error type: %zd",[authResult errorDescription], [authResult errorType]];
} else {
msg = @"OAuth canceled!";
}