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

Commit 147db4e

Browse files
committed
Merge pull request #212 from Microsoft/file_mutation
Removing JS bundle modified date mutation
2 parents 7e0c51e + 199f730 commit 147db4e

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

ios/CodePush/CodePushPackage.m

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -331,23 +331,7 @@ + (void)downloadPackage:(NSDictionary *)updatePackage
331331
return;
332332
}
333333

334-
if (relativeBundlePath) {
335-
NSString *absoluteBundlePath = [newUpdateFolderPath stringByAppendingPathComponent:relativeBundlePath];
336-
NSDictionary *bundleFileAttributes = [[[NSFileManager defaultManager] attributesOfItemAtPath:absoluteBundlePath error:&error] mutableCopy];
337-
if (error) {
338-
failCallback(error);
339-
return;
340-
}
341-
342-
[bundleFileAttributes setValue:[NSDate date] forKey:NSFileModificationDate];
343-
[[NSFileManager defaultManager] setAttributes:bundleFileAttributes
344-
ofItemAtPath:absoluteBundlePath
345-
error:&error];
346-
if (error) {
347-
failCallback(error);
348-
return;
349-
}
350-
334+
if (relativeBundlePath) {
351335
[mutableUpdatePackage setValue:relativeBundlePath forKey:RelativeBundlePathKey];
352336
} else {
353337
error = [[NSError alloc] initWithDomain:CodePushErrorDomain

0 commit comments

Comments
 (0)