1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

bug fixed

This commit is contained in:
lvbingru 2016-04-05 18:00:58 +08:00
parent 818395383a
commit ea686834af

View File

@ -132,20 +132,6 @@ RCT_EXPORT_MODULE(RCTHotUpdate);
return self;
}
RCT_EXPORT_METHOD(getVersionInfo:(RCTResponseSenderBlock)callback)
{
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
NSString *appVersion = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
NSString *buildVersion = [infoDictionary objectForKey:@"CFBundleVersion"];
NSDictionary *versionInfo = @{AppVersionKey:appVersion, BuildVersionKey:buildVersion};
if (callback) {
callback(@[versionInfo]);
}
}
RCT_EXPORT_METHOD(downloadUpdate:(NSDictionary *)options
resolver:(RCTPromiseResolveBlock)resolve
rejecter:(RCTPromiseRejectBlock)reject)