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
119
119
return testConfigurationFlag;
120
120
}
121
121
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
-
136
122
+ (void )setDeploymentKey : (NSString *)deploymentKey
137
123
{
138
124
[CodePushConfig current ].deploymentKey = deploymentKey;
@@ -300,6 +286,20 @@ - (void)loadBundle
300
286
});
301
287
}
302
288
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
+
303
303
/*
304
304
* This method is used when an update has failed installation
305
305
* and the app needs to be rolled back to the previous bundle.
You can’t perform that action at this time.
0 commit comments