mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-10 23:59:42 +08:00
fix ios install to overwrite pending
This commit is contained in:
@@ -446,6 +446,7 @@ RCT_EXPORT_METHOD(installUpdate:(NSDictionary*)updatePackage
|
||||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
||||
NSError *error;
|
||||
[CodePushPackage installPackage:updatePackage
|
||||
removePendingUpdate:[self isPendingUpdate:nil]
|
||||
error:&error];
|
||||
|
||||
if (error) {
|
||||
|
||||
Reference in New Issue
Block a user