From 8c0317cac0e2c7bdecd8761f01bd07c51ca2b99b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 24 Jan 2019 13:55:19 +0100 Subject: [PATCH] ios: fix compilation warnings --- ios/sdk/src/dropbox/Dropbox.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/sdk/src/dropbox/Dropbox.m b/ios/sdk/src/dropbox/Dropbox.m index 9418e9d37..e4ca8bf0f 100644 --- a/ios/sdk/src/dropbox/Dropbox.m +++ b/ios/sdk/src/dropbox/Dropbox.m @@ -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!"; }