This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1+ #import " RCTEventEmitter.h"
12#import < Foundation/Foundation.h>
23
3- @interface CodePush : NSObject
4+ @interface CodePush : RCTEventEmitter
45
56+ (NSURL *)binaryBundleURL ;
67/*
Original file line number Diff line number Diff line change @@ -269,15 +269,15 @@ - (void)dealloc
269269 [[NSNotificationCenter defaultCenter ] removeObserver: self ];
270270}
271271
272- - (void )dispatchDownloadProgressEvent
273- {
274- // Notify the script-side about the progress
275- [ self .bridge.eventDispatcher
276- sendDeviceEventWithName: @" CodePushDownloadProgress "
277- body: @{
278- @" totalBytes " : [NSNumber numberWithLongLong: _latestExpectedContentLength],
279- @" receivedBytes " :[ NSNumber numberWithLongLong: _latestReceivedConentLength]
280- }];
272+ - (void )dispatchDownloadProgressEvent {
273+ // Notify the script-side about the progress
274+ [ self sendEventWithName: @" CodePushDownloadProgress "
275+ body: @{
276+ @" totalBytes " : [ NSNumber
277+ numberWithLongLong: _latestExpectedContentLength],
278+ @" receivedBytes " : [NSNumber
279+ numberWithLongLong: _latestReceivedConentLength]
280+ }];
281281}
282282
283283/*
You can’t perform that action at this time.
0 commit comments