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 15:52:05 UTC
[1/2] cordova-plugin-device-orientation git commit: CB-8659: ios:
4.0.x Compatibility: Remove use of initWebView method
Repository: cordova-plugin-device-orientation
Updated Branches:
refs/heads/master 527bb316e -> 4a3ca8a69
CB-8659: ios: 4.0.x Compatibility: Remove use of initWebView method
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/commit/4a3ca8a6
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/tree/4a3ca8a6
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/diff/4a3ca8a6
Branch: refs/heads/master
Commit: 4a3ca8a69ab1244d3a05db7fde89e18dc7659539
Parents: b90ce09
Author: Ian Clelland <ic...@chromium.org>
Authored: Fri Mar 13 10:51:36 2015 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Fri Mar 13 10:51:47 2015 -0400
----------------------------------------------------------------------
src/ios/CDVCompass.m | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/blob/4a3ca8a6/src/ios/CDVCompass.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVCompass.m b/src/ios/CDVCompass.m
index 08064c9..ebe6b60 100644
--- a/src/ios/CDVCompass.m
+++ b/src/ios/CDVCompass.m
@@ -56,17 +56,13 @@
@synthesize locationManager, headingData;
-- (CDVPlugin*)initWithWebView:(UIWebView*)theWebView
+- (void)pluginInitialize
{
- self = (CDVCompass*)[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.headingData = 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.headingData = nil;
}
- (BOOL)hasHeadingSupport
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[2/2] cordova-plugin-device-orientation 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-device-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/commit/b90ce09a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/tree/b90ce09a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/diff/b90ce09a
Branch: refs/heads/master
Commit: b90ce09a16ddaa0a9e13061f6e1a28b1955c3267
Parents: 527bb31
Author: Ian Clelland <ic...@chromium.org>
Authored: Fri Mar 13 10:51:18 2015 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Fri Mar 13 10:51:47 2015 -0400
----------------------------------------------------------------------
src/ios/CDVCompass.m | 1 -
1 file changed, 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/blob/b90ce09a/src/ios/CDVCompass.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVCompass.m b/src/ios/CDVCompass.m
index 7740b7a..08064c9 100644
--- a/src/ios/CDVCompass.m
+++ b/src/ios/CDVCompass.m
@@ -18,7 +18,6 @@
*/
#import "CDVCompass.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