You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by to...@apache.org on 2016/05/23 13:41:59 UTC

[01/50] cordova-plugin-screen-orientation git commit: Removed flicker in iOS8 closes #23

Repository: cordova-plugin-screen-orientation
Updated Branches:
  refs/heads/master [created] 781a2c1e4


Removed flicker in iOS8 closes #23


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/3b7d2591
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/3b7d2591
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/3b7d2591

Branch: refs/heads/master
Commit: 3b7d259193134577abf68916b14211fda858969f
Parents: d98ea66
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Thu Sep 18 09:42:23 2014 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Thu Sep 18 09:42:23 2014 +1000

----------------------------------------------------------------------
 README.md                       | 14 ++++++++++-
 src/ios/YoikScreenOrientation.h |  6 +++++
 src/ios/YoikScreenOrientation.m | 48 ++++++++++++++++++++++++++++++------
 www/screenorientation.ios.js    |  3 +--
 4 files changed, 60 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/3b7d2591/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 2ad7bd5..5f7b745 100644
--- a/README.md
+++ b/README.md
@@ -82,10 +82,22 @@ Issue [#1](https://github.com/yoik/cordova-yoik-screenorientation/issues/1) @dok
 
 ####iOS8
 
-Versions prior to 1.2.0 will cause an application crash in iOS8.
+Versions prior to 1.2.0 will cause an application crash in iOS8 due to a change in presentViewController timing.
 
 ##BB10 Notes
 
 Wraps the com.blackberry.app plugin functions, auto installed as a dependancy.
 
+#Changelog
+
+##1.3.0
+
+* [#23](https://github.com/yoik/cordova-yoik-screenorientation/issues/23) iOS8 flicker
+
+##1.2.0-1.2.1
+
+* [#19](https://github.com/yoik/cordova-yoik-screenorientation/issues/19) iOS8 Crash
+
+
+
 Pull requests welcome.

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/3b7d2591/src/ios/YoikScreenOrientation.h
----------------------------------------------------------------------
diff --git a/src/ios/YoikScreenOrientation.h b/src/ios/YoikScreenOrientation.h
index 4ec730d..95da6e8 100644
--- a/src/ios/YoikScreenOrientation.h
+++ b/src/ios/YoikScreenOrientation.h
@@ -29,4 +29,10 @@ SOFTWARE.
 
 - (void)screenOrientation:(CDVInvokedUrlCommand *)command;
 
+@end
+
+@interface ForcedViewController : UIViewController
+
+@property (strong, nonatomic) NSString *calledWith;
+
 @end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/3b7d2591/src/ios/YoikScreenOrientation.m
----------------------------------------------------------------------
diff --git a/src/ios/YoikScreenOrientation.m b/src/ios/YoikScreenOrientation.m
index 3cf8eb1..17ca3db 100644
--- a/src/ios/YoikScreenOrientation.m
+++ b/src/ios/YoikScreenOrientation.m
@@ -27,12 +27,8 @@ SOFTWARE.
 
 -(void)screenOrientation:(CDVInvokedUrlCommand *)command
 {
-    // this method does not control the orientation, it is set in the .js file.
-
-    // SEE https://github.com/Adlotto/cordova-plugin-recheck-screen-orientation
-    // HACK: Force rotate by changing the view hierarchy. Present modal view then dismiss it immediately.
-    [self.viewController presentViewController:[UIViewController new] animated:NO completion:nil];
-    [self.viewController dismissViewControllerAnimated:NO completion:nil];
+    NSArray* arguments = command.arguments;
+    NSString* orientationIn = [arguments objectAtIndex:1];
 
     // grab the device orientation so we can pass it back to the js side.
     NSString *orientation;
@@ -53,10 +49,46 @@ SOFTWARE.
             orientation = @"portait";
             break;
     }
-    CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK
-                                                  messageAsDictionary:@{@"device":orientation}];
 
+    if ([orientationIn isEqual: @"unlocked"]) {
+        orientationIn = orientation;
+    }
+
+    // we send the result prior to the view controller presentation so that the JS side
+    // is ready for the unlock call.
+    CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK
+        messageAsDictionary:@{@"device":orientation}];
     [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
+
+    // SEE https://github.com/Adlotto/cordova-plugin-recheck-screen-orientation
+    // HACK: Force rotate by changing the view hierarchy. Present modal view then dismiss it immediately
+    // This has been changed substantially since iOS8 broke it...
+    ForcedViewController *vc = [[ForcedViewController alloc] init];
+    vc.calledWith = orientationIn;
+
+    // backgound should be transparent as it is briefly visible
+    // prior to closing.
+    vc.view.backgroundColor = [UIColor clearColor];
+    // vc.view.alpha = 0.0;
+    vc.view.opaque = YES;
+    // This stops us getting the black application background flash, iOS8
+    vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
+
+    [self.viewController presentViewController:vc animated:NO completion:nil];
+    [self.viewController dismissViewControllerAnimated:NO completion:nil];
 }
 
+@end
+
+@implementation ForcedViewController
+
+- (NSUInteger) supportedInterfaceOrientations
+{
+    if ([self.calledWith rangeOfString:@"portrait"].location != NSNotFound) {
+        return UIInterfaceOrientationMaskPortrait;
+    } else if([self.calledWith rangeOfString:@"landscape"].location != NSNotFound) {
+        return UIInterfaceOrientationMaskLandscape;
+    }
+    return UIInterfaceOrientationMaskAll;
+}
 @end
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/3b7d2591/www/screenorientation.ios.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.ios.js b/www/screenorientation.ios.js
index 9cb878b..11d30f7 100644
--- a/www/screenorientation.ios.js
+++ b/www/screenorientation.ios.js
@@ -17,10 +17,9 @@ screenOrientation.setOrientation = function(orientation) {
     var success = function(res) {
         if (orientation === 'unlocked' && res.device) {
             iosOrientation = res.device;
-
             setTimeout(function() {
                 iosOrientation = 'unlocked';
-            },0);
+            },300);
         }
     };
 


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


[09/50] cordova-plugin-screen-orientation git commit: bump

Posted by to...@apache.org.
bump


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/dd53a580
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/dd53a580
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/dd53a580

Branch: refs/heads/master
Commit: dd53a580200a30954e8a1bd4ae2b804cf321634e
Parents: b088c1f
Author: eddyverbruggen@gmail.com <xs4allallall>
Authored: Wed Apr 22 23:29:38 2015 +0200
Committer: eddyverbruggen@gmail.com <xs4allallall>
Committed: Wed Apr 22 23:29:38 2015 +0200

----------------------------------------------------------------------
 plugin.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/dd53a580/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 2d6fe5c..832bb55 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="net.yoik.cordova.plugins.screenorientation"
-    version="1.3.2">
+    version="1.3.2.1">
 
     <name>Screen Orientation</name>
     <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS and BB10.</description>


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


[28/50] cordova-plugin-screen-orientation git commit: Fix

Posted by to...@apache.org.
Fix

Fix


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/9ba47605
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/9ba47605
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/9ba47605

Branch: refs/heads/master
Commit: 9ba47605034f63bf0810e7ed22906383a84d8c58
Parents: 7a11a3d
Author: tokotchd <to...@gmail.com>
Authored: Fri Aug 7 12:14:11 2015 -0400
Committer: tokotchd <to...@gmail.com>
Committed: Fri Aug 7 12:14:11 2015 -0400

----------------------------------------------------------------------
 www/screenorientation.windows.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/9ba47605/www/screenorientation.windows.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.windows.js b/www/screenorientation.windows.js
index 80edcf5..cbe0ed0 100644
--- a/www/screenorientation.windows.js
+++ b/www/screenorientation.windows.js
@@ -1,6 +1,6 @@
 var screenOrientation = {};
 
