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 2013/07/11 02:21:58 UTC

git commit: [CB-2686] Update Connection reachability to 'cellular' and remove deprecation notice.

Updated Branches:
  refs/heads/master 7abafdf62 -> b6b48e9d6


[CB-2686] Update Connection reachability to 'cellular' and remove deprecation notice.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/commit/b6b48e9d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/tree/b6b48e9d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/diff/b6b48e9d

Branch: refs/heads/master
Commit: b6b48e9d6ef8b45b61ec01021c4b80f0082ff05a
Parents: 7abafdf
Author: Shazron Abdullah <sh...@apache.org>
Authored: Wed Jul 10 17:21:50 2013 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Wed Jul 10 17:21:50 2013 -0700

----------------------------------------------------------------------
 src/ios/CDVConnection.m | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/b6b48e9d/src/ios/CDVConnection.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVConnection.m b/src/ios/CDVConnection.m
index b3f5cab..3cfdc33 100644
--- a/src/ios/CDVConnection.m
+++ b/src/ios/CDVConnection.m
@@ -52,8 +52,7 @@
             return @"none";
 
         case ReachableViaWWAN:
-            // Return value of '2g' is deprecated as of 2.6.0 and will be replaced with 'cellular' in 3.0.0
-            return @"2g";
+            return @"cellular";
 
         case ReachableViaWiFi:
             return @"wifi";
@@ -113,7 +112,6 @@
         self.internetReach = [CDVReachability reachabilityForInternetConnection];
         self.connectionType = [self w3cConnectionTypeFor:self.internetReach];
         [self.internetReach startNotifier];
-        [self printDeprecationNotice];
         [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateConnectionType:)
                                                      name:kReachabilityChangedNotification object:nil];
         if (&UIApplicationDidEnterBackgroundNotification && &UIApplicationWillEnterForegroundNotification) {
@@ -124,9 +122,4 @@
     return self;
 }
 
-- (void)printDeprecationNotice
-{
-    NSLog(@"DEPRECATION NOTICE: The Connection ReachableViaWWAN return value of '2g' is deprecated as of Cordova version 2.6.0 and will be changed to 'cellular' in a future release. ");
-}
-
 @end