Skip to content

Commit

Permalink
fix!: remove deprecated platforms (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored May 13, 2024
1 parent 460a3ad commit fbf9d30
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 294 deletions.
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 @@ -128,8 +124,6 @@ var string = device.platform;
- Android
- Browser
- iOS
- Windows
- OS X

### Quick Example

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

- Android
- iOS
- Windows
- OS X

### Quick Example

Expand All @@ -171,9 +161,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 @@ -214,8 +201,6 @@ Get the operating system version.
- Android
- Browser
- iOS
- Windows
- OS X

### Quick Example

Expand All @@ -228,10 +213,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 @@ -245,7 +226,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 @@ -68,13 +68,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 @@ -88,17 +81,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.

0 comments on commit fbf9d30

Please sign in to comment.