-screenOrientation.lockOrientation = function (orientation) {
+screenOrientation.setOrientation = function (orientation) {
     var orientationNumber;
     switch (orientation) {
         case 'landscape':


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


[20/50] cordova-plugin-screen-orientation git commit: background thread for ios

Posted by to...@apache.org.
background thread for ios


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/f3d451c7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/f3d451c7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/f3d451c7

Branch: refs/heads/master
Commit: f3d451c72cd56cb471ad6db5641ea59eca6fcd03
Parents: 4c86a0d
Author: orlando-antonino <or...@gmail.com>
Authored: Thu May 14 10:57:52 2015 +0200
Committer: orlando-antonino <or...@gmail.com>
Committed: Thu May 14 10:57:52 2015 +0200

----------------------------------------------------------------------
 src/ios/YoikScreenOrientation.m | 114 ++++++++++++++++++-----------------
 1 file changed, 60 insertions(+), 54 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/f3d451c7/src/ios/YoikScreenOrientation.m
----------------------------------------------------------------------
diff --git a/src/ios/YoikScreenOrientation.m b/src/ios/YoikScreenOrientation.m
index 4dd77c3..06d1316 100644
--- a/src/ios/YoikScreenOrientation.m
+++ b/src/ios/YoikScreenOrientation.m
@@ -27,61 +27,67 @@ SOFTWARE.
 
 -(void)screenOrientation:(CDVInvokedUrlCommand *)command
 {
-    NSArray* arguments = command.arguments;
-    NSString* orientationIn = [arguments objectAtIndex:1];
-
-    // grab the device orientation so we can pass it back to the js side.
-    NSString *orientation;
-    switch ([[UIDevice currentDevice] orientation]) {
-        case UIDeviceOrientationLandscapeLeft:
-            orientation = @"landscape-secondary";
-            break;
-        case UIDeviceOrientationLandscapeRight:
-            orientation = @"landscape-primary";
-            break;
-        case UIDeviceOrientationPortrait:
-            orientation = @"portrait-primary";
-            break;
-        case UIDeviceOrientationPortraitUpsideDown:
-            orientation = @"portrait-secondary";
-            break;
-        default:
-            orientation = @"portait";
-            break;
-    }
-
-    if ([orientationIn isEqual: @"unlocked"]) {
-        orientationIn = orientation;
-    }
-
-    // we send the result prior to the view controller presentation so that the JS side
-    // is ready for the unlock call.
-    CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK
-        messageAsDictionary:@{@"device":orientation}];
-    [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
-
-    // SEE https://github.com/Adlotto/cordova-plugin-recheck-screen-orientation
-    // HACK: Force rotate by changing the view hierarchy. Present modal view then dismiss it immediately
-    // This has been changed substantially since iOS8 broke it...
-    ForcedViewController *vc = [[ForcedViewController alloc] init];
-    vc.calledWith = orientationIn;
-
-    // backgound should be transparent as it is briefly visible
-    // prior to closing.
-    vc.view.backgroundColor = [UIColor clearColor];
-    // vc.view.alpha = 0.0;
-    vc.view.opaque = YES;
-
-#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
-    // This stops us getting the black application background flash, iOS8
-    vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
-#endif
-
-    [self.viewController presentViewController:vc animated:NO completion:^{
-        // added to support iOS8 beta 5, @see issue #19
-        dispatch_after(0, dispatch_get_main_queue(), ^{
-            [self.viewController dismissViewControllerAnimated:NO completion:nil];
+    [self.commandDelegate runInBackground:^{
+
+        NSArray* arguments = command.arguments;
+        NSString* orientationIn = [arguments objectAtIndex:1];
+
+        // grab the device orientation so we can pass it back to the js side.
+        NSString *orientation;
+        switch ([[UIDevice currentDevice] orientation]) {
+            case UIDeviceOrientationLandscapeLeft:
+                orientation = @"landscape-secondary";
+                break;
+            case UIDeviceOrientationLandscapeRight:
+                orientation = @"landscape-primary";
+                break;
+            case UIDeviceOrientationPortrait:
+                orientation = @"portrait-primary";
+                break;
+            case UIDeviceOrientationPortraitUpsideDown:
+                orientation = @"portrait-secondary";
+                break;
+            default:
+                orientation = @"portait";
+                break;
+        }
+
+        if ([orientationIn isEqual: @"unlocked"]) {
+            orientationIn = orientation;
+        }
+
+        // we send the result prior to the view controller presentation so that the JS side
+        // is ready for the unlock call.
+        CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK
+            messageAsDictionary:@{@"device":orientation}];
+        [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
+
+        // SEE https://github.com/Adlotto/cordova-plugin-recheck-screen-orientation
+        // HACK: Force rotate by changing the view hierarchy. Present modal view then dismiss it immediately
+        // This has been changed substantially since iOS8 broke it...
+        ForcedViewController *vc = [[ForcedViewController alloc] init];
+        vc.calledWith = orientationIn;
+
+        // backgound should be transparent as it is briefly visible
+        // prior to closing.
+        vc.view.backgroundColor = [UIColor clearColor];
+        // vc.view.alpha = 0.0;
+        vc.view.opaque = YES;
+        
+    #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
+        // This stops us getting the black application background flash, iOS8
+        vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
+    #endif
+    
+        dispatch_async(dispatch_get_main_queue(), ^{
+            [self.viewController presentViewController:vc animated:NO completion:^{
+                // added to support iOS8 beta 5, @see issue #19
+                dispatch_after(0, dispatch_get_main_queue(), ^{
+                    [self.viewController dismissViewControllerAnimated:NO completion:nil];
+                });
+            }];
         });
+
     }];
 }
 


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


[33/50] cordova-plugin-screen-orientation git commit: Merge pull request #54 from orlando-antonino/master

Posted by to...@apache.org.
Merge pull request #54 from orlando-antonino/master

background thread for ios

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/c7e3cf42
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/c7e3cf42
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/c7e3cf42

Branch: refs/heads/master
Commit: c7e3cf423fac724471402192b4cb1094a1d3815b
Parents: 0eb6d35 f3d451c
Author: Grant Benvenuti <gr...@gmail.com>
Authored: Mon Aug 10 09:46:00 2015 +1000
Committer: Grant Benvenuti <gr...@gmail.com>
Committed: Mon Aug 10 09:46:00 2015 +1000

----------------------------------------------------------------------
 src/ios/YoikScreenOrientation.m | 114 ++++++++++++++++++-----------------
 1 file changed, 60 insertions(+), 54 deletions(-)
----------------------------------------------------------------------



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


[08/50] cordova-plugin-screen-orientation git commit: Added support for WP8 and WP8.1. Tested in WP8.1 emulator.

Posted by to...@apache.org.
Added support for WP8 and WP8.1. Tested in WP8.1 emulator.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/b088c1fc
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/b088c1fc
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/b088c1fc

Branch: refs/heads/master
Commit: b088c1fc114c3d93a3ffdd5f6a6db1311ec21b66
Parents: 080aa28
Author: RoopeHakulinen <ro...@hotmail.com>
Authored: Fri Jan 2 17:04:45 2015 +0200
Committer: eddyverbruggen@gmail.com <xs4allallall>
Committed: Wed Apr 22 23:27:59 2015 +0200

----------------------------------------------------------------------
 plugin.xml                      |  12 ++++
 src/wp/YoikScreenOrientation.cs | 127 +++++++++++++++++++++++++++++++++++
 www/screenorientation.wp8.js    |   8 +++
 3 files changed, 147 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/b088c1fc/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 07a9b5d..2d6fe5c 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -52,4 +52,16 @@
         </js-module>
     </platform>
 
+  <platform name="wp8">
+    <config-file target="config.xml" parent="/*">
+      <feature name="YoikScreenOrientation">
+        <param name="wp-package" value="YoikScreenOrientation"/>
+      </feature>
+    </config-file>
+	  <js-module src="www/screenorientation.wp8.js" name="screenorientation.wp8">
+		  <merges target="cordova.plugins.screenorientation" />
+	  </js-module>
+    <source-file src="src/wp/YoikScreenOrientation.cs" />
+  </platform>
+
 </plugin>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/b088c1fc/src/wp/YoikScreenOrientation.cs
----------------------------------------------------------------------
diff --git a/src/wp/YoikScreenOrientation.cs b/src/wp/YoikScreenOrientation.cs
new file mode 100644
index 0000000..4663998
--- /dev/null
+++ b/src/wp/YoikScreenOrientation.cs
@@ -0,0 +1,127 @@
+/*  
+	Licensed under the Apache License, Version 2.0 (the "License");
+	you may not use this file except in compliance with the License.
+	You may obtain a copy of the License at
+	
+	http://www.apache.org/licenses/LICENSE-2.0
+	
+	Unless required by applicable law or agreed to in writing, software
+	distributed under the License is distributed on an "AS IS" BASIS,
+	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	See the License for the specific language governing permissions and
+	limitations under the License.
+*/
+
+using System;
+using System.Net;
+using System.IO;
+using Microsoft.Phone.Controls;
+using Microsoft.Phone.Notification;
+using Microsoft.Phone.Shell;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+using System.Windows.Threading;
+using System.Runtime.Serialization;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Globalization;
+using System.Threading;
+
+using WPCordovaClassLib.Cordova;
+using WPCordovaClassLib.Cordova.Commands;
+using WPCordovaClassLib.Cordova.JSON;
+
+
+namespace WPCordovaClassLib.Cordova.Commands
+{
+    public class YoikScreenOrientation : BaseCommand
+    {
+        #region Static members
+
+        private const string UNLOCKED = "unlocked";
+        private const string PORTRAIT = "portrait";
+        private const string LANDSCAPE = "landscape";
+
+        #endregion
+
+        /// <summary>
+        /// Current orientation
+        /// </summary>
+        private string currentOrientation;
+
+        public YoikScreenOrientation()
+        {
+
+        }
+
+        /// <summary>
+        /// Changes the orientation
+        /// </summary>
+
+        public void screenOrientation(string options)
+        {
+            string orientation = null;
+            try
+            {
+                orientation = JSON.JsonHelper.Deserialize<string[]>(options)[0];
+            }
+            catch (Exception ex)
+            {
+                this.DispatchCommandResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION, ex.Message));
+                return;
+            }
+
+            if (string.IsNullOrEmpty(orientation))
+            {
+                this.DispatchCommandResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION));
+                return;
+            }
+
+            if (this.currentOrientation != orientation) // Might prevent flickering
+            {
+
+                Deployment.Current.Dispatcher.BeginInvoke(() =>
+                {
+                    PhoneApplicationFrame frame;
+                    PhoneApplicationPage page;
+                    if (TryCast(Application.Current.RootVisual, out frame) &&
+                      TryCast(frame.Content, out page))
+                    {
+                        if (orientation == PORTRAIT)
+                        {
+                            page.SupportedOrientations = SupportedPageOrientation.Portrait;
+                        }
+                        else if (orientation == LANDSCAPE)
+                        {
+                            page.SupportedOrientations = SupportedPageOrientation.Landscape;
+                        }
+                        else if (orientation == UNLOCKED)
+                        {
+                            page.SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;
+                        }
+                        else
+                        {
+                            this.DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, "Screen orientation not detected."));
+                            return;
+                        }
+                        this.currentOrientation = orientation;
+                    }
+                });
+
+                this.DispatchCommandResult();
+            }
+        }
+
+        static bool TryCast<T>(object obj, out T result) where T : class
+        {
+            result = obj as T;
+            return result != null;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/b088c1fc/www/screenorientation.wp8.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.wp8.js b/www/screenorientation.wp8.js
new file mode 100644
index 0000000..4900408
--- /dev/null
+++ b/www/screenorientation.wp8.js
@@ -0,0 +1,8 @@
+var exec = require('cordova/exec'),
+	screenOrientation = {};
+
+screenOrientation.setOrientation = function(orientation) {
+	exec(null, null, "YoikScreenOrientation", "screenOrientation", [orientation]);
+};
+
+module.exports = screenOrientation;
\ No newline at end of file


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


[36/50] cordova-plugin-screen-orientation git commit: Add more readability

Posted by to...@apache.org.
Add more readability

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/479c32b6
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/479c32b6
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/479c32b6

Branch: refs/heads/master
Commit: 479c32b67cd0dc820412cad3a0eaf77b2e8ba69c
Parents: bbde995
Author: Moritz <m0...@gmail.com>
Authored: Tue Dec 8 18:14:57 2015 +0100
Committer: Moritz <m0...@gmail.com>
Committed: Tue Dec 8 18:14:57 2015 +0100

----------------------------------------------------------------------
 README.md | 72 ++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 40 insertions(+), 32 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/479c32b6/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 510d8bd..10dcf7c 100644
--- a/README.md
+++ b/README.md
@@ -2,73 +2,81 @@
 
 Cordova plugin to set/lock the screen orientation in a common way for iOS, Android, WP8 and Blackberry 10.  This plugin is based on an early version of [Screen Orientation API](http://www.w3.org/TR/screen-orientation/) so the api does not currently match the current spec.
 
-The plugin adds the following to the screen object:
+The plugin adds the following to the screen object (`window.screen`):
 
-__lockOrientation(ORIENTATION_STRING)__
-lock the device orientation
+```js
+// lock the device orientation
+.lockOrientation('portrait')
 
-__unlockOrientation()__
-unlock the orientation
+// unlock the orientation
+.unlockOrientation()
 
-__orientation__
-current orientation (ORIENTATION_STRING)
+// current orientation
+.orientation
+```
 
 ## Install
 
-cordova < 4
+_cordova < 4_
 
+```bash
 cordova plugin add net.yoik.cordova.plugins.screenorientation
+```
+_cordova > 4_
 
-cordova > 4
-
+```bash
 cordova plugin add cordova-plugin-screen-orientation
+```
 
 ## Supported Orientations
 
-__portrait-primary__
-The orientation is in the primary portrait mode.
+#### portrait-primary
+> The orientation is in the primary portrait mode.
 
-__portrait-secondary__
-The orientation is in the secondary portrait mode.
+#### portrait-secondary
+> The orientation is in the secondary portrait mode.
 
-__landscape-primary__
-The orientation is in the primary landscape mode.
+#### landscape-primary
+> The orientation is in the primary landscape mode.
 
-__landscape-secondary__
-The orientation is in the secondary landscape mode.
+#### landscape-secondary
+> The orientation is in the secondary landscape mode.
 
-__portrait__
-The orientation is either portrait-primary or portrait-secondary (sensor).
+#### portrait
+> The orientation is either portrait-primary or portrait-secondary (sensor).
 
-__landscape__
-The orientation is either landscape-primary or landscape-secondary (sensor).
+#### landscape
+> The orientation is either landscape-primary or landscape-secondary (sensor).
 
 ## Usage
 
-    // set to either landscape
-    screen.lockOrientation('landscape');
+```js
+// set to either landscape
+screen.lockOrientation('landscape');
 
-    // allow user rotate
-    screen.unlockOrientation();
+// allow user rotate
+screen.unlockOrientation();
 
-    // access current orientation
-    console.log('Orientation is ' + screen.orientation);
+// access current orientation
+console.log('Orientation is ' + screen.orientation);
+```
 
 ## Events
 
 Both android and iOS will fire the orientationchange event on the window object.
 For this version of the plugin use the window object if you require notification.
 
-
 For this plugin to follow the full API events should be fired on the screen object.
 iOS and BB10 do not currently support events on the _screen_ object so custom event
 handling will need to be added (Suggestions welcome!).
 
 ### Example usage
 
-    window.addEventListener("orientationchange", function(){
-        console.log('Orientation changed to ' + screen.orientation);
-    });
+```js
+window.addEventListener("orientationchange", function(){
+    console.log(screen.orientation); // e.g. portrait
+});
+```
 
 ## Android Notes
 


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


[34/50] cordova-plugin-screen-orientation git commit: Merge pull request #65 from tokotchd/master

Posted by to...@apache.org.
Merge pull request #65 from tokotchd/master

Added Windows 8.1 Support

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/a158cf8b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/a158cf8b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/a158cf8b

Branch: refs/heads/master
Commit: a158cf8bc1b056ae5c141fd8ca61e409cfafb0a2
Parents: c7e3cf4 3ccadfd
Author: Grant Benvenuti <gr...@gmail.com>
Authored: Mon Aug 10 09:49:36 2015 +1000
Committer: Grant Benvenuti <gr...@gmail.com>
Committed: Mon Aug 10 09:49:36 2015 +1000

----------------------------------------------------------------------
 README.md                        |  7 +++++++
 package.json                     |  4 ++--
 plugin.xml                       |  8 +++++++-
 www/screenorientation.windows.js | 33 +++++++++++++++++++++++++++++++++
 4 files changed, 49 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/a158cf8b/README.md
----------------------------------------------------------------------


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


[10/50] cordova-plugin-screen-orientation git commit: Changed version to be compatible with cordova plugin registry

Posted by to...@apache.org.
Changed version to be compatible with cordova plugin registry

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/6ef264c1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/6ef264c1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/6ef264c1

Branch: refs/heads/master
Commit: 6ef264c1eb6351d566715a95ca468b8cc9780812
Parents: dd53a58
Author: Eddy Verbruggen <Ed...@users.noreply.github.com>
Authored: Sun May 10 12:59:00 2015 +0200
Committer: Eddy Verbruggen <Ed...@users.noreply.github.com>
Committed: Sun May 10 12:59:00 2015 +0200

----------------------------------------------------------------------
 plugin.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/6ef264c1/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 832bb55..dafa2f9 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="net.yoik.cordova.plugins.screenorientation"
-    version="1.3.2.1">
+    version="1.3.3">
 
     <name>Screen Orientation</name>
     <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS and BB10.</description>


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


[26/50] cordova-plugin-screen-orientation git commit: add screen.orentation vairable update on lockOrientation()

Posted by to...@apache.org.
add screen.orentation vairable update on lockOrientation()


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/1f43b5ac
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/1f43b5ac
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/1f43b5ac

Branch: refs/heads/master
Commit: 1f43b5ac9c1f5035557e4f0efefacac41b92fa45
Parents: dda5580
Author: Johan Eliasson <jo...@allbinary.se>
Authored: Mon Jul 20 15:04:18 2015 +0200
Committer: Johan Eliasson <jo...@allbinary.se>
Committed: Mon Jul 20 15:04:18 2015 +0200

----------------------------------------------------------------------
 www/screenorientation.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/1f43b5ac/www/screenorientation.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.js b/www/screenorientation.js
index 7c74439..64c682b 100644
--- a/www/screenorientation.js
+++ b/www/screenorientation.js
@@ -56,11 +56,13 @@ function addScreenOrientationApi(obj) {
             return;
         }
         screenOrientation.currOrientation = orientation;
+        screen.orientation = screenOrientation.currOrientation;
         screenOrientation.setOrientation(orientation);
     };
 
     obj.unlockOrientation = function() {
         screenOrientation.currOrientation = 'unlocked';
+        screen.orientation = screenOrientation.currOrientation;
         screenOrientation.setOrientation('unlocked');
     };
 }


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


[50/50] cordova-plugin-screen-orientation git commit: updated readme with release notes

Posted by to...@apache.org.
updated readme with release notes


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/781a2c1e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/781a2c1e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/781a2c1e

Branch: refs/heads/master
Commit: 781a2c1e4aaeff255daa24520c03268b0e44482c
Parents: 86fc819
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Mon May 23 08:40:35 2016 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Mon May 23 08:40:35 2016 +1000

----------------------------------------------------------------------
 README.md | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/781a2c1e/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 73b41dd..9cd5d8c 100644
--- a/README.md
+++ b/README.md
@@ -133,6 +133,9 @@ Windows 8.1 Applicaitons (runtime/metro applications) will only display orientat
 
 # Changelog
 
+## 1.4.2
+* [#101](https://github.com/gbenvenuti/cordova-plugin-screen-orientation/pull/101) make iOS rotate as needed when lockOrientation is called
+
 ## 1.4.1
 * [#89](https://github.com/gbenvenuti/cordova-plugin-screen-orientation/pull/89) Fix for cordova >= 3.6.3
 


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


[14/50] cordova-plugin-screen-orientation git commit: Completed adding WP8 support

Posted by to...@apache.org.
Completed adding WP8 support


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/6c975278
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/6c975278
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/6c975278

Branch: refs/heads/master
Commit: 6c975278ea2693d621fb510850068d4c3d487fc1
Parents: 6ef264c
Author: EddyVerbruggen <ed...@gmail.com>
Authored: Wed May 13 20:17:14 2015 +0200
Committer: EddyVerbruggen <ed...@gmail.com>
Committed: Wed May 13 20:17:14 2015 +0200

----------------------------------------------------------------------
 plugin.xml                      |  2 +-
 src/wp/YoikScreenOrientation.cs | 12 +++++++++---
 2 files changed, 10 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/6c975278/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index dafa2f9..f2ef542 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="net.yoik.cordova.plugins.screenorientation"
-    version="1.3.3">
+    version="1.3.4">
 
     <name>Screen Orientation</name>
     <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS and BB10.</description>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/6c975278/src/wp/YoikScreenOrientation.cs
----------------------------------------------------------------------
diff --git a/src/wp/YoikScreenOrientation.cs b/src/wp/YoikScreenOrientation.cs
index 4663998..776ce8d 100644
--- a/src/wp/YoikScreenOrientation.cs
+++ b/src/wp/YoikScreenOrientation.cs
@@ -43,10 +43,15 @@ namespace WPCordovaClassLib.Cordova.Commands
     public class YoikScreenOrientation : BaseCommand
     {
         #region Static members
-
         private const string UNLOCKED = "unlocked";
+
         private const string PORTRAIT = "portrait";
+        private const string PORTRAIT_PRIMARY = "portrait-primary";
+        private const string PORTRAIT_SECONDARY = "portrait-secondary";
+
         private const string LANDSCAPE = "landscape";
+        private const string LANDSCAPE_PRIMARY = "landscape-primary";
+        private const string LANDSCAPE_SECONDARY = "landscape-secondary";
 
         #endregion
 
@@ -93,11 +98,12 @@ namespace WPCordovaClassLib.Cordova.Commands
                     if (TryCast(Application.Current.RootVisual, out frame) &&
                       TryCast(frame.Content, out page))
                     {
-                        if (orientation == PORTRAIT)
+                        if (orientation == PORTRAIT || orientation == PORTRAIT_PRIMARY || orientation == PORTRAIT_SECONDARY)
                         {
                             page.SupportedOrientations = SupportedPageOrientation.Portrait;
                         }
-                        else if (orientation == LANDSCAPE)
+
+                        else if (orientation == LANDSCAPE || orientation == LANDSCAPE_PRIMARY || orientation == LANDSCAPE_SECONDARY)
                         {
                             page.SupportedOrientations = SupportedPageOrientation.Landscape;
                         }


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


[16/50] cordova-plugin-screen-orientation git commit: Added WP8 support

Posted by to...@apache.org.
Added WP8 support


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/865c81a0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/865c81a0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/865c81a0

Branch: refs/heads/master
Commit: 865c81a09effa5a4176de8882bcbfbb1b7f11d25
Parents: b3aadac
Author: EddyVerbruggen <ed...@gmail.com>
Authored: Wed May 13 20:30:41 2015 +0200
Committer: EddyVerbruggen <ed...@gmail.com>
Committed: Wed May 13 20:30:41 2015 +0200

----------------------------------------------------------------------
 plugin.xml                      |  14 +++-
 src/wp/YoikScreenOrientation.cs | 133 +++++++++++++++++++++++++++++++++++
 www/screenorientation.wp8.js    |   8 +++
 3 files changed, 154 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/865c81a0/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 07a9b5d..874d7da 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="net.yoik.cordova.plugins.screenorientation"
-    version="1.3.2">
+    version="1.3.3">
 
     <name>Screen Orientation</name>
     <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS and BB10.</description>
@@ -52,4 +52,16 @@
         </js-module>
     </platform>
 
+    <platform name="wp8">
+        <config-file target="config.xml" parent="/*">
+            <feature name="YoikScreenOrientation">
+                <param name="wp-package" value="YoikScreenOrientation"/>
+            </feature>
+        </config-file>
+        <js-module src="www/screenorientation.wp8.js" name="screenorientation.wp8">
+            <merges target="cordova.plugins.screenorientation" />
+        </js-module>
+        <source-file src="src/wp/YoikScreenOrientation.cs" />
+    </platform>
+
 </plugin>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/865c81a0/src/wp/YoikScreenOrientation.cs
----------------------------------------------------------------------
diff --git a/src/wp/YoikScreenOrientation.cs b/src/wp/YoikScreenOrientation.cs
new file mode 100644
index 0000000..00545e3
--- /dev/null
+++ b/src/wp/YoikScreenOrientation.cs
@@ -0,0 +1,133 @@
+/*
+	Licensed under the Apache License, Version 2.0 (the "License");
+	you may not use this file except in compliance with the License.
+	You may obtain a copy of the License at
+
+	http://www.apache.org/licenses/LICENSE-2.0
+
+	Unless required by applicable law or agreed to in writing, software
+	distributed under the License is distributed on an "AS IS" BASIS,
+	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	See the License for the specific language governing permissions and
+	limitations under the License.
+*/
+
+using System;
+using System.Net;
+using System.IO;
+using Microsoft.Phone.Controls;
+using Microsoft.Phone.Notification;
+using Microsoft.Phone.Shell;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+using System.Windows.Threading;
+using System.Runtime.Serialization;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Globalization;
+using System.Threading;
+
+using WPCordovaClassLib.Cordova;
+using WPCordovaClassLib.Cordova.Commands;
+using WPCordovaClassLib.Cordova.JSON;
+
+
+namespace WPCordovaClassLib.Cordova.Commands
+{
+    public class YoikScreenOrientation : BaseCommand
+    {
+        #region Static members
+        private const string UNLOCKED = "unlocked";
+
+        private const string PORTRAIT = "portrait";
+        private const string PORTRAIT_PRIMARY = "portrait-primary";
+        private const string PORTRAIT_SECONDARY = "portrait-secondary";
+
+        private const string LANDSCAPE = "landscape";
+        private const string LANDSCAPE_PRIMARY = "landscape-primary";
+        private const string LANDSCAPE_SECONDARY = "landscape-secondary";
+
+        #endregion
+
+        /// <summary>
+        /// Current orientation
+        /// </summary>
+        private string currentOrientation;
+
+        public YoikScreenOrientation()
+        {
+
+        }
+
+        /// <summary>
+        /// Changes the orientation
+        /// </summary>
+
+        public void screenOrientation(string options)
+        {
+            string orientation = null;
+            try
+            {
+                orientation = JSON.JsonHelper.Deserialize<string[]>(options)[0];
+            }
+            catch (Exception ex)
+            {
+                this.DispatchCommandResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION, ex.Message));
+                return;
+            }
+
+            if (string.IsNullOrEmpty(orientation))
+            {
+                this.DispatchCommandResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION));
+                return;
+            }
+
+            if (this.currentOrientation != orientation) // Might prevent flickering
+            {
+
+                Deployment.Current.Dispatcher.BeginInvoke(() =>
+                {
+                    PhoneApplicationFrame frame;
+                    PhoneApplicationPage page;
+                    if (TryCast(Application.Current.RootVisual, out frame) &&
+                      TryCast(frame.Content, out page))
+                    {
+                        if (orientation == PORTRAIT || orientation == PORTRAIT_PRIMARY || orientation == PORTRAIT_SECONDARY)
+                        {
+                            page.SupportedOrientations = SupportedPageOrientation.Portrait;
+                        }
+
+                        else if (orientation == LANDSCAPE || orientation == LANDSCAPE_PRIMARY || orientation == LANDSCAPE_SECONDARY)
+                        {
+                            page.SupportedOrientations = SupportedPageOrientation.Landscape;
+                        }
+                        else if (orientation == UNLOCKED)
+                        {
+                            page.SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;
+                        }
+                        else
+                        {
+                            this.DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, "Screen orientation not detected."));
+                            return;
+                        }
+                        this.currentOrientation = orientation;
+                    }
+                });
+
+                this.DispatchCommandResult();
+            }
+        }
+
+        static bool TryCast<T>(object obj, out T result) where T : class
+        {
+            result = obj as T;
+            return result != null;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/865c81a0/www/screenorientation.wp8.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.wp8.js b/www/screenorientation.wp8.js
new file mode 100644
index 0000000..9dd64ae
--- /dev/null
+++ b/www/screenorientation.wp8.js
@@ -0,0 +1,8 @@
+var exec = require('cordova/exec'),
+    screenOrientation = {};
+
+screenOrientation.setOrientation = function(orientation) {
+    exec(null, null, "YoikScreenOrientation", "screenOrientation", [orientation]);
+};
+
+module.exports = screenOrientation;
\ No newline at end of file


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


[23/50] cordova-plugin-screen-orientation git commit: Fixed typo in package.json

Posted by to...@apache.org.
Fixed typo in package.json


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/9244abcb
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/9244abcb
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/9244abcb

Branch: refs/heads/master
Commit: 9244abcbbe6a4c06cc1f12e81df734566910b579
Parents: 79a9ab8
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Fri May 22 08:56:57 2015 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Fri May 22 08:56:57 2015 +1000

----------------------------------------------------------------------
 package.json | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/9244abcb/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 6610d33..6430b2f 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
 {
-  "name": "cordova-plugin-screen-orientaion",
+  "name": "cordova-plugin-screen-orientation",
   "version": "1.3.6",
   "description": "Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8 and BB10.",
   "repository": {
@@ -7,7 +7,7 @@
     "url": "git+https://github.com/gbenvenuti/cordova-plugin-screen-orientation.git"
   },
   "cordova": {
-    "id": "cordova-plugin-screen-orientaion",
+    "id": "cordova-plugin-screen-orientation",
     "platforms": [
       "android",
       "ios",


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


[11/50] cordova-plugin-screen-orientation git commit: Merge pull request #49 from Telerik-Verified-Plugins/master

Posted by to...@apache.org.
Merge pull request #49 from Telerik-Verified-Plugins/master

Added WP support

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/1b0dee5a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/1b0dee5a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/1b0dee5a

Branch: refs/heads/master
Commit: 1b0dee5a9f362303b4a5e4710caf52fc4af59c40
Parents: 080aa28 6ef264c
Author: Grant Benvenuti <gr...@gmail.com>
Authored: Tue May 12 10:04:35 2015 +1000
Committer: Grant Benvenuti <gr...@gmail.com>
Committed: Tue May 12 10:04:35 2015 +1000

----------------------------------------------------------------------
 plugin.xml                      |  14 +++-
 src/wp/YoikScreenOrientation.cs | 127 +++++++++++++++++++++++++++++++++++
 www/screenorientation.wp8.js    |   8 +++
 3 files changed, 148 insertions(+), 1 deletion(-)
----------------------------------------------------------------------



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


[25/50] cordova-plugin-screen-orientation git commit: correct orientation naming

Posted by to...@apache.org.
correct orientation naming


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/dda55807
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/dda55807
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/dda55807

Branch: refs/heads/master
Commit: dda55807c74649ee13d94bb5221967f9764f7245
Parents: 4f36055
Author: Johan Eliasson <jo...@allbinary.se>
Authored: Mon Jul 20 14:37:52 2015 +0200
Committer: Johan Eliasson <jo...@allbinary.se>
Committed: Mon Jul 20 14:37:52 2015 +0200

----------------------------------------------------------------------
 www/screenorientation.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/dda55807/www/screenorientation.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.js b/www/screenorientation.js
index eb5df68..7c74439 100644
--- a/www/screenorientation.js
+++ b/www/screenorientation.js
@@ -76,13 +76,13 @@ function orientationChange() {
              orientation = 'portrait-primary';
              break;
         case 90:
-            orientation = 'landscape-secondary';
+            orientation = 'landscape-primary';
             break;
         case 180:
             orientation = 'portrait-secondary';
             break;
         case -90:
-            orientation = 'landscape-primary';
+            orientation = 'landscape-secondary';
             break;
         default:
             orientation = 'unknown';


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


[45/50] cordova-plugin-screen-orientation git commit: make iOS rotate as needed when lockOrientation is called

Posted by to...@apache.org.
make iOS rotate as needed when lockOrientation is called


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/ec3e90db
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/ec3e90db
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/ec3e90db

Branch: refs/heads/master
Commit: ec3e90dbc84f5ade4a3644517aae8af7dbae1f0e
Parents: ff0d1fb
Author: Tony Homer <to...@intel.com>
Authored: Fri Apr 22 10:55:44 2016 -0400
Committer: Tony Homer <to...@intel.com>
Committed: Mon May 16 15:30:58 2016 -0400

----------------------------------------------------------------------
 ...ViewController+UpdateSupportedOrientations.h | 31 +++++++++++++++++
 ...ViewController+UpdateSupportedOrientations.m | 35 ++++++++++++++++++++
 src/ios/YoikScreenOrientation.h                 |  1 +
 src/ios/YoikScreenOrientation.m                 | 27 ++++++++++-----
 4 files changed, 85 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/ec3e90db/src/ios/CDVViewController+UpdateSupportedOrientations.h
----------------------------------------------------------------------
diff --git a/src/ios/CDVViewController+UpdateSupportedOrientations.h b/src/ios/CDVViewController+UpdateSupportedOrientations.h
new file mode 100644
index 0000000..cdd4073
--- /dev/null
+++ b/src/ios/CDVViewController+UpdateSupportedOrientations.h
@@ -0,0 +1,31 @@
+/*
+ The MIT License (MIT)
+ 
+ Copyright (c) 2014
+ 
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ 
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ 
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+ */
+
+#import <Cordova/CDVViewController.h>
+
+@interface CDVViewController (UpdateSupportedOrientations)
+
+- (void)updateSupportedOrientations:(NSArray *)orientations;
+
+@end

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/ec3e90db/src/ios/CDVViewController+UpdateSupportedOrientations.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVViewController+UpdateSupportedOrientations.m b/src/ios/CDVViewController+UpdateSupportedOrientations.m
new file mode 100644
index 0000000..03421b7
--- /dev/null
+++ b/src/ios/CDVViewController+UpdateSupportedOrientations.m
@@ -0,0 +1,35 @@
+/*
+ The MIT License (MIT)
+ 
+ Copyright (c) 2014
+ 
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ 
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ 
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+ */
+
+#import "CDVViewController+UpdateSupportedOrientations.h"
+
+@implementation CDVViewController (UpdateSupportedOrientations)
+
+- (void)updateSupportedOrientations:(NSArray *)orientations {
+	
+	[self setValue:orientations forKey:@"supportedOrientations"];
+
+}
+
+@end

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/ec3e90db/src/ios/YoikScreenOrientation.h
----------------------------------------------------------------------
diff --git a/src/ios/YoikScreenOrientation.h b/src/ios/YoikScreenOrientation.h
index a90b9c6..dd23599 100644
--- a/src/ios/YoikScreenOrientation.h
+++ b/src/ios/YoikScreenOrientation.h
@@ -20,6 +20,7 @@
 */
 
 #import <Cordova/CDVPlugin.h>
+#import <Cordova/CDVViewController.h>
 
 @interface YoikScreenOrientation : CDVPlugin
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/ec3e90db/src/ios/YoikScreenOrientation.m
----------------------------------------------------------------------
diff --git a/src/ios/YoikScreenOrientation.m b/src/ios/YoikScreenOrientation.m
index e87367c..9ffe8fa 100644
--- a/src/ios/YoikScreenOrientation.m
+++ b/src/ios/YoikScreenOrientation.m
@@ -20,6 +20,7 @@
 */
 
 #import "YoikScreenOrientation.h"
+#import "CDVViewController+UpdateSupportedOrientations.h"
 
 @implementation YoikScreenOrientation
 
@@ -61,9 +62,8 @@
         [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
 
         // SEE https://github.com/Adlotto/cordova-plugin-recheck-screen-orientation
-        // HACK: Force rotate by changing the view hierarchy. Present modal view then dismiss it immediately
-        // This has been changed substantially since iOS8 broke it...
-        ForcedViewController *vc = [[ForcedViewController alloc] init];
+        // HACK: Force rotate by changing the view hierarchy.
+		ForcedViewController *vc = [[ForcedViewController alloc] init];
         vc.calledWith = orientationIn;
 
         // backgound should be transparent as it is briefly visible
@@ -78,12 +78,7 @@
 #endif
 
         dispatch_async(dispatch_get_main_queue(), ^{
-            [self.viewController presentViewController:vc animated:NO completion:^{
-                // added to support iOS8 beta 5, @see issue #19
-                dispatch_after(0, dispatch_get_main_queue(), ^{
-                    [self.viewController dismissViewControllerAnimated:NO completion:nil];
-                });
-            }];
+            [self.viewController presentViewController:vc animated:NO completion:nil];
         });
 
     }];
@@ -93,6 +88,20 @@
 
 @implementation ForcedViewController
 
+-(void) viewDidAppear:(BOOL)animated {
+	CDVViewController *presenter = (CDVViewController*)self.presentingViewController;
+	
+	if ([self.calledWith rangeOfString:@"portrait"].location != NSNotFound) {
+		[presenter updateSupportedOrientations:@[[NSNumber numberWithInt:UIInterfaceOrientationPortrait]]];
+
+	} else if([self.calledWith rangeOfString:@"landscape"].location != NSNotFound) {
+		[presenter updateSupportedOrientations:@[[NSNumber numberWithInt:UIInterfaceOrientationLandscapeLeft], [NSNumber numberWithInt:UIInterfaceOrientationLandscapeRight]]];
+	} else {
+		[presenter updateSupportedOrientations:@[[NSNumber numberWithInt:UIInterfaceOrientationLandscapeLeft], [NSNumber numberWithInt:UIInterfaceOrientationLandscapeRight], [NSNumber numberWithInt:UIInterfaceOrientationPortrait]]];
+	}
+	[presenter dismissViewControllerAnimated:NO completion:nil];
+}
+
 - (UIInterfaceOrientationMask) supportedInterfaceOrientations
 {
     if ([self.calledWith rangeOfString:@"portrait"].location != NSNotFound) {


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


[42/50] cordova-plugin-screen-orientation git commit: 1.4.1

Posted by to...@apache.org.
1.4.1


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/63b664a3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/63b664a3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/63b664a3

Branch: refs/heads/master
Commit: 63b664a352bcfebe325fbd975bf45b8c2cb44758
Parents: 7dc72e0
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Fri Mar 4 20:09:03 2016 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Fri Mar 4 20:09:03 2016 +1000

----------------------------------------------------------------------
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/63b664a3/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 9d20940..b5d74f3 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "cordova-plugin-screen-orientation",
-  "version": "1.4.0",
+  "version": "1.4.1",
   "description": "Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8, W8.1, and BB10.",
   "repository": {
     "type": "git",


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


[18/50] cordova-plugin-screen-orientation git commit: Updated plugin readme to mention WP8

Posted by to...@apache.org.
Updated plugin readme to mention WP8


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/51a6fc81
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/51a6fc81
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/51a6fc81

Branch: refs/heads/master
Commit: 51a6fc81669ba92d97d66b795613960daa2c8c75
Parents: 7b8655e
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Thu May 14 14:00:29 2015 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Thu May 14 14:00:29 2015 +1000

----------------------------------------------------------------------
 plugin.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/51a6fc81/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 874d7da..8f02208 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -5,7 +5,7 @@
     version="1.3.3">
 
     <name>Screen Orientation</name>
-    <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS and BB10.</description>
+    <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8 and BB10.</description>
     <license>MIT</license>
 
     <engines>


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


[30/50] cordova-plugin-screen-orientation git commit: Merge pull request #64 from elitan/master

Posted by to...@apache.org.
Merge pull request #64 from elitan/master

README events example added and orientation naming bug in orientationChange()

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/1195b406
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/1195b406
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/1195b406

Branch: refs/heads/master
Commit: 1195b406129f26628438f306143c0a20262ee226
Parents: 9244abc 1f43b5a
Author: Grant Benvenuti <gr...@gmail.com>
Authored: Mon Aug 10 09:33:36 2015 +1000
Committer: Grant Benvenuti <gr...@gmail.com>
Committed: Mon Aug 10 09:33:36 2015 +1000

----------------------------------------------------------------------
 README.md                | 6 ++++++
 www/screenorientation.js | 6 ++++--
 2 files changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------



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


[47/50] cordova-plugin-screen-orientation git commit: adding missing files to plugin.xml

Posted by to...@apache.org.
adding missing files to plugin.xml


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/f0d18db9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/f0d18db9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/f0d18db9

Branch: refs/heads/master
Commit: f0d18db90ee4bb5b8d0a990cec550bc05ba73cfa
Parents: ec3e90d
Author: Tony Homer <to...@intel.com>
Authored: Tue Apr 26 18:20:48 2016 -0400
Committer: Tony Homer <to...@intel.com>
Committed: Mon May 16 15:30:58 2016 -0400

----------------------------------------------------------------------
 plugin.xml | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/f0d18db9/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 7e6f6e0..8dabc75 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -43,6 +43,8 @@
         </js-module>
         <header-file src="src/ios/YoikScreenOrientation.h" />
         <source-file src="src/ios/YoikScreenOrientation.m" />
+        <source-file src="src/ios/CDVViewController+UpdateSupportedOrientations.h" />
+        <source-file src="src/ios/CDVViewController+UpdateSupportedOrientations.m" />
     </platform>
 
     <platform name="android">


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


[41/50] cordova-plugin-screen-orientation git commit: Updated version notes

Posted by to...@apache.org.
Updated version notes


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/7dc72e05
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/7dc72e05
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/7dc72e05

Branch: refs/heads/master
Commit: 7dc72e05dd525dd72c1803ac93627b9f49008041
Parents: 8790cb2
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Fri Mar 4 20:08:51 2016 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Fri Mar 4 20:08:51 2016 +1000

----------------------------------------------------------------------
 README.md | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/7dc72e05/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 10dcf7c..374c77e 100644
--- a/README.md
+++ b/README.md
@@ -114,6 +114,9 @@ Windows 8.1 Applicaitons (runtime/metro applications) will only display orientat
 
 # Changelog
 
+## 1.4.1
+* [#89](https://github.com/gbenvenuti/cordova-plugin-screen-orientation/pull/89) Fix for cordova >= 3.6.3
+
 ## 1.4.0
 * Added Windows 8.1 Support
 * [#54](https://github.com/gbenvenuti/cordova-plugin-screen-orientation/pull/54) Background thread for ios


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


[03/50] cordova-plugin-screen-orientation git commit: Merge pull request #24 from gbenvenuti/iosFlicker

Posted by to...@apache.org.
Merge pull request #24 from gbenvenuti/iosFlicker

Ios flicker

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/b8a42be1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/b8a42be1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/b8a42be1

Branch: refs/heads/master
Commit: b8a42be1bed0d2e11ea5db2c93886c2f6fc422d7
Parents: d1ff154 c122649
Author: Grant Benvenuti <gr...@gmail.com>
Authored: Thu Sep 18 10:09:11 2014 +1000
Committer: Grant Benvenuti <gr...@gmail.com>
Committed: Thu Sep 18 10:09:11 2014 +1000

----------------------------------------------------------------------
 README.md                       | 14 ++++++++++-
 plugin.xml                      |  2 +-
 src/ios/YoikScreenOrientation.h |  6 +++++
 src/ios/YoikScreenOrientation.m | 48 ++++++++++++++++++++++++++++++------
 www/screenorientation.ios.js    |  3 +--
 5 files changed, 61 insertions(+), 12 deletions(-)
----------------------------------------------------------------------



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


[40/50] cordova-plugin-screen-orientation git commit: Merge pull request #89 from brenodouglas/master

Posted by to...@apache.org.
Merge pull request #89 from brenodouglas/master

Fix for cordova >= 3.6.3

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/8790cb2f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/8790cb2f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/8790cb2f

Branch: refs/heads/master
Commit: 8790cb2f86696f90ca2b9e071fe14a1d611238d7
Parents: d89dc2a 0708a83
Author: Grant Benvenuti <gr...@gmail.com>
Authored: Fri Feb 12 10:22:59 2016 +1000
Committer: Grant Benvenuti <gr...@gmail.com>
Committed: Fri Feb 12 10:22:59 2016 +1000

----------------------------------------------------------------------
 src/ios/YoikScreenOrientation.h | 1 -
 src/ios/YoikScreenOrientation.m | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------



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


[05/50] cordova-plugin-screen-orientation git commit: Merge pull request #32 from gbenvenuti/iosCompile

Posted by to...@apache.org.
Merge pull request #32 from gbenvenuti/iosCompile

Added compiler directive for older xcode version

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/06b93e64
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/06b93e64
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/06b93e64

Branch: refs/heads/master
Commit: 06b93e64c75b29cd2ade1556c88e200f3f09aba6
Parents: b8a42be 0ba5233
Author: Grant Benvenuti <gr...@gmail.com>
Authored: Tue Nov 18 21:06:29 2014 +1000
Committer: Grant Benvenuti <gr...@gmail.com>
Committed: Tue Nov 18 21:06:29 2014 +1000

----------------------------------------------------------------------
 plugin.xml                      | 2 +-
 src/ios/YoikScreenOrientation.m | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------



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


[44/50] cordova-plugin-screen-orientation git commit: Merge pull request #107 from tony--/switch-license-to-apache

Posted by to...@apache.org.
Merge pull request #107 from tony--/switch-license-to-apache

switch license from MIT to Apache 2.0

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/ff0d1fbf
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/ff0d1fbf
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/ff0d1fbf

Branch: refs/heads/master
Commit: ff0d1fbfc5e258b0473ccaa43bd8b8d71aa75870
Parents: 63b664a dd26708
Author: Grant Benvenuti <gr...@gmail.com>
Authored: Mon May 9 13:44:26 2016 +1000
Committer: Grant Benvenuti <gr...@gmail.com>
Committed: Mon May 9 13:44:26 2016 +1000

----------------------------------------------------------------------
 LICENSE                                | 223 +++++++++++++++++++++++++---
 README.md                              |  19 +++
 package.json                           |   2 +-
 plugin.xml                             |  20 ++-
 src/android/YoikScreenOrientation.java |  42 +++---
 src/ios/YoikScreenOrientation.h        |  41 +++--
 src/ios/YoikScreenOrientation.m        |  40 +++--
 src/wp/YoikScreenOrientation.cs        |  29 ++--
 www/screenorientation.android.js       |  21 +++
 www/screenorientation.bb10.js          |  21 +++
 www/screenorientation.ios.js           |  21 +++
 www/screenorientation.js               |  40 +++--
 www/screenorientation.windows.js       |  21 +++
 www/screenorientation.wp8.js           |  21 +++
 14 files changed, 440 insertions(+), 121 deletions(-)
----------------------------------------------------------------------



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


[13/50] cordova-plugin-screen-orientation git commit: Merge pull request #51 from yoik/revert-49-master

Posted by to...@apache.org.
Merge pull request #51 from yoik/revert-49-master

Revert "Added WP support"

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/50c122bd
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/50c122bd
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/50c122bd

Branch: refs/heads/master
Commit: 50c122bd906199f6b4cb62337d721240a57aaf2f
Parents: 1b0dee5 56dac9a
Author: Grant Benvenuti <gr...@gmail.com>
Authored: Tue May 12 10:12:31 2015 +1000
Committer: Grant Benvenuti <gr...@gmail.com>
Committed: Tue May 12 10:12:31 2015 +1000

----------------------------------------------------------------------
 plugin.xml                      |  14 +---
 src/wp/YoikScreenOrientation.cs | 127 -----------------------------------
 www/screenorientation.wp8.js    |   8 ---
 3 files changed, 1 insertion(+), 148 deletions(-)
----------------------------------------------------------------------



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


[43/50] cordova-plugin-screen-orientation git commit: switch license from MIT to Apache 2.0

Posted by to...@apache.org.
switch license from MIT to Apache 2.0


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/dd26708b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/dd26708b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/dd26708b

Branch: refs/heads/master
Commit: dd26708b7338252bf73cc27117f9acf143f4e2cd
Parents: 63b664a
Author: Tony Homer <to...@intel.com>
Authored: Thu May 5 14:46:35 2016 -0400
Committer: Tony Homer <to...@intel.com>
Committed: Thu May 5 14:46:35 2016 -0400

----------------------------------------------------------------------
 LICENSE                                | 223 +++++++++++++++++++++++++---
 README.md                              |  19 +++
 package.json                           |   2 +-
 plugin.xml                             |  20 ++-
 src/android/YoikScreenOrientation.java |  42 +++---
 src/ios/YoikScreenOrientation.h        |  41 +++--
 src/ios/YoikScreenOrientation.m        |  40 +++--
 src/wp/YoikScreenOrientation.cs        |  29 ++--
 www/screenorientation.android.js       |  21 +++
 www/screenorientation.bb10.js          |  21 +++
 www/screenorientation.ios.js           |  21 +++
 www/screenorientation.js               |  40 +++--
 www/screenorientation.windows.js       |  21 +++
 www/screenorientation.wp8.js           |  21 +++
 14 files changed, 440 insertions(+), 121 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/dd26708b/LICENSE
----------------------------------------------------------------------
diff --git a/LICENSE b/LICENSE
index 6e8b3e2..7a4a3ea 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,21 +1,202 @@
-The MIT License (MIT)
-
-Copyright (c) 2014 
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
\ No newline at end of file
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/dd26708b/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 374c77e..73b41dd 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,22 @@
+<!--
+# license: Licensed to the Apache Software Foundation (ASF) under one
+#         or more contributor license agreements.  See the NOTICE file
+#         distributed with this work for additional information
+#         regarding copyright ownership.  The ASF licenses this file
+#         to you under the Apache License, Version 2.0 (the
+#         "License"); you may not use this file except in compliance
+#         with the License.  You may obtain a copy of the License at
+#
+#           http://www.apache.org/licenses/LICENSE-2.0
+#
+#         Unless required by applicable law or agreed to in writing,
+#         software distributed under the License is distributed on an
+#         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#         KIND, either express or implied.  See the License for the
+#         specific language governing permissions and limitations
+#         under the License.
+-->
+
 # Cordova Screen Orientation Plugin
 
 Cordova plugin to set/lock the screen orientation in a common way for iOS, Android, WP8 and Blackberry 10.  This plugin is based on an early version of [Screen Orientation API](http://www.w3.org/TR/screen-orientation/) so the api does not currently match the current spec.

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/dd26708b/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index b5d74f3..5209395 100644
--- a/package.json
+++ b/package.json
@@ -24,7 +24,7 @@
     "landscape"
   ],
   "author": "gbenvenuti",
-  "license": "MIT",
+  "license": "Apache-2.0",
   "bugs": {
     "url": "https://github.com/gbenvenuti/cordova-plugin-screen-orientation/issues"
   },

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/dd26708b/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 889067e..7e6f6e0 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -1,6 +1,22 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
-    xmlns:android="http://schemas.android.com/apk/res/android"
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+    http://www.apache.org/licenses/LICENSE-2.0
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
     id="cordova-plugin-screen-orientation"
     version="1.4.0">
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/dd26708b/src/android/YoikScreenOrientation.java
----------------------------------------------------------------------
diff --git a/src/android/YoikScreenOrientation.java b/src/android/YoikScreenOrientation.java
index bce750b..41674cf 100644
--- a/src/android/YoikScreenOrientation.java
+++ b/src/android/YoikScreenOrientation.java
@@ -1,26 +1,24 @@
 /*
-The MIT License (MIT)
-
-Copyright (c) 2014
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
- */
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 package net.yoik.cordova.plugins.screenorientation;
 
 import org.apache.cordova.CallbackContext;

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/dd26708b/src/ios/YoikScreenOrientation.h
----------------------------------------------------------------------
diff --git a/src/ios/YoikScreenOrientation.h b/src/ios/YoikScreenOrientation.h
index f226a93..a90b9c6 100644
--- a/src/ios/YoikScreenOrientation.h
+++ b/src/ios/YoikScreenOrientation.h
@@ -1,26 +1,23 @@
 /*
-The MIT License (MIT)
-
-Copyright (c) 2014
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
- */
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
 
 #import <Cordova/CDVPlugin.h>
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/dd26708b/src/ios/YoikScreenOrientation.m
----------------------------------------------------------------------
diff --git a/src/ios/YoikScreenOrientation.m b/src/ios/YoikScreenOrientation.m
index 51e90f0..e87367c 100644
--- a/src/ios/YoikScreenOrientation.m
+++ b/src/ios/YoikScreenOrientation.m
@@ -1,26 +1,24 @@
 /*
-The MIT License (MIT)
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
 
-Copyright (c) 2014
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
- */
 #import "YoikScreenOrientation.h"
 
 @implementation YoikScreenOrientation

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/dd26708b/src/wp/YoikScreenOrientation.cs
----------------------------------------------------------------------
diff --git a/src/wp/YoikScreenOrientation.cs b/src/wp/YoikScreenOrientation.cs
index 00545e3..2108c54 100644
--- a/src/wp/YoikScreenOrientation.cs
+++ b/src/wp/YoikScreenOrientation.cs
@@ -1,15 +1,22 @@
 /*
-	Licensed under the Apache License, Version 2.0 (the "License");
-	you may not use this file except in compliance with the License.
-	You may obtain a copy of the License at
-
-	http://www.apache.org/licenses/LICENSE-2.0
-
-	Unless required by applicable law or agreed to in writing, software
-	distributed under the License is distributed on an "AS IS" BASIS,
-	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-	See the License for the specific language governing permissions and
-	limitations under the License.
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
 */
 
 using System;

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/dd26708b/www/screenorientation.android.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.android.js b/www/screenorientation.android.js
index 334b900..1b8857e 100644
--- a/www/screenorientation.android.js
+++ b/www/screenorientation.android.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 var exec = require('cordova/exec'),
     screenOrientation = {};
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/dd26708b/www/screenorientation.bb10.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.bb10.js b/www/screenorientation.bb10.js
index 51bf3ea..559c8be 100644
--- a/www/screenorientation.bb10.js
+++ b/www/screenorientation.bb10.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 var screenOrientation = {};
 
 screenOrientation.setOrientation = function(orientation) {

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/dd26708b/www/screenorientation.ios.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.ios.js b/www/screenorientation.ios.js
index b21823d..c6882f4 100644
--- a/www/screenorientation.ios.js
+++ b/www/screenorientation.ios.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 var exec = require('cordova/exec'),
     screenOrientation = {},
     iosOrientation = 'unlocked',

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/dd26708b/www/screenorientation.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.js b/www/screenorientation.js
index 245cd63..dd0a596 100644
--- a/www/screenorientation.js
+++ b/www/screenorientation.js
@@ -1,26 +1,24 @@
 /*
-The MIT License (MIT)
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
 
-Copyright (c) 2014
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
- */
 var screenOrientation = {},
     Orientations = [
         'portrait-primary',

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/dd26708b/www/screenorientation.windows.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.windows.js b/www/screenorientation.windows.js
index cbe0ed0..a1b3af0 100644
--- a/www/screenorientation.windows.js
+++ b/www/screenorientation.windows.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 var screenOrientation = {};
 
 screenOrientation.setOrientation = function (orientation) {

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/dd26708b/www/screenorientation.wp8.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.wp8.js b/www/screenorientation.wp8.js
index 9dd64ae..8712c26 100644
--- a/www/screenorientation.wp8.js
+++ b/www/screenorientation.wp8.js
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 var exec = require('cordova/exec'),
     screenOrientation = {};
 


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


[06/50] cordova-plugin-screen-orientation git commit: Resolves #33 reverted to use delayed vc dismissal

Posted by to...@apache.org.
Resolves #33 reverted to use delayed vc dismissal


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/e62c2304
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/e62c2304
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/e62c2304

Branch: refs/heads/master
Commit: e62c2304c31177fdd309c6280030b6359d2260d0
Parents: 0ba5233
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Tue Dec 2 06:47:24 2014 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Tue Dec 2 06:47:24 2014 +1000

----------------------------------------------------------------------
 README.md                       | 4 ++++
 plugin.xml                      | 2 +-
 src/ios/YoikScreenOrientation.m | 8 ++++++--
 3 files changed, 11 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/e62c2304/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 5f7b745..f10652a 100644
--- a/README.md
+++ b/README.md
@@ -90,6 +90,10 @@ Wraps the com.blackberry.app plugin functions, auto installed as a dependancy.
 
 #Changelog
 
+##1.3.2
+
+* [#33](https://github.com/yoik/cordova-yoik-screenorientation/issues/33) iOS8 Delay Block
+
 ##1.3.0
 
 * [#23](https://github.com/yoik/cordova-yoik-screenorientation/issues/23) iOS8 flicker

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/e62c2304/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index ba78308..07a9b5d 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="net.yoik.cordova.plugins.screenorientation"
-    version="1.3.1">
+    version="1.3.2">
 
     <name>Screen Orientation</name>
     <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS and BB10.</description>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/e62c2304/src/ios/YoikScreenOrientation.m
----------------------------------------------------------------------
diff --git a/src/ios/YoikScreenOrientation.m b/src/ios/YoikScreenOrientation.m
index e06839b..4dd77c3 100644
--- a/src/ios/YoikScreenOrientation.m
+++ b/src/ios/YoikScreenOrientation.m
@@ -77,8 +77,12 @@ SOFTWARE.
     vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
 #endif
 
-    [self.viewController presentViewController:vc animated:NO completion:nil];
-    [self.viewController dismissViewControllerAnimated:NO completion:nil];
+    [self.viewController presentViewController:vc animated:NO completion:^{
+        // added to support iOS8 beta 5, @see issue #19
+        dispatch_after(0, dispatch_get_main_queue(), ^{
+            [self.viewController dismissViewControllerAnimated:NO completion:nil];
+        });
+    }];
 }
 
 @end


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


[37/50] cordova-plugin-screen-orientation git commit: Merge pull request #78 from mrzmyr/patch-1

Posted by to...@apache.org.
Merge pull request #78 from mrzmyr/patch-1

Add more readability

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/d89dc2ab
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/d89dc2ab
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/d89dc2ab

Branch: refs/heads/master
Commit: d89dc2ab414c888aa447f1f93459d33b1020f510
Parents: bbde995 479c32b
Author: Grant Benvenuti <gr...@gmail.com>
Authored: Fri Feb 5 09:46:33 2016 +1000
Committer: Grant Benvenuti <gr...@gmail.com>
Committed: Fri Feb 5 09:46:33 2016 +1000

----------------------------------------------------------------------
 README.md | 72 ++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 40 insertions(+), 32 deletions(-)
----------------------------------------------------------------------



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


[27/50] cordova-plugin-screen-orientation git commit: Added Windows 8.1 Support

Posted by to...@apache.org.
Added Windows 8.1 Support

Windows 8.1 has javascript calls, were not be complicated to add.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/7a11a3dd
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/7a11a3dd
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/7a11a3dd

Branch: refs/heads/master
Commit: 7a11a3dd7e8b37fe9948529750488a186f246917
Parents: 9244abc
Author: tokotchd <to...@gmail.com>
Authored: Fri Aug 7 12:12:10 2015 -0400
Committer: tokotchd <to...@gmail.com>
Committed: Fri Aug 7 12:12:10 2015 -0400

----------------------------------------------------------------------
 README.md                        |  3 +++
 package.json                     |  4 ++--
 plugin.xml                       |  8 +++++++-
 www/screenorientation.windows.js | 33 +++++++++++++++++++++++++++++++++
 4 files changed, 45 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/7a11a3dd/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 2110622..805f1d3 100644
--- a/README.md
+++ b/README.md
@@ -96,6 +96,9 @@ Windows phone does not support specification or primary and secondary orientatio
 
 # Changelog
 
+## 1.3.7
+* Added Windows 8.1 Support
+
 ## 1.3.5-6
 * Plugin added to npm
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/7a11a3dd/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 6430b2f..beecb69 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
 {
   "name": "cordova-plugin-screen-orientation",
-  "version": "1.3.6",
-  "description": "Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8 and BB10.",
+  "version": "1.3.7",
+  "description": "Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8, W8.1, and BB10.",
   "repository": {
     "type": "git",
     "url": "git+https://github.com/gbenvenuti/cordova-plugin-screen-orientation.git"

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/7a11a3dd/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index b402633..5b96723 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -5,7 +5,7 @@
     version="1.3.6">
 
     <name>Screen Orientation</name>
-    <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8 and BB10.</description>
+    <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8, W8.1, and BB10.</description>
     <license>MIT</license>
 
     <engines>
@@ -64,4 +64,10 @@
         <source-file src="src/wp/YoikScreenOrientation.cs" />
     </platform>
 
+    <platform name="windows">
+        <js-module src="www/screenOrientation.windows.js" name="screenorientation.windows">
+            <merges target="cordova.plugins.screenorientation" />
+        </js-module>
+    </platform>
+
 </plugin>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/7a11a3dd/www/screenorientation.windows.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.windows.js b/www/screenorientation.windows.js
new file mode 100644
index 0000000..80edcf5
--- /dev/null
+++ b/www/screenorientation.windows.js
@@ -0,0 +1,33 @@
+var screenOrientation = {};
+
+screenOrientation.lockOrientation = function (orientation) {
+    var orientationNumber;
+    switch (orientation) {
+        case 'landscape':
+            orientationNumber = 5;
+            break;
+        case 'portrait':
+            orientationNumber = 10;
+            break;
+        case 'landscape-primary':
+            orientationNumber = 1;
+            break;
+        case 'landscape-secondary':
+            orientationNumber = 4;
+            break;
+        case 'portrait-primary':
+            orientationNumber = 2;
+            break;
+        case 'portrait-secondary':
+            orientationNumber = 8;
+            break;
+        case 'unlocked':
+            orientationNumber = 0;
+            break;
+        default:
+            break;
+    }
+    Windows.Graphics.Display.DisplayInformation.autoRotationPreferences = orientationNumber;
+};
+
+module.exports = screenOrientation;


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


[21/50] cordova-plugin-screen-orientation git commit: Initial npm plugin support

Posted by to...@apache.org.
Initial npm plugin support


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/503a3806
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/503a3806
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/503a3806

Branch: refs/heads/master
Commit: 503a380624d63b86e87e347002000de31cfa4fba
Parents: 4c86a0d
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Wed May 20 13:54:47 2015 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Wed May 20 13:54:47 2015 +1000

----------------------------------------------------------------------
 package.json                                    |  32 ++++++
 plugin.xml                                      |   6 +-
 src/android/YoikScreenOrientation.java          | 103 +++++++++++++++++++
 .../YoikScreenOrientation.java                  | 103 -------------------
 4 files changed, 138 insertions(+), 106 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/503a3806/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..deedbed
--- /dev/null
+++ b/package.json
@@ -0,0 +1,32 @@
+{
+  "name": "cordova-plugin-screen-orientaion",
+  "version": "1.3.5",
+  "description": "Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8 and BB10.",
+  "repository": {
+    "type": "git",
+    "url": "git+https://github.com/gbenvenuti/cordova-plugin-screen-orientation.git"
+  },
+  "cordova": {
+    "id": "cordova-plugin-screen-orientaion",
+    "platforms": [
+      "android",
+      "ios",
+      "wp8"
+    ]
+  },
+  "keywords": [
+    "cordova",
+    "device",
+    "ecosystem:cordova",
+    "screen",
+    "orientation",
+    "portrait",
+    "landscape"
+  ],
+  "author": "gbenvenuti",
+  "license": "MIT",
+  "bugs": {
+    "url": "https://github.com/gbenvenuti/cordova-plugin-screen-orientation/issues"
+  },
+  "homepage": "https://github.com/gbenvenuti/cordova-plugin-screen-orientation#readme"
+}

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/503a3806/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 0424eb8..d1d3775 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
-    id="net.yoik.cordova.plugins.screenorientation"
-    version="1.3.4">
+    id="cordova-plugin-screen-orientation"
+    version="1.3.5">
 
     <name>Screen Orientation</name>
     <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8 and BB10.</description>
@@ -30,7 +30,7 @@
     </platform>
 
     <platform name="android">
-        <source-file src="src/android/net/yoik/cordova/plugins/screenorientation/YoikScreenOrientation.java" target-dir="src/net/yoik/cordova/plugins/screenorientation/" />
+        <source-file src="src/android/YoikScreenOrientation.java" target-dir="src/net/yoik/cordova/plugins/screenorientation/" />
 
         <config-file target="res/xml/config.xml" parent="/*">
             <feature name="YoikScreenOrientation">

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/503a3806/src/android/YoikScreenOrientation.java
----------------------------------------------------------------------
diff --git a/src/android/YoikScreenOrientation.java b/src/android/YoikScreenOrientation.java
new file mode 100644
index 0000000..bce750b
--- /dev/null
+++ b/src/android/YoikScreenOrientation.java
@@ -0,0 +1,103 @@
+/*
+The MIT License (MIT)
+
+Copyright (c) 2014
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+ */
+package net.yoik.cordova.plugins.screenorientation;
+
+import org.apache.cordova.CallbackContext;
+import org.apache.cordova.CordovaPlugin;
+
+import org.json.JSONArray;
+import org.json.JSONException;
+
+import android.app.Activity;
+import android.content.pm.ActivityInfo;
+import android.util.Log;
+
+public class YoikScreenOrientation extends CordovaPlugin {
+
+    private static final String TAG = "YoikScreenOrientation";
+
+    /**
+     * Screen Orientation Constants
+     */
+
+    private static final String UNLOCKED = "unlocked";
+    private static final String PORTRAIT_PRIMARY = "portrait-primary";
+    private static final String PORTRAIT_SECONDARY = "portrait-secondary";
+    private static final String LANDSCAPE_PRIMARY = "landscape-primary";
+    private static final String LANDSCAPE_SECONDARY = "landscape-secondary";
+    private static final String PORTRAIT = "portrait";
+    private static final String LANDSCAPE = "landscape";
+
+    @Override
+    public boolean execute(String action, JSONArray args, CallbackContext callbackContext) {
+
+        Log.d(TAG, "execute action: " + action);
+
+        // Route the Action
+        if (action.equals("screenOrientation")) {
+            return routeScreenOrientation(args, callbackContext);
+        }
+
+        // Action not found
+        callbackContext.error("action not recognised");
+        return false;
+    }
+
+    private boolean routeScreenOrientation(JSONArray args, CallbackContext callbackContext) {
+
+        String action = args.optString(0);
+
+        if (action.equals("set")) {
+
+            String orientation = args.optString(1);
+
+            Log.d(TAG, "Requested ScreenOrientation: " + orientation);
+
+            Activity activity = cordova.getActivity();
+
+            if (orientation.equals(UNLOCKED)) {
+                activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
+            } else if (orientation.equals(LANDSCAPE_PRIMARY)) {
+                activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
+            } else if (orientation.equals(PORTRAIT_PRIMARY)) {
+                activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
+            } else if (orientation.equals(LANDSCAPE)) {
+                activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
+            } else if (orientation.equals(PORTRAIT)) {
+                activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT);
+            } else if (orientation.equals(LANDSCAPE_SECONDARY)) {
+                activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE);
+            } else if (orientation.equals(PORTRAIT_SECONDARY)) {
+                activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT);
+            }
+
+            callbackContext.success();
+            return true;
+
+        } else {
+            callbackContext.error("ScreenOrientation not recognised");
+            return false;
+        }
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/503a3806/src/android/net/yoik/cordova/plugins/screenorientation/YoikScreenOrientation.java
----------------------------------------------------------------------
diff --git a/src/android/net/yoik/cordova/plugins/screenorientation/YoikScreenOrientation.java b/src/android/net/yoik/cordova/plugins/screenorientation/YoikScreenOrientation.java
deleted file mode 100644
index bce750b..0000000
--- a/src/android/net/yoik/cordova/plugins/screenorientation/YoikScreenOrientation.java
+++ /dev/null
@@ -1,103 +0,0 @@
-/*
-The MIT License (MIT)
-
-Copyright (c) 2014
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
- */
-package net.yoik.cordova.plugins.screenorientation;
-
-import org.apache.cordova.CallbackContext;
-import org.apache.cordova.CordovaPlugin;
-
-import org.json.JSONArray;
-import org.json.JSONException;
-
-import android.app.Activity;
-import android.content.pm.ActivityInfo;
-import android.util.Log;
-
-public class YoikScreenOrientation extends CordovaPlugin {
-
-    private static final String TAG = "YoikScreenOrientation";
-
-    /**
-     * Screen Orientation Constants
-     */
-
-    private static final String UNLOCKED = "unlocked";
-    private static final String PORTRAIT_PRIMARY = "portrait-primary";
-    private static final String PORTRAIT_SECONDARY = "portrait-secondary";
-    private static final String LANDSCAPE_PRIMARY = "landscape-primary";
-    private static final String LANDSCAPE_SECONDARY = "landscape-secondary";
-    private static final String PORTRAIT = "portrait";
-    private static final String LANDSCAPE = "landscape";
-
-    @Override
-    public boolean execute(String action, JSONArray args, CallbackContext callbackContext) {
-
-        Log.d(TAG, "execute action: " + action);
-
-        // Route the Action
-        if (action.equals("screenOrientation")) {
-            return routeScreenOrientation(args, callbackContext);
-        }
-
-        // Action not found
-        callbackContext.error("action not recognised");
-        return false;
-    }
-
-    private boolean routeScreenOrientation(JSONArray args, CallbackContext callbackContext) {
-
-        String action = args.optString(0);
-
-        if (action.equals("set")) {
-
-            String orientation = args.optString(1);
-
-            Log.d(TAG, "Requested ScreenOrientation: " + orientation);
-
-            Activity activity = cordova.getActivity();
-
-            if (orientation.equals(UNLOCKED)) {
-                activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
-            } else if (orientation.equals(LANDSCAPE_PRIMARY)) {
-                activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
-            } else if (orientation.equals(PORTRAIT_PRIMARY)) {
-                activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
-            } else if (orientation.equals(LANDSCAPE)) {
-                activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
-            } else if (orientation.equals(PORTRAIT)) {
-                activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT);
-            } else if (orientation.equals(LANDSCAPE_SECONDARY)) {
-                activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE);
-            } else if (orientation.equals(PORTRAIT_SECONDARY)) {
-                activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT);
-            }
-
-            callbackContext.success();
-            return true;
-
-        } else {
-            callbackContext.error("ScreenOrientation not recognised");
-            return false;
-        }
-    }
-}
\ No newline at end of file


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


[31/50] cordova-plugin-screen-orientation git commit: Removed direct reference to screen in addScreenOrientationApi function

Posted by to...@apache.org.
Removed direct reference to screen in addScreenOrientationApi function


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/c8b89002
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/c8b89002
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/c8b89002

Branch: refs/heads/master
Commit: c8b89002f904a03cbf7bbd7a9b743ff8bfa8c921
Parents: 1195b40
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Mon Aug 10 09:37:38 2015 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Mon Aug 10 09:37:38 2015 +1000

----------------------------------------------------------------------
 www/screenorientation.js | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/c8b89002/www/screenorientation.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.js b/www/screenorientation.js
index 64c682b..245cd63 100644
--- a/www/screenorientation.js
+++ b/www/screenorientation.js
@@ -45,24 +45,22 @@ screenOrientation.setOrientation = function(orientation) {
     console.log('setOrientation not supported on device');
 };
 
-function addScreenOrientationApi(obj) {
-    if (obj.unlockOrientation || obj.lockOrientation) {
+function addScreenOrientationApi(screenObject) {
+    if (screenObject.unlockOrientation || screenObject.lockOrientation) {
         return;
     }
 
-    obj.lockOrientation = function(orientation) {
+    screenObject.lockOrientation = function(orientation) {
         if (Orientations.indexOf(orientation) == -1) {
             console.log('INVALID ORIENTATION', orientation);
             return;
         }
-        screenOrientation.currOrientation = orientation;
-        screen.orientation = screenOrientation.currOrientation;
+        screenOrientation.currOrientation = screenObject.orientation = orientation;
         screenOrientation.setOrientation(orientation);
     };
 
-    obj.unlockOrientation = function() {
-        screenOrientation.currOrientation = 'unlocked';
-        screen.orientation = screenOrientation.currOrientation;
+    screenObject.unlockOrientation = function() {
+        screenOrientation.currOrientation = screenObject.orientation = 'unlocked';
         screenOrientation.setOrientation('unlocked');
     };
 }


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


[39/50] cordova-plugin-screen-orientation git commit: Fix conflict return type in implementation of 'supportedInterfaceOrientations'

Posted by to...@apache.org.
Fix conflict return type in implementation of 'supportedInterfaceOrientations'


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/0708a837
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/0708a837
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/0708a837

Branch: refs/heads/master
Commit: 0708a8371616b94c9263827bce844b20c1210967
Parents: 2576cc6
Author: Breno Douglas <br...@paieterno.com.br>
Authored: Thu Feb 11 08:57:43 2016 -0200
Committer: Breno Douglas <br...@paieterno.com.br>
Committed: Thu Feb 11 08:57:43 2016 -0200

----------------------------------------------------------------------
 src/ios/YoikScreenOrientation.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/0708a837/src/ios/YoikScreenOrientation.m
----------------------------------------------------------------------
diff --git a/src/ios/YoikScreenOrientation.m b/src/ios/YoikScreenOrientation.m
index f2dd444..51e90f0 100644
--- a/src/ios/YoikScreenOrientation.m
+++ b/src/ios/YoikScreenOrientation.m
@@ -95,7 +95,7 @@ SOFTWARE.
 
 @implementation ForcedViewController
 
-- (NSUInteger) supportedInterfaceOrientations
+- (UIInterfaceOrientationMask) supportedInterfaceOrientations
 {
     if ([self.calledWith rangeOfString:@"portrait"].location != NSNotFound) {
         return UIInterfaceOrientationMaskPortrait;


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


[15/50] cordova-plugin-screen-orientation git commit: Intermediate commit to sync with upstream

Posted by to...@apache.org.
Intermediate commit to sync with upstream


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/b3aadac6
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/b3aadac6
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/b3aadac6

Branch: refs/heads/master
Commit: b3aadac6ed0a196a2b89dc4ca60f1d0a12384ccc
Parents: 6c97527 50c122b
Author: EddyVerbruggen <ed...@gmail.com>
Authored: Wed May 13 20:28:28 2015 +0200
Committer: EddyVerbruggen <ed...@gmail.com>
Committed: Wed May 13 20:28:28 2015 +0200

----------------------------------------------------------------------
 plugin.xml                      |  14 +---
 src/wp/YoikScreenOrientation.cs | 133 -----------------------------------
 www/screenorientation.wp8.js    |   8 ---
 3 files changed, 1 insertion(+), 154 deletions(-)
----------------------------------------------------------------------



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


[35/50] cordova-plugin-screen-orientation git commit: v1.4.0 release

Posted by to...@apache.org.
v1.4.0 release


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/bbde9953
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/bbde9953
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/bbde9953

Branch: refs/heads/master
Commit: bbde995383266e29e855a98e673760995b50005c
Parents: a158cf8
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Mon Aug 10 09:57:07 2015 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Mon Aug 10 09:57:07 2015 +1000

----------------------------------------------------------------------
 README.md                       | 5 ++++-
 package.json                    | 2 +-
 plugin.xml                      | 2 +-
 src/ios/YoikScreenOrientation.m | 8 ++++----
 4 files changed, 10 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/bbde9953/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 2650f2d..510d8bd 100644
--- a/README.md
+++ b/README.md
@@ -106,8 +106,11 @@ Windows 8.1 Applicaitons (runtime/metro applications) will only display orientat
 
 # Changelog
 
-## 1.3.7
+## 1.4.0
 * Added Windows 8.1 Support
+* [#54](https://github.com/gbenvenuti/cordova-plugin-screen-orientation/pull/54) Background thread for ios
+* [#64](https://github.com/gbenvenuti/cordova-plugin-screen-orientation/pull/64) Orientation naming bug fixed
+* Add portrait upside down to iOS default orientations
 
 ## 1.3.5-6
 * Plugin added to npm

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/bbde9953/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index beecb69..9d20940 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "cordova-plugin-screen-orientation",
-  "version": "1.3.7",
+  "version": "1.4.0",
   "description": "Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8, W8.1, and BB10.",
   "repository": {
     "type": "git",

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/bbde9953/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 5b96723..889067e 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="cordova-plugin-screen-orientation"
-    version="1.3.6">
+    version="1.4.0">
 
     <name>Screen Orientation</name>
     <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8, W8.1, and BB10.</description>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/bbde9953/src/ios/YoikScreenOrientation.m
----------------------------------------------------------------------
diff --git a/src/ios/YoikScreenOrientation.m b/src/ios/YoikScreenOrientation.m
index 06d1316..f2dd444 100644
--- a/src/ios/YoikScreenOrientation.m
+++ b/src/ios/YoikScreenOrientation.m
@@ -73,12 +73,12 @@ SOFTWARE.
         vc.view.backgroundColor = [UIColor clearColor];
         // vc.view.alpha = 0.0;
         vc.view.opaque = YES;
-        
-    #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
+
+#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
         // This stops us getting the black application background flash, iOS8
         vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
-    #endif
-    
+#endif
+
         dispatch_async(dispatch_get_main_queue(), ^{
             [self.viewController presentViewController:vc animated:NO completion:^{
                 // added to support iOS8 beta 5, @see issue #19


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


[12/50] cordova-plugin-screen-orientation git commit: Revert "Added WP support"

Posted by to...@apache.org.
Revert "Added WP support"


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/56dac9ad
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/56dac9ad
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/56dac9ad

Branch: refs/heads/master
Commit: 56dac9ad10340618fdbfb9e8bc6c1c0d3dd53f7f
Parents: 1b0dee5
Author: Grant Benvenuti <gr...@gmail.com>
Authored: Tue May 12 10:11:12 2015 +1000
Committer: Grant Benvenuti <gr...@gmail.com>
Committed: Tue May 12 10:11:12 2015 +1000

----------------------------------------------------------------------
 plugin.xml                      |  14 +---
 src/wp/YoikScreenOrientation.cs | 127 -----------------------------------
 www/screenorientation.wp8.js    |   8 ---
 3 files changed, 1 insertion(+), 148 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/56dac9ad/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index dafa2f9..07a9b5d 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="net.yoik.cordova.plugins.screenorientation"
-    version="1.3.3">
+    version="1.3.2">
 
     <name>Screen Orientation</name>
     <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS and BB10.</description>
@@ -52,16 +52,4 @@
         </js-module>
     </platform>
 
-  <platform name="wp8">
-    <config-file target="config.xml" parent="/*">
-      <feature name="YoikScreenOrientation">
-        <param name="wp-package" value="YoikScreenOrientation"/>
-      </feature>
-    </config-file>
-	  <js-module src="www/screenorientation.wp8.js" name="screenorientation.wp8">
-		  <merges target="cordova.plugins.screenorientation" />
-	  </js-module>
-    <source-file src="src/wp/YoikScreenOrientation.cs" />
-  </platform>
-
 </plugin>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/56dac9ad/src/wp/YoikScreenOrientation.cs
----------------------------------------------------------------------
diff --git a/src/wp/YoikScreenOrientation.cs b/src/wp/YoikScreenOrientation.cs
deleted file mode 100644
index 4663998..0000000
--- a/src/wp/YoikScreenOrientation.cs
+++ /dev/null
@@ -1,127 +0,0 @@
-/*  
-	Licensed under the Apache License, Version 2.0 (the "License");
-	you may not use this file except in compliance with the License.
-	You may obtain a copy of the License at
-	
-	http://www.apache.org/licenses/LICENSE-2.0
-	
-	Unless required by applicable law or agreed to in writing, software
-	distributed under the License is distributed on an "AS IS" BASIS,
-	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-	See the License for the specific language governing permissions and
-	limitations under the License.
-*/
-
-using System;
-using System.Net;
-using System.IO;
-using Microsoft.Phone.Controls;
-using Microsoft.Phone.Notification;
-using Microsoft.Phone.Shell;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-using System.Windows.Threading;
-using System.Runtime.Serialization;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Globalization;
-using System.Threading;
-
-using WPCordovaClassLib.Cordova;
-using WPCordovaClassLib.Cordova.Commands;
-using WPCordovaClassLib.Cordova.JSON;
-
-
-namespace WPCordovaClassLib.Cordova.Commands
-{
-    public class YoikScreenOrientation : BaseCommand
-    {
-        #region Static members
-
-        private const string UNLOCKED = "unlocked";
-        private const string PORTRAIT = "portrait";
-        private const string LANDSCAPE = "landscape";
-
-        #endregion
-
-        /// <summary>
-        /// Current orientation
-        /// </summary>
-        private string currentOrientation;
-
-        public YoikScreenOrientation()
-        {
-
-        }
-
-        /// <summary>
-        /// Changes the orientation
-        /// </summary>
-
-        public void screenOrientation(string options)
-        {
-            string orientation = null;
-            try
-            {
-                orientation = JSON.JsonHelper.Deserialize<string[]>(options)[0];
-            }
-            catch (Exception ex)
-            {
-                this.DispatchCommandResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION, ex.Message));
-                return;
-            }
-
-            if (string.IsNullOrEmpty(orientation))
-            {
-                this.DispatchCommandResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION));
-                return;
-            }
-
-            if (this.currentOrientation != orientation) // Might prevent flickering
-            {
-
-                Deployment.Current.Dispatcher.BeginInvoke(() =>
-                {
-                    PhoneApplicationFrame frame;
-                    PhoneApplicationPage page;
-                    if (TryCast(Application.Current.RootVisual, out frame) &&
-                      TryCast(frame.Content, out page))
-                    {
-                        if (orientation == PORTRAIT)
-                        {
-                            page.SupportedOrientations = SupportedPageOrientation.Portrait;
-                        }
-                        else if (orientation == LANDSCAPE)
-                        {
-                            page.SupportedOrientations = SupportedPageOrientation.Landscape;
-                        }
-                        else if (orientation == UNLOCKED)
-                        {
-                            page.SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;
-                        }
-                        else
-                        {
-                            this.DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, "Screen orientation not detected."));
-                            return;
-                        }
-                        this.currentOrientation = orientation;
-                    }
-                });
-
-                this.DispatchCommandResult();
-            }
-        }
-
-        static bool TryCast<T>(object obj, out T result) where T : class
-        {
-            result = obj as T;
-            return result != null;
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/56dac9ad/www/screenorientation.wp8.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.wp8.js b/www/screenorientation.wp8.js
deleted file mode 100644
index 4900408..0000000
--- a/www/screenorientation.wp8.js
+++ /dev/null
@@ -1,8 +0,0 @@
-var exec = require('cordova/exec'),
-	screenOrientation = {};
-
-screenOrientation.setOrientation = function(orientation) {
-	exec(null, null, "YoikScreenOrientation", "screenOrientation", [orientation]);
-};
-
-module.exports = screenOrientation;
\ No newline at end of file


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


[17/50] cordova-plugin-screen-orientation git commit: Merge pull request #53 from Telerik-Verified-Plugins/master

Posted by to...@apache.org.
Merge pull request #53 from Telerik-Verified-Plugins/master

WP support, attempt 2

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/7b8655e8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/7b8655e8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/7b8655e8

Branch: refs/heads/master
Commit: 7b8655e85e03dec77d67241f0d38cd6c148e9fff
Parents: 50c122b 865c81a
Author: Grant Benvenuti <gr...@gmail.com>
Authored: Thu May 14 13:59:02 2015 +1000
Committer: Grant Benvenuti <gr...@gmail.com>
Committed: Thu May 14 13:59:02 2015 +1000

----------------------------------------------------------------------
 plugin.xml                      |  14 +++-
 src/wp/YoikScreenOrientation.cs | 133 +++++++++++++++++++++++++++++++++++
 www/screenorientation.wp8.js    |   8 +++
 3 files changed, 154 insertions(+), 1 deletion(-)
----------------------------------------------------------------------



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


[19/50] cordova-plugin-screen-orientation git commit: Readme update

Posted by to...@apache.org.
Readme update


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

Branch: refs/heads/master
Commit: 4c86a0d8c6080ea368e5417fb03f0e53e500c5ad
Parents: 51a6fc8
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Thu May 14 14:04:03 2015 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Thu May 14 14:04:03 2015 +1000

----------------------------------------------------------------------
 README.md  | 12 +++++++++++-
 plugin.xml |  2 +-
 2 files changed, 12 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/4c86a0d8/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index f10652a..5d6f330 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 #Cordova Screen Orientation Plugin
 
-Cordova plugin to set/lock the screen orientation in a common way for iOS, Android and Blackberry 10.  From version 1.0.0 the interface is based on the [Screen Orientation API](http://www.w3.org/TR/screen-orientation/).
+Cordova plugin to set/lock the screen orientation in a common way for iOS, Android, WP8 and Blackberry 10.  From version 1.0.0 the interface is based on the [Screen Orientation API](http://www.w3.org/TR/screen-orientation/).
 
 The plugin adds the following to the screen object:
 
@@ -88,8 +88,18 @@ Versions prior to 1.2.0 will cause an application crash in iOS8 due to a change
 
 Wraps the com.blackberry.app plugin functions, auto installed as a dependancy.
 
+####WP8 Notes
+
+Windows phone does not support specification or primary and secondary orientations.  If called with a specific orientation the plugin will just apply the landscape or portait orientation.
+
 #Changelog
 
+##1.3.4
+* Readme update
+
+##1.3.3
+* [#53](https://github.com/yoik/cordova-yoik-screenorientation/pull/53) WP8 Support
+
 ##1.3.2
 
 * [#33](https://github.com/yoik/cordova-yoik-screenorientation/issues/33) iOS8 Delay Block

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/4c86a0d8/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 8f02208..0424eb8 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="net.yoik.cordova.plugins.screenorientation"
-    version="1.3.3">
+    version="1.3.4">
 
     <name>Screen Orientation</name>
     <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8 and BB10.</description>


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


[07/50] cordova-plugin-screen-orientation git commit: Merge pull request #34 from gbenvenuti/iosDelayBlock

Posted by to...@apache.org.
Merge pull request #34 from gbenvenuti/iosDelayBlock

Resolves #33 reverted to use delayed vc dismissal

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/080aa28f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/080aa28f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/080aa28f

Branch: refs/heads/master
Commit: 080aa28f94f28780ad0ce68732331315575f34a0
Parents: 06b93e6 e62c230
Author: Grant Benvenuti <gr...@gmail.com>
Authored: Tue Dec 2 06:50:16 2014 +1000
Committer: Grant Benvenuti <gr...@gmail.com>
Committed: Tue Dec 2 06:50:16 2014 +1000

----------------------------------------------------------------------
 README.md                       | 4 ++++
 plugin.xml                      | 2 +-
 src/ios/YoikScreenOrientation.m | 8 ++++++--
 3 files changed, 11 insertions(+), 3 deletions(-)
----------------------------------------------------------------------



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


[04/50] cordova-plugin-screen-orientation git commit: Added compiler directive for older xcode version

Posted by to...@apache.org.
Added compiler directive for older xcode version


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/0ba52337
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/0ba52337
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/0ba52337

Branch: refs/heads/master
Commit: 0ba523375a4bfdf9af4afe18ae7576dbc594a044
Parents: c122649
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Tue Nov 18 08:29:04 2014 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Tue Nov 18 08:29:04 2014 +1000

----------------------------------------------------------------------
 plugin.xml                      | 2 +-
 src/ios/YoikScreenOrientation.m | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/0ba52337/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index f4b7472..ba78308 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="net.yoik.cordova.plugins.screenorientation"
-    version="1.3.0">
+    version="1.3.1">
 
     <name>Screen Orientation</name>
     <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS and BB10.</description>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/0ba52337/src/ios/YoikScreenOrientation.m
----------------------------------------------------------------------
diff --git a/src/ios/YoikScreenOrientation.m b/src/ios/YoikScreenOrientation.m
index 17ca3db..e06839b 100644
--- a/src/ios/YoikScreenOrientation.m
+++ b/src/ios/YoikScreenOrientation.m
@@ -71,8 +71,11 @@ SOFTWARE.
     vc.view.backgroundColor = [UIColor clearColor];
     // vc.view.alpha = 0.0;
     vc.view.opaque = YES;
+
+#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
     // This stops us getting the black application background flash, iOS8
     vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
+#endif
 
     [self.viewController presentViewController:vc animated:NO completion:nil];
     [self.viewController dismissViewControllerAnimated:NO completion:nil];


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


[48/50] cordova-plugin-screen-orientation git commit: fix header file incorrectly set as source-file

Posted by to...@apache.org.
fix header file incorrectly set as source-file


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/a661578b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/a661578b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/a661578b

Branch: refs/heads/master
Commit: a661578b4c696bc1e830c1dbd5e54abcac87766e
Parents: f0d18db
Author: Tony Homer <to...@intel.com>
Authored: Wed May 4 17:19:17 2016 -0400
Committer: Tony Homer <to...@intel.com>
Committed: Mon May 16 15:30:58 2016 -0400

----------------------------------------------------------------------
 plugin.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/a661578b/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 8dabc75..381a966 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -43,7 +43,7 @@
         </js-module>
         <header-file src="src/ios/YoikScreenOrientation.h" />
         <source-file src="src/ios/YoikScreenOrientation.m" />
-        <source-file src="src/ios/CDVViewController+UpdateSupportedOrientations.h" />
+        <header-file src="src/ios/CDVViewController+UpdateSupportedOrientations.h" />
         <source-file src="src/ios/CDVViewController+UpdateSupportedOrientations.m" />
     </platform>
 


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


[49/50] cordova-plugin-screen-orientation git commit: version updated and license adjusted

Posted by to...@apache.org.
version updated and license adjusted


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/86fc819e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/86fc819e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/86fc819e

Branch: refs/heads/master
Commit: 86fc819e6aef833232832188fb0c8454f78ea1b6
Parents: 9375778
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Mon May 23 08:37:54 2016 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Mon May 23 08:37:54 2016 +1000

----------------------------------------------------------------------
 package.json                                    |  2 +-
 plugin.xml                                      |  2 +-
 ...ViewController+UpdateSupportedOrientations.h | 41 +++++++++----------
 ...ViewController+UpdateSupportedOrientations.m | 43 +++++++++-----------
 4 files changed, 41 insertions(+), 47 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/86fc819e/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 5209395..62589d9 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "cordova-plugin-screen-orientation",
-  "version": "1.4.1",
+  "version": "1.4.2",
   "description": "Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8, W8.1, and BB10.",
   "repository": {
     "type": "git",

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/86fc819e/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 381a966..a77472e 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -18,7 +18,7 @@
 
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
     id="cordova-plugin-screen-orientation"
-    version="1.4.0">
+    version="1.4.2">
 
     <name>Screen Orientation</name>
     <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8, W8.1, and BB10.</description>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/86fc819e/src/ios/CDVViewController+UpdateSupportedOrientations.h
----------------------------------------------------------------------
diff --git a/src/ios/CDVViewController+UpdateSupportedOrientations.h b/src/ios/CDVViewController+UpdateSupportedOrientations.h
index cdd4073..6cff917 100644
--- a/src/ios/CDVViewController+UpdateSupportedOrientations.h
+++ b/src/ios/CDVViewController+UpdateSupportedOrientations.h
@@ -1,26 +1,23 @@
 /*
- The MIT License (MIT)
- 
- Copyright (c) 2014
- 
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
- 
- The above copyright notice and this permission notice shall be included in all
- copies or substantial portions of the Software.
- 
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- SOFTWARE.
- */
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
 
 #import <Cordova/CDVViewController.h>
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/86fc819e/src/ios/CDVViewController+UpdateSupportedOrientations.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVViewController+UpdateSupportedOrientations.m b/src/ios/CDVViewController+UpdateSupportedOrientations.m
index 03421b7..b930923 100644
--- a/src/ios/CDVViewController+UpdateSupportedOrientations.m
+++ b/src/ios/CDVViewController+UpdateSupportedOrientations.m
@@ -1,33 +1,30 @@
 /*
- The MIT License (MIT)
- 
- Copyright (c) 2014
- 
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
- 
- The above copyright notice and this permission notice shall be included in all
- copies or substantial portions of the Software.
- 
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- SOFTWARE.
- */
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
 
 #import "CDVViewController+UpdateSupportedOrientations.h"
 
 @implementation CDVViewController (UpdateSupportedOrientations)
 
 - (void)updateSupportedOrientations:(NSArray *)orientations {
-	
+
 	[self setValue:orientations forKey:@"supportedOrientations"];
 
 }


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


[29/50] cordova-plugin-screen-orientation git commit: Updated Readme

Posted by to...@apache.org.
Updated Readme

Updated Readme


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/3ccadfdf
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/3ccadfdf
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/3ccadfdf

Branch: refs/heads/master
Commit: 3ccadfdf648e8d45032495e7178a2b5837f661fc
Parents: 9ba4760
Author: tokotchd <to...@gmail.com>
Authored: Fri Aug 7 12:18:11 2015 -0400
Committer: tokotchd <to...@gmail.com>
Committed: Fri Aug 7 12:18:11 2015 -0400

----------------------------------------------------------------------
 README.md | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/3ccadfdf/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 805f1d3..79cf1ec 100644
--- a/README.md
+++ b/README.md
@@ -94,6 +94,10 @@ Wraps the com.blackberry.app plugin functions, auto installed as a dependancy.
 
 Windows phone does not support specification or primary and secondary orientations.  If called with a specific orientation the plugin will just apply the landscape or portait orientation.
 
+## W8.1 Notes
+
+Windows 8.1 Applicaitons (runtime/metro applications) will only display orientation changes if the device has some sort of accelerometer.  The internal state of the "orientation" will still be kept, but the actual screen won't rotate unless the device supports it.
+
 # Changelog
 
 ## 1.3.7


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


[46/50] cordova-plugin-screen-orientation git commit: support interoperability between Orientation preference and screen-orientation plugin

Posted by to...@apache.org.
support interoperability between Orientation preference and screen-orientation plugin


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/93757784
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/93757784
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/93757784

Branch: refs/heads/master
Commit: 937577842b37a2d67a231835067e4e4df87009be
Parents: a661578
Author: Tony Homer <to...@intel.com>
Authored: Mon May 16 14:24:44 2016 -0400
Committer: Tony Homer <to...@intel.com>
Committed: Mon May 16 15:30:58 2016 -0400

----------------------------------------------------------------------
 src/ios/YoikScreenOrientation.h |  1 +
 src/ios/YoikScreenOrientation.m | 14 ++++++++++----
 2 files changed, 11 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/93757784/src/ios/YoikScreenOrientation.h
----------------------------------------------------------------------
diff --git a/src/ios/YoikScreenOrientation.h b/src/ios/YoikScreenOrientation.h
index dd23599..f2d4c67 100644
--- a/src/ios/YoikScreenOrientation.h
+++ b/src/ios/YoikScreenOrientation.h
@@ -25,6 +25,7 @@
 @interface YoikScreenOrientation : CDVPlugin
 
 - (void)screenOrientation:(CDVInvokedUrlCommand *)command;
+@property (strong, nonatomic) NSArray *originalSupportedOrientations;
 
 @end
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/93757784/src/ios/YoikScreenOrientation.m
----------------------------------------------------------------------
diff --git a/src/ios/YoikScreenOrientation.m b/src/ios/YoikScreenOrientation.m
index 9ffe8fa..3008b0c 100644
--- a/src/ios/YoikScreenOrientation.m
+++ b/src/ios/YoikScreenOrientation.m
@@ -28,9 +28,19 @@
 {
     [self.commandDelegate runInBackground:^{
 
+        if(self.originalSupportedOrientations == nil) {
+            self.originalSupportedOrientations = [self.viewController valueForKey:@"supportedOrientations"];
+        }
+
         NSArray* arguments = command.arguments;
         NSString* orientationIn = [arguments objectAtIndex:1];
 
+        if ([orientationIn isEqual: @"unlocked"]) {
+            [(CDVViewController*)self.viewController updateSupportedOrientations:self.originalSupportedOrientations];
+            self.originalSupportedOrientations = nil;
+            return;
+        }
+        
         // grab the device orientation so we can pass it back to the js side.
         NSString *orientation;
         switch ([[UIDevice currentDevice] orientation]) {
@@ -51,10 +61,6 @@
                 break;
         }
 
-        if ([orientationIn isEqual: @"unlocked"]) {
-            orientationIn = orientation;
-        }
-
         // we send the result prior to the view controller presentation so that the JS side
         // is ready for the unlock call.
         CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK


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


[24/50] cordova-plugin-screen-orientation git commit: added example on orientationchange

Posted by to...@apache.org.
added example on orientationchange


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

Branch: refs/heads/master
Commit: 4f36055bebbdd8e43159e480de632aa32842539f
Parents: 9244abc
Author: Johan Eliasson <jo...@allbinary.se>
Authored: Mon Jul 20 14:37:27 2015 +0200
Committer: Johan Eliasson <jo...@allbinary.se>
Committed: Mon Jul 20 14:37:27 2015 +0200

----------------------------------------------------------------------
 README.md | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/4f36055b/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 2110622..6a9a197 100644
--- a/README.md
+++ b/README.md
@@ -64,6 +64,12 @@ For this plugin to follow the full API events should be fired on the screen obje
 iOS and BB10 do not currently support events on the _screen_ object so custom event
 handling will need to be added (Suggestions welcome!).
 
+### Example usage
+
+    window.addEventListener("orientationchange", function(){
+        console.log('Orientation changed to ' + screen.orientation);
+    });
+
 ## Android Notes
 
 The __screen.orientation__ property will not update when the phone is [rotated 180 degrees](http://www.quirksmode.org/dom/events/orientationchange.html).


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


[22/50] cordova-plugin-screen-orientation git commit: Readme updates

Posted by to...@apache.org.
Readme updates


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/79a9ab85
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/79a9ab85
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/79a9ab85

Branch: refs/heads/master
Commit: 79a9ab857faf2e38ad057796d8ac8af82768158e
Parents: 503a380
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Wed May 20 14:06:51 2015 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Wed May 20 14:06:51 2015 +1000

----------------------------------------------------------------------
 README.md    | 55 ++++++++++++++++++++++++++++++-------------------------
 package.json |  2 +-
 plugin.xml   |  2 +-
 3 files changed, 32 insertions(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/79a9ab85/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 5d6f330..2110622 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
-#Cordova Screen Orientation Plugin
+# Cordova Screen Orientation Plugin
 
-Cordova plugin to set/lock the screen orientation in a common way for iOS, Android, WP8 and Blackberry 10.  From version 1.0.0 the interface is based on the [Screen Orientation API](http://www.w3.org/TR/screen-orientation/).
+Cordova plugin to set/lock the screen orientation in a common way for iOS, Android, WP8 and Blackberry 10.  This plugin is based on an early version of [Screen Orientation API](http://www.w3.org/TR/screen-orientation/) so the api does not currently match the current spec.
 
 The plugin adds the following to the screen object:
 
@@ -13,15 +13,17 @@ unlock the orientation
 __orientation__
 current orientation (ORIENTATION_STRING)
 
-##Install
+## Install
+
+cordova < 4
 
 cordova plugin add net.yoik.cordova.plugins.screenorientation
 
-###Source
-https://github.com/yoik/cordova-yoik-screenorientation
+cordova > 4
 
+cordova plugin add cordova-plugin-screen-orientation
 
-##Supported Orientations
+## Supported Orientations
 
 __portrait-primary__
 The orientation is in the primary portrait mode.
@@ -41,7 +43,7 @@ The orientation is either portrait-primary or portrait-secondary (sensor).
 __landscape__
 The orientation is either landscape-primary or landscape-secondary (sensor).
 
-##Usage
+## Usage
 
     // set to either landscape
     screen.lockOrientation('landscape');
@@ -52,7 +54,7 @@ The orientation is either landscape-primary or landscape-secondary (sensor).
     // access current orientation
     console.log('Orientation is ' + screen.orientation);
 
-##Events
+## Events
 
 Both android and iOS will fire the orientationchange event on the window object.
 For this version of the plugin use the window object if you require notification.
@@ -62,55 +64,58 @@ For this plugin to follow the full API events should be fired on the screen obje
 iOS and BB10 do not currently support events on the _screen_ object so custom event
 handling will need to be added (Suggestions welcome!).
 
-##Android Notes
+## Android Notes
 
 The __screen.orientation__ property will not update when the phone is [rotated 180 degrees](http://www.quirksmode.org/dom/events/orientationchange.html).
 
-##iOS Notes
+## iOS Notes
 
 The iOS version is a combination of the cordova JS callback _window.shouldRotateToOrientation_ and the workaround to recheck the orientation as implemented in https://github.com/Adlotto/cordova-plugin-recheck-screen-orientation.
 
 __If you have a custom implementation of the _window.shouldRotateToOrientation_ it will have to be removed for the plugin to function as expected.__
 
-####iOS6
+#### iOS6
 
 There has been a few cases where the rotation does not change the width of the viewport
 
-Issue [#1](https://github.com/yoik/cordova-yoik-screenorientation/issues/1) @dokterbob
+Issue [#1](https://github.com/gbenvenuti/cordova-plugin-screen-orientation/issues/1) @dokterbob
 
 >It seems to be related to having width=device-width, height=device-height in the meta viewport (which is part of the boilerplate phonegap/cordova app). It can be solved by updating the viewport with width=device-height, height=device-width or simply removing width and height altogether.
 
-####iOS8
+#### iOS8
 
 Versions prior to 1.2.0 will cause an application crash in iOS8 due to a change in presentViewController timing.
 
-##BB10 Notes
+## BB10 Notes
 
 Wraps the com.blackberry.app plugin functions, auto installed as a dependancy.
 
-####WP8 Notes
+## WP8 Notes
 
 Windows phone does not support specification or primary and secondary orientations.  If called with a specific orientation the plugin will just apply the landscape or portait orientation.
 
-#Changelog
+# Changelog
+
+## 1.3.5-6
+* Plugin added to npm
 
-##1.3.4
+## 1.3.4
 * Readme update
 
-##1.3.3
-* [#53](https://github.com/yoik/cordova-yoik-screenorientation/pull/53) WP8 Support
+## 1.3.3
+* [#53](https://github.com/gbenvenuti/cordova-plugin-screen-orientation/pull/53) WP8 Support
 
-##1.3.2
+## 1.3.2
 
-* [#33](https://github.com/yoik/cordova-yoik-screenorientation/issues/33) iOS8 Delay Block
+* [#33](https://github.com/gbenvenuti/cordova-plugin-screen-orientation/issues/33) iOS8 Delay Block
 
-##1.3.0
+## 1.3.0
 
-* [#23](https://github.com/yoik/cordova-yoik-screenorientation/issues/23) iOS8 flicker
+* [#23](https://github.com/gbenvenuti/cordova-plugin-screen-orientation/issues/23) iOS8 flicker
 
-##1.2.0-1.2.1
+## 1.2.0-1.2.1
 
-* [#19](https://github.com/yoik/cordova-yoik-screenorientation/issues/19) iOS8 Crash
+* [#19](https://github.com/gbenvenuti/cordova-plugin-screen-orientation/issues/19) iOS8 Crash
 
 
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/79a9ab85/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index deedbed..6610d33 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "cordova-plugin-screen-orientaion",
-  "version": "1.3.5",
+  "version": "1.3.6",
   "description": "Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8 and BB10.",
   "repository": {
     "type": "git",

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/79a9ab85/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index d1d3775..b402633 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="cordova-plugin-screen-orientation"
-    version="1.3.5">
+    version="1.3.6">
 
     <name>Screen Orientation</name>
     <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8 and BB10.</description>


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


[38/50] cordova-plugin-screen-orientation git commit: Cordova 3.6.3 - 'CB-7187 Delete CDVShared.m & remove dependency on CoreLocation

Posted by to...@apache.org.
Cordova 3.6.3 -
'CB-7187 Delete CDVShared.m & remove dependency on CoreLocation


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/2576cc6f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/2576cc6f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/2576cc6f

Branch: refs/heads/master
Commit: 2576cc6f23481b599561d6f406b4c2f65b7d95d0
Parents: d89dc2a
Author: Breno Douglas <br...@paieterno.com.br>
Authored: Thu Feb 11 08:52:48 2016 -0200
Committer: Breno Douglas <br...@paieterno.com.br>
Committed: Thu Feb 11 08:52:48 2016 -0200

----------------------------------------------------------------------
 src/ios/YoikScreenOrientation.h | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/2576cc6f/src/ios/YoikScreenOrientation.h
----------------------------------------------------------------------
diff --git a/src/ios/YoikScreenOrientation.h b/src/ios/YoikScreenOrientation.h
index 95da6e8..f226a93 100644
--- a/src/ios/YoikScreenOrientation.h
+++ b/src/ios/YoikScreenOrientation.h
@@ -23,7 +23,6 @@ SOFTWARE.
  */
 
 #import <Cordova/CDVPlugin.h>
-#import <Cordova/CDVShared.h>
 
 @interface YoikScreenOrientation : CDVPlugin
 


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


[02/50] cordova-plugin-screen-orientation git commit: Version bump 1.3.0

Posted by to...@apache.org.
Version bump 1.3.0


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/c122649d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/c122649d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/c122649d

Branch: refs/heads/master
Commit: c122649de2bc8dafaa6582c9a118fae73fc15367
Parents: 3b7d259
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Thu Sep 18 09:45:51 2014 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Thu Sep 18 09:45:51 2014 +1000

----------------------------------------------------------------------
 plugin.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/c122649d/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index f947ab8..f4b7472 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -2,7 +2,7 @@
 <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
     xmlns:android="http://schemas.android.com/apk/res/android"
     id="net.yoik.cordova.plugins.screenorientation"
-    version="1.2.1">
+    version="1.3.0">
 
     <name>Screen Orientation</name>
     <description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS and BB10.</description>


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


[32/50] cordova-plugin-screen-orientation git commit: Add portrait upside down to ios default orientations. closes #37

Posted by to...@apache.org.
Add portrait upside down to ios default orientations. closes #37


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/0eb6d35f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/0eb6d35f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/0eb6d35f

Branch: refs/heads/master
Commit: 0eb6d35fc6f6a440fefd75ef1e1a20bb0f89227f
Parents: c8b8900
Author: Grant Benvenuti <g....@pni.com.au>
Authored: Mon Aug 10 09:40:42 2015 +1000
Committer: Grant Benvenuti <g....@pni.com.au>
Committed: Mon Aug 10 09:40:42 2015 +1000

----------------------------------------------------------------------
 www/screenorientation.ios.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/0eb6d35f/www/screenorientation.ios.js
----------------------------------------------------------------------
diff --git a/www/screenorientation.ios.js b/www/screenorientation.ios.js
index 11d30f7..b21823d 100644
--- a/www/screenorientation.ios.js
+++ b/www/screenorientation.ios.js
@@ -8,7 +8,7 @@ var exec = require('cordova/exec'),
         'landscape': [-90,90],
         'landscape-primary': [-90],
         'landscape-secondary': [90],
-        'default': [-90,90,0]
+        'default': [-90,90,0,180]
     };
 
 screenOrientation.setOrientation = function(orientation) {


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