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 @@ -269,15 +269,15 @@ - (void)dealloc
269
269
[[NSNotificationCenter defaultCenter ] removeObserver: self ];
270
270
}
271
271
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
+ }];
281
281
}
282
282
283
283
/*
You can’t perform that action at this time.
0 commit comments