@@ -57,7 +57,6 @@ + (NSDictionary *)getRetryStatusReport
5757
5858+ (NSDictionary *)getRollbackReport : (NSDictionary *)lastFailedPackage
5959{
60- [self clearRetryStatusReport ];
6160 return @{
6261 PackageKey: lastFailedPackage,
6362 StatusKey: DeploymentFailed
@@ -76,18 +75,17 @@ + (NSDictionary *)getUpdateReport:(NSDictionary *)currentPackage
7675 StatusKey: DeploymentSucceeded
7776 };
7877 } else if (![previousStatusReportIdentifier isEqualToString: currentPackageIdentifier]) {
78+ [self clearRetryStatusReport ];
7979 if ([self isStatusReportIdentifierCodePushLabel: previousStatusReportIdentifier]) {
8080 NSString *previousDeploymentKey = [self getDeploymentKeyFromStatusReportIdentifier: previousStatusReportIdentifier];
8181 NSString *previousLabel = [self getVersionLabelFromStatusReportIdentifier: previousStatusReportIdentifier];
82- [self clearRetryStatusReport ];
8382 return @{
8483 PackageKey: currentPackage,
8584 StatusKey: DeploymentSucceeded,
8685 PreviousDeploymentKeyKey: previousDeploymentKey,
8786 PreviousLabelOrAppVersionKey: previousLabel
8887 };
8988 } else {
90- [self clearRetryStatusReport ];
9189 // Previous status report was with a binary app version.
9290 return @{
9391 PackageKey: currentPackage,
@@ -169,4 +167,4 @@ + (void)saveStatusReportedForIdentifier:(NSString *)appVersionOrPackageIdentifie
169167 [preferences synchronize ];
170168}
171169
172- @end
170+ @end
0 commit comments