Skip to content

Commit fbf9d30

Browse files
authored
fix!: remove deprecated platforms (#181)
1 parent 460a3ad commit fbf9d30

File tree

6 files changed

+2
-294
lines changed

6 files changed

+2
-294
lines changed

README.md

-20
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ The `device.cordova` property will display `10.1.1`.
7070
- Android
7171
- Browser
7272
- iOS
73-
- Windows
74-
- OS X
7573

7674
## device.model
7775

@@ -84,8 +82,6 @@ different across versions of the same product.
8482
- Android
8583
- Browser
8684
- iOS
87-
- Windows
88-
- OS X
8985

9086
### Quick Example
9187

@@ -128,8 +124,6 @@ var string = device.platform;
128124
- Android
129125
- Browser
130126
- iOS
131-
- Windows
132-
- OS X
133127

134128
### Quick Example
135129

@@ -138,8 +132,6 @@ var string = device.platform;
138132
// - "Android"
139133
// - "browser"
140134
// - "iOS"
141-
// - "WinCE"
142-
// - "Mac OS X"
143135
//
144136
var devicePlatform = device.platform;
145137
```
@@ -160,8 +152,6 @@ The details of how a UUID is generated are determined by the device manufacturer
160152

161153
- Android
162154
- iOS
163-
- Windows
164-
- OS X
165155

166156
### Quick Example
167157

@@ -171,9 +161,6 @@ The details of how a UUID is generated are determined by the device manufacturer
171161
// iOS: (Paraphrased from the UIDevice Class documentation)
172162
// Returns the [UIDevice identifierForVendor] UUID which is unique and the same for all apps installed by the same vendor. However the UUID can be different if the user deletes all apps from the vendor and then reinstalls it.
173163
//
174-
// Windows Phone 7 : Returns a hash of device+current user,
175-
// if the user is not defined, a guid is generated and will persist until the app is uninstalled
176-
//
177164
var deviceID = device.uuid;
178165
```
179166

@@ -214,8 +201,6 @@ Get the operating system version.
214201
- Android
215202
- Browser
216203
- iOS
217-
- Windows
218-
- OS X
219204

220205
### Quick Example
221206

@@ -228,10 +213,6 @@ Get the operating system version.
228213
//
229214
// iOS: iOS 3.2 returns "3.2"
230215
//
231-
// Windows 8: return the current OS version, ex on Windows 8.1 returns 6.3.9600.16384
232-
//
233-
// OS X: El Capitan would return "10.11.2"
234-
//
235216
var deviceVersion = device.version;
236217
```
237218

@@ -245,7 +226,6 @@ Get the device's manufacturer.
245226

246227
- Android
247228
- iOS
248-
- Windows
249229

250230
### Quick Example
251231

package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"android",
1010
"electron",
1111
"ios",
12-
"windows",
13-
"browser",
14-
"osx"
12+
"browser"
1513
]
1614
},
1715
"repository": "github:apache/cordova-plugin-device",
@@ -23,9 +21,7 @@
2321
"cordova-android",
2422
"cordova-electron",
2523
"cordova-ios",
26-
"cordova-windows",
27-
"cordova-browser",
28-
"cordova-osx"
24+
"cordova-browser"
2925
],
3026
"scripts": {
3127
"test": "npm run lint",

plugin.xml

-20
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,6 @@
6868
<framework src="src/electron" />
6969
</platform>
7070

71-
<!-- windows -->
72-
<platform name="windows">
73-
<js-module src="src/windows/DeviceProxy.js" name="DeviceProxy">
74-
<runs />
75-
</js-module>
76-
</platform>
77-
7871
<!-- browser -->
7972
<platform name="browser">
8073
<config-file target="config.xml" parent="/*">
@@ -88,17 +81,4 @@
8881
</js-module>
8982
</platform>
9083

91-
<!-- osx -->
92-
<platform name="osx">
93-
<config-file target="config.xml" parent="/*">
94-
<feature name="Device">
95-
<param name="ios-package" value="Device"/>
96-
</feature>
97-
</config-file>
98-
99-
<header-file src="src/osx/CDVDevice.h" />
100-
<source-file src="src/osx/CDVDevice.m" />
101-
</platform>
102-
103-
10484
</plugin>

src/osx/CDVDevice.h

-28
This file was deleted.

src/osx/CDVDevice.m

-126
This file was deleted.

src/windows/DeviceProxy.js

-94
This file was deleted.

0 commit comments

Comments
 (0)