mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-19 19:39:54 +08:00
Update CodePushTelemetryManager.m
This commit is contained in:
@@ -57,7 +57,6 @@ static NSString *const StatusKey = @"status";
|
||||
|
||||
+ (NSDictionary *)getRollbackReport:(NSDictionary *)lastFailedPackage
|
||||
{
|
||||
[self clearRetryStatusReport];
|
||||
return @{
|
||||
PackageKey: lastFailedPackage,
|
||||
StatusKey: DeploymentFailed
|
||||
@@ -76,10 +75,10 @@ static NSString *const StatusKey = @"status";
|
||||
StatusKey: DeploymentSucceeded
|
||||
};
|
||||
} else if (![previousStatusReportIdentifier isEqualToString:currentPackageIdentifier]) {
|
||||
[self clearRetryStatusReport];
|
||||
if ([self isStatusReportIdentifierCodePushLabel:previousStatusReportIdentifier]) {
|
||||
NSString *previousDeploymentKey = [self getDeploymentKeyFromStatusReportIdentifier:previousStatusReportIdentifier];
|
||||
NSString *previousLabel = [self getVersionLabelFromStatusReportIdentifier:previousStatusReportIdentifier];
|
||||
[self clearRetryStatusReport];
|
||||
return @{
|
||||
PackageKey: currentPackage,
|
||||
StatusKey: DeploymentSucceeded,
|
||||
@@ -87,7 +86,6 @@ static NSString *const StatusKey = @"status";
|
||||
PreviousLabelOrAppVersionKey: previousLabel
|
||||
};
|
||||
} else {
|
||||
[self clearRetryStatusReport];
|
||||
// Previous status report was with a binary app version.
|
||||
return @{
|
||||
PackageKey: currentPackage,
|
||||
@@ -169,4 +167,4 @@ static NSString *const StatusKey = @"status";
|
||||
[preferences synchronize];
|
||||
}
|
||||
|
||||
@end
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user