@@ -87,7 +87,7 @@ + (NSURL *)bundleURLForResource:(NSString *)resourceName
87
87
NSString *packageDate = [currentPackageMetadata objectForKey: BinaryBundleDateKey];
88
88
NSString *packageAppVersion = [currentPackageMetadata objectForKey: @" appVersion" ];
89
89
90
- if ([[self modifiedDateStringFromFileUrl : binaryBundleURL] isEqualToString: packageDate] && ([CodePush isUsingTestConfiguration ] ||[binaryAppVersion isEqualToString: packageAppVersion])) {
90
+ if ([[self modifiedDateStringOfFileAtUrl : binaryBundleURL] isEqualToString: packageDate] && ([CodePush isUsingTestConfiguration ] ||[binaryAppVersion isEqualToString: packageAppVersion])) {
91
91
// Return package file because it is newer than the app store binary's JS bundle
92
92
NSURL *packageUrl = [[NSURL alloc ] initFileURLWithPath: packageFile];
93
93
NSLog (logMessageFormat, packageUrl);
@@ -122,7 +122,7 @@ + (BOOL)isUsingTestConfiguration
122
122
/*
123
123
* This returns the modified date as a string for a given file URL.
124
124
*/
125
- + (NSString *)modifiedDateStringFromFileUrl : (NSURL *)fileUrl
125
+ + (NSString *)modifiedDateStringOfFileAtUrl : (NSURL *)fileUrl
126
126
{
127
127
if (fileUrl != nil ) {
128
128
NSDictionary *fileAttributes = [[NSFileManager defaultManager ] attributesOfItemAtPath: [fileUrl path ] error: nil ];
@@ -397,7 +397,7 @@ - (void)savePendingUpdate:(NSString *)packageHash
397
397
NSDictionary *mutableUpdatePackage = [updatePackage mutableCopy ];
398
398
NSURL *binaryBundleURL = [CodePush binaryBundleURL ];
399
399
if (binaryBundleURL != nil ) {
400
- [mutableUpdatePackage setValue: [CodePush modifiedDateStringFromFileUrl : binaryBundleURL]
400
+ [mutableUpdatePackage setValue: [CodePush modifiedDateStringOfFileAtUrl : binaryBundleURL]
401
401
forKey: BinaryBundleDateKey];
402
402
}
403
403
0 commit comments