mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-10 15:49:36 +08:00
feedback
This commit is contained in:
@@ -506,8 +506,8 @@ RCT_EXPORT_METHOD(isFirstRun:(NSString *)packageHash
|
||||
RCT_EXPORT_METHOD(notifyApplicationReady:(RCTPromiseResolveBlock)resolve
|
||||
rejecter:(RCTPromiseRejectBlock)reject)
|
||||
{
|
||||
// We only mark a pending update as succeeded only if it update has been booted up,
|
||||
// during which `_isFirstRunAfterUpdate` is true.
|
||||
// We only mark a pending update as succeeded only if it has been booted up
|
||||
// successfully, during which `didUpdate` is set to true.
|
||||
if (_isFirstRunAfterUpdate) {
|
||||
[CodePush removePendingUpdate];
|
||||
}
|
||||
|
||||
@@ -539,8 +539,8 @@ public class CodePush {
|
||||
|
||||
@ReactMethod
|
||||
public void notifyApplicationReady(Promise promise) {
|
||||
// We only mark a pending update as succeeded only if it update has been booted up,
|
||||
// during which `didUpdate` is true.
|
||||
// We only mark a pending update as succeeded only if it has been booted up
|
||||
// successfully, during which `didUpdate` is set to true.
|
||||
if (didUpdate) {
|
||||
removePendingUpdate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user