You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2015/03/13 16:02:10 UTC

[1/2] cordova-plugin-geolocation git commit: CB-8659: ios: 4.0.x Compatibility: Remove use of initWebView method

Repository: cordova-plugin-geolocation
Updated Branches:
  refs/heads/master 399b164b6 -> 5c24ac4d4


CB-8659: ios: 4.0.x Compatibility: Remove use of initWebView method


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/commit/5c24ac4d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/tree/5c24ac4d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/diff/5c24ac4d

Branch: refs/heads/master
Commit: 5c24ac4d42fe51de6ced7203ab8310a8c483f25d
Parents: 4fc6d57
Author: Ian Clelland <ic...@chromium.org>
Authored: Fri Mar 13 11:01:39 2015 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Fri Mar 13 11:01:56 2015 -0400

----------------------------------------------------------------------
 src/ios/CDVLocation.m | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/blob/5c24ac4d/src/ios/CDVLocation.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVLocation.m b/src/ios/CDVLocation.m
index a16b926..8b543c8 100644
--- a/src/ios/CDVLocation.m
+++ b/src/ios/CDVLocation.m
@@ -53,17 +53,13 @@
 
 @synthesize locationManager, locationData;
 
-- (CDVPlugin*)initWithWebView:(UIWebView*)theWebView
+- (void)pluginInitialize
 {
-    self = (CDVLocation*)[super initWithWebView:(UIWebView*)theWebView];
-    if (self) {
-        self.locationManager = [[CLLocationManager alloc] init];
-        self.locationManager.delegate = self; // Tells the location manager to send updates to this object
-        __locationStarted = NO;
-        __highAccuracyEnabled = NO;
-        self.locationData = nil;
-    }
-    return self;
+    self.locationManager = [[CLLocationManager alloc] init];
+    self.locationManager.delegate = self; // Tells the location manager to send updates to this object
+    __locationStarted = NO;
+    __highAccuracyEnabled = NO;
+    self.locationData = nil;
 }
 
 - (BOOL)isAuthorized


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[2/2] cordova-plugin-geolocation git commit: CB-8659: ios: 4.0.x Compatibility: Remove use of deprecated headers

Posted by ia...@apache.org.
CB-8659: ios: 4.0.x Compatibility: Remove use of deprecated headers


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/commit/4fc6d57f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/tree/4fc6d57f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/diff/4fc6d57f

Branch: refs/heads/master
Commit: 4fc6d57fed4c2b929558e7144cc7225465d749dd
Parents: 399b164
Author: Ian Clelland <ic...@chromium.org>
Authored: Fri Mar 13 11:01:31 2015 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Fri Mar 13 11:01:56 2015 -0400

----------------------------------------------------------------------
 src/ios/CDVLocation.m | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/blob/4fc6d57f/src/ios/CDVLocation.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVLocation.m b/src/ios/CDVLocation.m
index 6fad133..a16b926 100644
--- a/src/ios/CDVLocation.m
+++ b/src/ios/CDVLocation.m
@@ -18,7 +18,6 @@
  */
 
 #import "CDVLocation.h"
-#import <Cordova/NSArray+Comparisons.h>
 
 #pragma mark Constants
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org