[ios][storage] lowercase TaskState's to match web sdk

This commit is contained in:
Salakar 2017-03-22 19:47:22 +00:00
parent 00889e1a69
commit 352b8db780
1 changed files with 5 additions and 5 deletions

View File

@ -378,15 +378,15 @@ RCT_EXPORT_METHOD(putFile:(NSString *) path localPath:(NSString *)localPath meta
- (NSString *)getTaskStatus:(FIRStorageTaskStatus)status {
if (status == FIRStorageTaskStatusResume || status == FIRStorageTaskStatusProgress) {
return @"RUNNING";
return @"running";
} else if (status == FIRStorageTaskStatusPause) {
return @"PAUSED";
return @"paused";
} else if (status == FIRStorageTaskStatusSuccess) {
return @"SUCCESS";
return @"success";
} else if (status == FIRStorageTaskStatusFailure) {
return @"ERROR";
return @"error";
} else {
return @"UNKNOWN";
return @"unknown";
}
}