incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [1/2] ios commit: Renamed IsiOSVersion macro to IsAtLeastiOSVersion
Date Fri, 23 Mar 2012 19:53:08 GMT
Updated Branches:
  refs/heads/master 9d5749b9e -> 4f17bb46d


Renamed IsiOSVersion macro to IsAtLeastiOSVersion


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

Branch: refs/heads/master
Commit: 4f17bb46d1deb770e863a2410294043794b7a386
Parents: e231d3d
Author: Shazron Abdullah <shazron@apache.org>
Authored: Fri Mar 23 12:53:03 2012 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Fri Mar 23 12:53:03 2012 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVAvailability.h |    2 +-
 CordovaLib/Classes/CDVLocalStorage.m |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/4f17bb46/CordovaLib/Classes/CDVAvailability.h
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVAvailability.h b/CordovaLib/Classes/CDVAvailability.h
index fa77ad1..e410aff 100644
--- a/CordovaLib/Classes/CDVAvailability.h
+++ b/CordovaLib/Classes/CDVAvailability.h
@@ -47,5 +47,5 @@
          // do something for iOS 5.1 or greater
      }
  */
-#define IsiOSVersion(X) ([[[UIDevice currentDevice] systemVersion] compare:X options:NSNumericSearch]
!= NSOrderedAscending)
+#define IsAtLeastiOSVersion(X) ([[[UIDevice currentDevice] systemVersion] compare:X options:NSNumericSearch]
!= NSOrderedAscending)
 

http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/4f17bb46/CordovaLib/Classes/CDVLocalStorage.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVLocalStorage.m b/CordovaLib/Classes/CDVLocalStorage.m
index 26efdf7..628bb27 100644
--- a/CordovaLib/Classes/CDVLocalStorage.m
+++ b/CordovaLib/Classes/CDVLocalStorage.m
@@ -55,7 +55,7 @@
         //////////// LOCALSTORAGE
         
         original = [[appLibraryFolder stringByAppendingPathComponent:
-                                 (IsiOSVersion(@"5.1")) ? @"Caches" : @"WebKit/LocalStorage"]
+                                 (IsAtLeastiOSVersion(@"5.1")) ? @"Caches" : @"WebKit/LocalStorage"]
                                  stringByAppendingPathComponent:@"file__0.localstorage"];

                                    
         backup = [backupsFolder stringByAppendingPathComponent:@"localstorage.appdata.db"];
@@ -70,7 +70,7 @@
         //////////// WEBSQL MAIN DB
 
         original = [[appLibraryFolder stringByAppendingPathComponent:
-                     (IsiOSVersion(@"5.1")) ? @"Caches" : @"WebKit/Databases"]
+                     (IsAtLeastiOSVersion(@"5.1")) ? @"Caches" : @"WebKit/Databases"]
                     stringByAppendingPathComponent:@"Databases.db"]; 
         
         backup = [backupsFolder stringByAppendingPathComponent:@"websqlmain.appdata.db"];
@@ -85,7 +85,7 @@
         //////////// WEBSQL DATABASES
         
         original = [[appLibraryFolder stringByAppendingPathComponent:
-                     (IsiOSVersion(@"5.1")) ? @"Caches" : @"WebKit/Databases"]
+                     (IsAtLeastiOSVersion(@"5.1")) ? @"Caches" : @"WebKit/Databases"]
                     stringByAppendingPathComponent:@"file__0"]; 
         
         backup = [backupsFolder stringByAppendingPathComponent:@"websqldbs.appdata.db"];


Mime
View raw message