From bbde995383266e29e855a98e673760995b50005c Mon Sep 17 00:00:00 2001 From: Grant Benvenuti Date: Mon, 10 Aug 2015 09:57:07 +1000 Subject: [PATCH] v1.4.0 release --- README.md | 5 ++++- package.json | 2 +- plugin.xml | 2 +- src/ios/YoikScreenOrientation.m | 8 ++++---- 4 files changed, 10 insertions(+), 7 deletions(-) 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 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", diff --git a/plugin.xml b/plugin.xml index 5b96723..889067e 100644 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="1.4.0"> Screen Orientation Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS, WP8, W8.1, and BB10. 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