Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 132bf00

Browse files
committed
move to private
1 parent dc70b12 commit 132bf00

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

CodePush.m

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -119,20 +119,6 @@ + (BOOL)isUsingTestConfiguration
119119
return testConfigurationFlag;
120120
}
121121

122-
/*
123-
* This returns the modified date as a string for a given file URL.
124-
*/
125-
+ (NSString *)modifiedDateStringOfFileAtUrl:(NSURL *)fileUrl
126-
{
127-
if (fileUrl != nil) {
128-
NSDictionary *fileAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:[fileUrl path] error:nil];
129-
NSDate *modifiedDate = [fileAttributes objectForKey:NSFileModificationDate];
130-
return [NSString stringWithFormat:@"%f", [modifiedDate timeIntervalSince1970]];
131-
} else {
132-
return nil;
133-
}
134-
}
135-
136122
+ (void)setDeploymentKey:(NSString *)deploymentKey
137123
{
138124
[CodePushConfig current].deploymentKey = deploymentKey;
@@ -300,6 +286,20 @@ - (void)loadBundle
300286
});
301287
}
302288

289+
/*
290+
* This returns the modified date as a string for a given file URL.
291+
*/
292+
+ (NSString *)modifiedDateStringOfFileAtURL:(NSURL *)fileURL
293+
{
294+
if (fileURL != nil) {
295+
NSDictionary *fileAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:[fileURL path] error:nil];
296+
NSDate *modifiedDate = [fileAttributes objectForKey:NSFileModificationDate];
297+
return [NSString stringWithFormat:@"%f", [modifiedDate timeIntervalSince1970]];
298+
} else {
299+
return nil;
300+
}
301+
}
302+
303303
/*
304304
* This method is used when an update has failed installation
305305
* and the app needs to be rolled back to the previous bundle.

0 commit comments

Comments
 (0)