@@ -20,16 +20,16 @@ + (NSDictionary *)getBinaryUpdateReport:(NSString *)appVersion
2020 NSString *previousDeploymentKey = [self getDeploymentKeyFromStatusReportIdentifier: previousStatusReportIdentifier];
2121 NSString *previousLabel = [self getVersionLabelFromStatusReportIdentifier: previousStatusReportIdentifier];
2222 return @{
23- @" appVersion" : appVersion,
24- @" previousDeploymentKey" : previousDeploymentKey,
25- @" previousLabelOrAppVersion" : previousLabel
26- };
23+ @" appVersion" : appVersion,
24+ @" previousDeploymentKey" : previousDeploymentKey,
25+ @" previousLabelOrAppVersion" : previousLabel
26+ };
2727 } else {
2828 // Previous status report was with a binary app version.
2929 return @{
30- @" appVersion" : appVersion,
31- @" previousLabelOrAppVersion" : previousStatusReportIdentifier
32- };
30+ @" appVersion" : appVersion,
31+ @" previousLabelOrAppVersion" : previousStatusReportIdentifier
32+ };
3333 }
3434 }
3535
@@ -52,34 +52,36 @@ + (NSDictionary *)getUpdateReport:(NSDictionary *)currentPackage
5252 if (previousStatusReportIdentifier == nil ) {
5353 [self recordDeploymentStatusReported: currentPackageIdentifier];
5454 return @{
55- @" package" : currentPackage,
56- @" status" : DeploymentSucceeded
57- };
55+ @" package" : currentPackage,
56+ @" status" : DeploymentSucceeded
57+ };
5858 } else if (![previousStatusReportIdentifier isEqualToString: currentPackageIdentifier]) {
5959 [self recordDeploymentStatusReported: currentPackageIdentifier];
6060 if ([self isStatusReportIdentifierCodePushLabel: previousStatusReportIdentifier]) {
6161 NSString *previousDeploymentKey = [self getDeploymentKeyFromStatusReportIdentifier: previousStatusReportIdentifier];
6262 NSString *previousLabel = [self getVersionLabelFromStatusReportIdentifier: previousStatusReportIdentifier];
6363 return @{
64- @" package" : currentPackage,
65- @" status" : DeploymentSucceeded,
66- @" previousDeploymentKey" : previousDeploymentKey,
67- @" previousLabelOrAppVersion" : previousLabel
68- };
64+ @" package" : currentPackage,
65+ @" status" : DeploymentSucceeded,
66+ @" previousDeploymentKey" : previousDeploymentKey,
67+ @" previousLabelOrAppVersion" : previousLabel
68+ };
6969 } else {
7070 // Previous status report was with a binary app version.
7171 return @{
72- @" package" : currentPackage,
73- @" status" : DeploymentSucceeded,
74- @" previousLabelOrAppVersion" : previousStatusReportIdentifier
75- };
72+ @" package" : currentPackage,
73+ @" status" : DeploymentSucceeded,
74+ @" previousLabelOrAppVersion" : previousStatusReportIdentifier
75+ };
7676 }
7777 }
7878 }
7979
8080 return nil ;
8181}
8282
83+ #pragma mark - private methods
84+
8385+ (NSString *)getDeploymentKeyFromStatusReportIdentifier : (NSString *)statusReportIdentifier
8486{
8587 return [[statusReportIdentifier componentsSeparatedByString: @" :" ] firstObject ];
0 commit comments