asset-update

This commit is contained in:
Geoffrey Goh
2015-12-02 16:39:46 -08:00
parent d25489c789
commit 45681288fe
55 changed files with 11206 additions and 78 deletions

View File

@@ -259,13 +259,13 @@ RCT_EXPORT_METHOD(downloadUpdate:(NSDictionary*)updatePackage
{
[CodePushPackage downloadPackage:updatePackage
// The download is progressing forward
progressCallback:^(long expectedContentLength, long receivedContentLength) {
progressCallback:^(long long expectedContentLength, long long receivedContentLength) {
// Notify the script-side about the progress
[self.bridge.eventDispatcher
sendDeviceEventWithName:@"CodePushDownloadProgress"
body:@{
@"totalBytes":[NSNumber numberWithLong:expectedContentLength],
@"receivedBytes":[NSNumber numberWithLong:receivedContentLength]
@"totalBytes":[NSNumber numberWithLongLong:expectedContentLength],
@"receivedBytes":[NSNumber numberWithLongLong:receivedContentLength]
}];
}
// The download completed