fix(ios): update deprecated method call

This commit is contained in:
Felix Sammet
2016-08-08 10:20:33 +02:00
parent d3a5e846ee
commit a975d13a46
2 changed files with 11 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
#import "RCTEventEmitter.h"
#import <Foundation/Foundation.h>
@interface CodePush : NSObject
@interface CodePush : RCTEventEmitter
+ (NSURL *)binaryBundleURL;
/*

View File

@@ -269,15 +269,15 @@ static NSString *bundleResourceSubdirectory = nil;
[[NSNotificationCenter defaultCenter] removeObserver:self];
}
- (void)dispatchDownloadProgressEvent
{
// Notify the script-side about the progress
[self.bridge.eventDispatcher
sendDeviceEventWithName:@"CodePushDownloadProgress"
body:@{
@"totalBytes":[NSNumber numberWithLongLong:_latestExpectedContentLength],
@"receivedBytes":[NSNumber numberWithLongLong:_latestReceivedConentLength]
}];
- (void)dispatchDownloadProgressEvent {
// Notify the script-side about the progress
[self sendEventWithName:@"CodePushDownloadProgress"
body:@{
@"totalBytes" : [NSNumber
numberWithLongLong:_latestExpectedContentLength],
@"receivedBytes" : [NSNumber
numberWithLongLong:_latestReceivedConentLength]
}];
}
/*