move to private

This commit is contained in:
Geoffrey Goh
2016-02-05 17:18:15 -08:00
parent dc70b12a29
commit 132bf00627

View File

@@ -119,20 +119,6 @@ static NSString *bundleResourceName = @"main";
return testConfigurationFlag;
}
/*
* This returns the modified date as a string for a given file URL.
*/
+ (NSString *)modifiedDateStringOfFileAtUrl:(NSURL *)fileUrl
{
if (fileUrl != nil) {
NSDictionary *fileAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:[fileUrl path] error:nil];
NSDate *modifiedDate = [fileAttributes objectForKey:NSFileModificationDate];
return [NSString stringWithFormat:@"%f", [modifiedDate timeIntervalSince1970]];
} else {
return nil;
}
}
+ (void)setDeploymentKey:(NSString *)deploymentKey
{
[CodePushConfig current].deploymentKey = deploymentKey;
@@ -300,6 +286,20 @@ static NSString *bundleResourceName = @"main";
});
}
/*
* This returns the modified date as a string for a given file URL.
*/
+ (NSString *)modifiedDateStringOfFileAtURL:(NSURL *)fileURL
{
if (fileURL != nil) {
NSDictionary *fileAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:[fileURL path] error:nil];
NSDate *modifiedDate = [fileAttributes objectForKey:NSFileModificationDate];
return [NSString stringWithFormat:@"%f", [modifiedDate timeIntervalSince1970]];
} else {
return nil;
}
}
/*
* This method is used when an update has failed installation
* and the app needs to be rolled back to the previous bundle.