1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-11-02 22:33:11 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

修复BUG: 编译报错及低版本设备报错

This commit is contained in:
tdzl2003
2016-05-08 22:04:18 +08:00
parent 35befab91a
commit f1b5ac0bbd
2 changed files with 4 additions and 4 deletions

View File

@@ -176,7 +176,7 @@ RCT_EXPORT_METHOD(downloadUpdate:(NSDictionary *)options
{ {
[self hotUpdate:HotUpdateTypeFullDownload options:options callback:^(NSError *error) { [self hotUpdate:HotUpdateTypeFullDownload options:options callback:^(NSError *error) {
if (error) { if (error) {
[reject error]; reject([NSString stringWithFormat: @"%lu", (long)error.code], error.localizedDescription, error);
} }
else { else {
resolve(nil); resolve(nil);
@@ -190,7 +190,7 @@ RCT_EXPORT_METHOD(downloadPatchFromPackage:(NSDictionary *)options
{ {
[self hotUpdate:HotUpdateTypePatchFromPackage options:options callback:^(NSError *error) { [self hotUpdate:HotUpdateTypePatchFromPackage options:options callback:^(NSError *error) {
if (error) { if (error) {
[reject error]; reject([NSString stringWithFormat: @"%lu", (long)error.code], error.localizedDescription, error);
} }
else { else {
resolve(nil); resolve(nil);
@@ -204,7 +204,7 @@ RCT_EXPORT_METHOD(downloadPatchFromPpk:(NSDictionary *)options
{ {
[self hotUpdate:HotUpdateTypePatchFromPpk options:options callback:^(NSError *error) { [self hotUpdate:HotUpdateTypePatchFromPpk options:options callback:^(NSError *error) {
if (error) { if (error) {
[reject error]; reject([NSString stringWithFormat: @"%lu", (long)error.code], error.localizedDescription, error);
} }
else { else {
resolve(nil); resolve(nil);

View File

@@ -1,6 +1,6 @@
{ {
"name": "react-native-update", "name": "react-native-update",
"version": "1.0.3", "version": "1.0.4",
"description": "react-native hot update", "description": "react-native hot update",
"main": "lib/index.js", "main": "lib/index.js",
"scripts": { "scripts": {