From 199f730a30adb80a7f646ced52a99271c6866178 Mon Sep 17 00:00:00 2001 From: Jonathan Carter Date: Thu, 25 Feb 2016 13:43:57 -0800 Subject: [PATCH] Removing JS bundle modified date logic --- ios/CodePush/CodePushPackage.m | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/ios/CodePush/CodePushPackage.m b/ios/CodePush/CodePushPackage.m index d5f4d4f04..be2cea8ef 100644 --- a/ios/CodePush/CodePushPackage.m +++ b/ios/CodePush/CodePushPackage.m @@ -331,23 +331,7 @@ + (void)downloadPackage:(NSDictionary *)updatePackage return; } - if (relativeBundlePath) { - NSString *absoluteBundlePath = [newUpdateFolderPath stringByAppendingPathComponent:relativeBundlePath]; - NSDictionary *bundleFileAttributes = [[[NSFileManager defaultManager] attributesOfItemAtPath:absoluteBundlePath error:&error] mutableCopy]; - if (error) { - failCallback(error); - return; - } - - [bundleFileAttributes setValue:[NSDate date] forKey:NSFileModificationDate]; - [[NSFileManager defaultManager] setAttributes:bundleFileAttributes - ofItemAtPath:absoluteBundlePath - error:&error]; - if (error) { - failCallback(error); - return; - } - + if (relativeBundlePath) { [mutableUpdatePackage setValue:relativeBundlePath forKey:RelativeBundlePathKey]; } else { error = [[NSError alloc] initWithDomain:CodePushErrorDomain