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

Commit ca54397

Browse files
committed
Exclude CodePush assets from backups
1 parent ca7e0f5 commit ca54397

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ios/CodePush/CodePushPackage.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ + (void)downloadPackage:(NSDictionary *)updatePackage
6060
withIntermediateDirectories:YES
6161
attributes:nil
6262
error:&error];
63+
64+
// Ensure that none of the CodePush updates we store on disk are
65+
// ever included in the end users iTunes and/or iCloud backups
66+
NSURL *codePushURL = [NSURL fileURLWithPath:[self getCodePushPath]];
67+
[codePushURL setResourceValue:@YES forKey:NSURLIsExcludedFromBackupKey error:nil];
6368
}
6469

6570
if (error) {

0 commit comments

Comments
 (0)