diff --git a/README.md b/README.md
index ae318a7..97a4092 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ description: Set the screen orientation
[](https://github.com/apache/cordova-plugin-screen-orientation/actions/workflows/android.yml) [](https://github.com/apache/cordova-plugin-screen-orientation/actions/workflows/chrome.yml) [](https://github.com/apache/cordova-plugin-screen-orientation/actions/workflows/ios.yml) [](https://github.com/apache/cordova-plugin-screen-orientation/actions/workflows/lint.yml)
-Cordova plugin to set/lock the screen orientation in a common way for iOS, Android, and windows-uwp. This plugin is based on [Screen Orientation API](http://www.w3.org/TR/screen-orientation/) so the api matches the current spec.
+Cordova plugin to set/lock the screen orientation in a common way for iOS and Android. This plugin is based on [Screen Orientation API](http://www.w3.org/TR/screen-orientation/) so the api matches the current spec.
The plugin adds the following to the screen object (`window.screen`):
@@ -114,7 +114,3 @@ screen.orientation.onchange = function(){console.log(screen.orientation.type);
## Android Notes
The __screen.orientation__ property will not update when the phone is [rotated 180 degrees](http://www.quirksmode.org/dom/events/orientationchange.html).
-
-## Windows UWP Notes
-
-Windows store apps (windows-uwp) 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.
diff --git a/package.json b/package.json
index d20677a..e349562 100644
--- a/package.json
+++ b/package.json
@@ -12,15 +12,13 @@
"id": "cordova-plugin-screen-orientation",
"platforms": [
"android",
- "ios",
- "windows"
+ "ios"
]
},
"keywords": [
"cordova",
"cordova-android",
"cordova-ios",
- "cordova-windows",
"device",
"ecosystem:cordova",
"screen",
diff --git a/plugin.xml b/plugin.xml
index da2dc95..d95f864 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -56,11 +56,4 @@
-
-
-
-
-
-
-
diff --git a/src/windows/CDVOrientationProxy.js b/src/windows/CDVOrientationProxy.js
deleted file mode 100644
index 0bb7259..0000000
--- a/src/windows/CDVOrientationProxy.js
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- *
- * 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.
- *
- */
-
-/* global Windows, WinJS */
-
-var DisplayInfo = Windows.Graphics.Display.DisplayInformation;
-var Orientations = Windows.Graphics.Display.DisplayOrientations;
-
-if (!window.Promise) {
- window.Promise = WinJS.Promise;
-}
-
-module.exports = {
- screenOrientation: function (win, fail, args) {
- // console.log("screenOrientation proxy called with " + args);
-
- try {
- var prefOrients = args[0];
- var winPrefs = 0;
-
- if (prefOrients & 1) {
- // UIInterfaceOrientationPortrait
- winPrefs = winPrefs | Orientations.portrait;
- }
- if (prefOrients & 2) {
- // UIInterfaceOrientationPortraitUpsideDown
- winPrefs = winPrefs | Orientations.portraitFlipped;
- }
- if (prefOrients & 4) {
- // UIInterfaceOrientationLandscapeLeft
- winPrefs = winPrefs | Orientations.landscape;
- }
- if (prefOrients & 8) {
- // UIInterfaceOrientationLandscapeRight
- winPrefs = winPrefs | Orientations.landscapeFlipped;
- }
- setTimeout(function () {
- DisplayInfo.autoRotationPreferences = winPrefs;
- win();
- }, 0);
- } catch (err) {
- console.log('error :: ' + err);
- fail();
- }
- }
-};
-
-require('cordova/exec/proxy').add('CDVOrientation', module.exports);