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"
1
2
#import < Foundation/Foundation.h>
2
3
3
- @interface CodePush : NSObject
4
+ @interface CodePush : RCTEventEmitter
4
5
5
6
+ (NSURL *)binaryBundleURL ;
6
7
/*
Original file line number Diff line number Diff line change @@ -294,15 +294,15 @@ - (void)dealloc
294
294
[[NSNotificationCenter defaultCenter ] removeObserver: self ];
295
295
}
296
296
297
- - (void )dispatchDownloadProgressEvent
298
- {
299
- // Notify the script-side about the progress
300
- [ self .bridge.eventDispatcher
301
- sendDeviceEventWithName: @" CodePushDownloadProgress "
302
- body: @{
303
- @" totalBytes " : [NSNumber numberWithLongLong: _latestExpectedContentLength],
304
- @" receivedBytes " :[ NSNumber numberWithLongLong: _latestReceivedConentLength]
305
- }];
297
+ - (void )dispatchDownloadProgressEvent {
298
+ // Notify the script-side about the progress
299
+ [ self sendEventWithName: @" CodePushDownloadProgress "
300
+ body: @{
301
+ @" totalBytes " : [ NSNumber
302
+ numberWithLongLong: _latestExpectedContentLength],
303
+ @" receivedBytes " : [NSNumber
304
+ numberWithLongLong: _latestReceivedConentLength]
305
+ }];
306
306
}
307
307
308
308
/*
You can’t perform that action at this time.
0 commit comments