You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2014/04/19 00:21:40 UTC

ios commit: Added NSLog notification for beginning backup to iCloud (closes #96)

Repository: cordova-ios
Updated Branches:
  refs/heads/master 217b3a52a -> e7537107f


Added NSLog notification for beginning backup to iCloud (closes #96)


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/e7537107
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/e7537107
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/e7537107

Branch: refs/heads/master
Commit: e7537107f02d6bc22a6dc8d68ea8685d2fd5cb8a
Parents: 217b3a5
Author: Emil Marashliev <em...@me.com>
Authored: Mon Apr 7 14:49:38 2014 +0300
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Fri Apr 18 15:21:28 2014 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVLocalStorage.m | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/e7537107/CordovaLib/Classes/CDVLocalStorage.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVLocalStorage.m b/CordovaLib/Classes/CDVLocalStorage.m
index 9dcf5c1..b018ae5 100644
--- a/CordovaLib/Classes/CDVLocalStorage.m
+++ b/CordovaLib/Classes/CDVLocalStorage.m
@@ -340,6 +340,12 @@
     NSMutableArray* backupInfo = [NSMutableArray arrayWithCapacity:0];
 
     if ([backupType isEqualToString:@"cloud"]) {
+#ifdef DEBUG
+        NSLog(@"\n\nStarted backup to iCloud! Please be careful."
+              "\nYour application might rejected by Apple if you store too much data."
+              "\nFor more information please read \"iOS Data Storage Guidelines\""
+              "\nYou could find it at the following address https://developer.apple.com/icloud/documentation/data-storage/ .\n\n");
+#endif
         // We would like to restore old backups/caches databases to the new destination (nested in lib folder)
         [backupInfo addObjectsFromArray:[self createBackupInfoWithTargetDir:appLibraryFolder backupDir:[appDocumentsFolder stringByAppendingPathComponent:@"Backups"] targetDirNests:YES backupDirNests:NO rename:YES]];
         [backupInfo addObjectsFromArray:[self createBackupInfoWithTargetDir:appLibraryFolder backupDir:[appLibraryFolder stringByAppendingPathComponent:@"Caches"] targetDirNests:YES backupDirNests:NO rename:NO]];