This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments