Merge pull request #321 from Microsoft/icloud_sync

Exclude CodePush assets from backups
This commit is contained in:
Jonathan Carter
2016-04-28 16:10:10 -07:00

View File

@@ -60,6 +60,11 @@ static NSString *const UnzippedFolderName = @"unzipped";
withIntermediateDirectories:YES
attributes:nil
error:&error];
// Ensure that none of the CodePush updates we store on disk are
// ever included in the end users iTunes and/or iCloud backups
NSURL *codePushURL = [NSURL fileURLWithPath:[self getCodePushPath]];
[codePushURL setResourceValue:@YES forKey:NSURLIsExcludedFromBackupKey error:nil];
}
if (error) {