Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: remove deprecated platforms #181

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ The `device.cordova` property will display `10.1.1`.
- Android
- Browser
- iOS
- Windows
- OS X

## device.model

Expand All @@ -84,8 +82,6 @@ different across versions of the same product.
- Android
- Browser
- iOS
- Windows
- OS X

### Quick Example

Expand Down Expand Up @@ -126,8 +122,6 @@ var string = device.platform;
- Android
- Browser
- iOS
- Windows
- OS X

### Quick Example

Expand All @@ -136,8 +130,6 @@ var string = device.platform;
// - "Android"
// - "browser"
// - "iOS"
// - "WinCE"
// - "Mac OS X"
//
var devicePlatform = device.platform;
```
Expand All @@ -158,8 +150,6 @@ The details of how a UUID is generated are determined by the device manufacturer

- Android
- iOS
- Windows
- OS X

### Quick Example

Expand All @@ -169,9 +159,6 @@ The details of how a UUID is generated are determined by the device manufacturer
// iOS: (Paraphrased from the UIDevice Class documentation)
// 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.
//
// Windows Phone 7 : Returns a hash of device+current user,
// if the user is not defined, a guid is generated and will persist until the app is uninstalled
//
var deviceID = device.uuid;
```

Expand Down Expand Up @@ -212,8 +199,6 @@ Get the operating system version.
- Android
- Browser
- iOS
- Windows
- OS X

### Quick Example

Expand All @@ -226,10 +211,6 @@ Get the operating system version.
//
// iOS: iOS 3.2 returns "3.2"
//
// Windows 8: return the current OS version, ex on Windows 8.1 returns 6.3.9600.16384
//
// OS X: El Capitan would return "10.11.2"
//
var deviceVersion = device.version;
```

Expand All @@ -243,7 +224,6 @@ Get the device's manufacturer.

- Android
- iOS
- Windows

### Quick Example

Expand Down
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"android",
"electron",
"ios",
"windows",
"browser",
"osx"
"browser"
]
},
"repository": "github:apache/cordova-plugin-device",
Expand All @@ -23,9 +21,7 @@
"cordova-android",
"cordova-electron",
"cordova-ios",
"cordova-windows",
"cordova-browser",
"cordova-osx"
"cordova-browser"
],
"scripts": {
"test": "npm run lint",
Expand Down
20 changes: 0 additions & 20 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,6 @@
<framework src="src/electron" />
</platform>

<!-- windows -->
<platform name="windows">
<js-module src="src/windows/DeviceProxy.js" name="DeviceProxy">
<runs />
</js-module>
</platform>

<!-- browser -->
<platform name="browser">
<config-file target="config.xml" parent="/*">
Expand All @@ -86,17 +79,4 @@
</js-module>
</platform>

<!-- osx -->
<platform name="osx">
<config-file target="config.xml" parent="/*">
<feature name="Device">
<param name="ios-package" value="Device"/>
</feature>
</config-file>

<header-file src="src/osx/CDVDevice.h" />
<source-file src="src/osx/CDVDevice.m" />
</platform>


</plugin>
28 changes: 0 additions & 28 deletions src/osx/CDVDevice.h

This file was deleted.

126 changes: 0 additions & 126 deletions src/osx/CDVDevice.m

This file was deleted.

94 changes: 0 additions & 94 deletions src/windows/DeviceProxy.js

This file was deleted.