Readme updates

This commit is contained in:
Grant Benvenuti 2015-05-20 14:06:51 +10:00
parent 503a380624
commit 79a9ab857f
3 changed files with 32 additions and 27 deletions

View File

@ -1,6 +1,6 @@
# 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:
@ -15,11 +15,13 @@ current orientation (ORIENTATION_STRING)
## 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
@ -76,7 +78,7 @@ __If you have a custom implementation of the _window.shouldRotateToOrientation_
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.
@ -88,29 +90,32 @@ 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
## 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.5-6
* Plugin added to npm
## 1.3.4
* Readme update
## 1.3.3
* [#53](https://github.com/yoik/cordova-yoik-screenorientation/pull/53) WP8 Support
* [#53](https://github.com/gbenvenuti/cordova-plugin-screen-orientation/pull/53) WP8 Support
## 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
* [#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
* [#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

View File

@ -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",

View File

@ -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>