mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-19 19:39:54 +08:00
Merge pull request #321 from Microsoft/icloud_sync
Exclude CodePush assets from backups
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user