@@ -57,7 +57,6 @@ + (NSDictionary *)getRetryStatusReport
57
57
58
58
+ (NSDictionary *)getRollbackReport : (NSDictionary *)lastFailedPackage
59
59
{
60
- [self clearRetryStatusReport ];
61
60
return @{
62
61
PackageKey: lastFailedPackage,
63
62
StatusKey: DeploymentFailed
@@ -76,18 +75,17 @@ + (NSDictionary *)getUpdateReport:(NSDictionary *)currentPackage
76
75
StatusKey: DeploymentSucceeded
77
76
};
78
77
} else if (![previousStatusReportIdentifier isEqualToString: currentPackageIdentifier]) {
78
+ [self clearRetryStatusReport ];
79
79
if ([self isStatusReportIdentifierCodePushLabel: previousStatusReportIdentifier]) {
80
80
NSString *previousDeploymentKey = [self getDeploymentKeyFromStatusReportIdentifier: previousStatusReportIdentifier];
81
81
NSString *previousLabel = [self getVersionLabelFromStatusReportIdentifier: previousStatusReportIdentifier];
82
- [self clearRetryStatusReport ];
83
82
return @{
84
83
PackageKey: currentPackage,
85
84
StatusKey: DeploymentSucceeded,
86
85
PreviousDeploymentKeyKey: previousDeploymentKey,
87
86
PreviousLabelOrAppVersionKey: previousLabel
88
87
};
89
88
} else {
90
- [self clearRetryStatusReport ];
91
89
// Previous status report was with a binary app version.
92
90
return @{
93
91
PackageKey: currentPackage,
@@ -169,4 +167,4 @@ + (void)saveStatusReportedForIdentifier:(NSString *)appVersionOrPackageIdentifie
169
167
[preferences synchronize ];
170
168
}
171
169
172
- @end
170
+ @end
0 commit comments