ios: fix compilation warnings
This commit is contained in:
parent
15c8f2b125
commit
8c0317cac0
|
@ -66,7 +66,7 @@ RCT_EXPORT_METHOD(authorize:(RCTPromiseResolveBlock)resolve
|
||||||
[DBClientsManager authorizeFromController:[UIApplication sharedApplication]
|
[DBClientsManager authorizeFromController:[UIApplication sharedApplication]
|
||||||
controller:[[self class] topMostController]
|
controller:[[self class] topMostController]
|
||||||
openURL:^(NSURL *url) {
|
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 {
|
} else {
|
||||||
NSString *msg;
|
NSString *msg;
|
||||||
if ([authResult isError]) {
|
if ([authResult isError]) {
|
||||||
msg = [NSString stringWithFormat:@"%@, error type: %ld",[authResult errorDescription], [authResult errorType]];
|
msg = [NSString stringWithFormat:@"%@, error type: %zd",[authResult errorDescription], [authResult errorType]];
|
||||||
} else {
|
} else {
|
||||||
msg = @"OAuth canceled!";
|
msg = @"OAuth canceled!";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue