@capacitor/device
Advanced tools
Comparing version 1.0.6 to 1.1.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.1.0](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/device@1.0.6...@capacitor/device@1.1.0) (2021-11-17) | ||
### Features | ||
* **device:** Add realDiskTotal and realDiskFree properties ([#694](https://github.com/ionic-team/capacitor-plugins/issues/694)) ([3f67643](https://github.com/ionic-team/capacitor-plugins/commit/3f67643edf4cfd90a84d4606c4c6349b72531b92)) | ||
## [1.0.6](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/device@1.0.5...@capacitor/device@1.0.6) (2021-11-03) | ||
@@ -8,0 +19,0 @@ |
@@ -210,2 +210,6 @@ { | ||
{ | ||
"text": "Use `realDiskFree`.", | ||
"name": "deprecated" | ||
}, | ||
{ | ||
"text": "1.0.0", | ||
@@ -215,3 +219,3 @@ "name": "since" | ||
], | ||
"docs": "How much free disk space is available on the the normal data storage.\npath for the os, in bytes", | ||
"docs": "How much free disk space is available on the the normal data storage\npath for the os, in bytes.\n\nOn Android it returns the free disk space on the \"system\"\npartition holding the core Android OS.\nOn iOS this value is not accurate.", | ||
"complexTypes": [], | ||
@@ -224,2 +228,6 @@ "type": "number | undefined" | ||
{ | ||
"text": "Use `realDiskTotal`.", | ||
"name": "deprecated" | ||
}, | ||
{ | ||
"text": "1.0.0", | ||
@@ -229,3 +237,3 @@ "name": "since" | ||
], | ||
"docs": "The total size of the normal data storage path for the OS, in bytes.", | ||
"docs": "The total size of the normal data storage path for the OS, in bytes.\n\nOn Android it returns the disk space on the \"system\"\npartition holding the core Android OS.", | ||
"complexTypes": [], | ||
@@ -235,2 +243,26 @@ "type": "number | undefined" | ||
{ | ||
"name": "realDiskFree", | ||
"tags": [ | ||
{ | ||
"text": "1.1.0", | ||
"name": "since" | ||
} | ||
], | ||
"docs": "How much free disk space is available on the the normal data storage, in bytes.", | ||
"complexTypes": [], | ||
"type": "number | undefined" | ||
}, | ||
{ | ||
"name": "realDiskTotal", | ||
"tags": [ | ||
{ | ||
"text": "1.1.0", | ||
"name": "since" | ||
} | ||
], | ||
"docs": "The total size of the normal data storage path, in bytes.", | ||
"complexTypes": [], | ||
"type": "number | undefined" | ||
}, | ||
{ | ||
"name": "webViewVersion", | ||
@@ -237,0 +269,0 @@ "tags": [ |
@@ -66,5 +66,10 @@ export declare type OperatingSystem = 'ios' | 'android' | 'windows' | 'mac' | 'unknown'; | ||
/** | ||
* How much free disk space is available on the the normal data storage. | ||
* path for the os, in bytes | ||
* How much free disk space is available on the the normal data storage | ||
* path for the os, in bytes. | ||
* | ||
* On Android it returns the free disk space on the "system" | ||
* partition holding the core Android OS. | ||
* On iOS this value is not accurate. | ||
* | ||
* @deprecated Use `realDiskFree`. | ||
* @since 1.0.0 | ||
@@ -76,2 +81,6 @@ */ | ||
* | ||
* On Android it returns the disk space on the "system" | ||
* partition holding the core Android OS. | ||
* | ||
* @deprecated Use `realDiskTotal`. | ||
* @since 1.0.0 | ||
@@ -81,2 +90,14 @@ */ | ||
/** | ||
* How much free disk space is available on the the normal data storage, in bytes. | ||
* | ||
* @since 1.1.0 | ||
*/ | ||
realDiskFree?: number; | ||
/** | ||
* The total size of the normal data storage path, in bytes. | ||
* | ||
* @since 1.1.0 | ||
*/ | ||
realDiskTotal?: number; | ||
/** | ||
* The web view browser version | ||
@@ -83,0 +104,0 @@ * |
{ | ||
"name": "@capacitor/device", | ||
"version": "1.0.6", | ||
"version": "1.1.0", | ||
"description": "The Device API exposes internal information about the device, such as the model and operating system version, along with user information such as unique ids.", | ||
@@ -86,3 +86,3 @@ "main": "dist/plugin.cjs.js", | ||
}, | ||
"gitHead": "64df93225736e9dfad336562f5e53e5a2243052b" | ||
"gitHead": "3beb75a9bfc18d0586f2c9df1b584250e95e0237" | ||
} |
@@ -118,15 +118,17 @@ # @capacitor/device | ||
| Prop | Type | Description | Since | | ||
| --------------------- | ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ----- | | ||
| **`name`** | <code>string</code> | The name of the device. For example, "John's iPhone". This is only supported on iOS and Android 7.1 or above. | 1.0.0 | | ||
| **`model`** | <code>string</code> | The device model. For example, "iPhone". | 1.0.0 | | ||
| **`platform`** | <code>'ios' \| 'android' \| 'web'</code> | The device platform (lowercase). | 1.0.0 | | ||
| **`operatingSystem`** | <code><a href="#operatingsystem">OperatingSystem</a></code> | The operating system of the device. | 1.0.0 | | ||
| **`osVersion`** | <code>string</code> | The version of the device OS. | 1.0.0 | | ||
| **`manufacturer`** | <code>string</code> | The manufacturer of the device. | 1.0.0 | | ||
| **`isVirtual`** | <code>boolean</code> | Whether the app is running in a simulator/emulator. | 1.0.0 | | ||
| **`memUsed`** | <code>number</code> | Approximate memory used by the current app, in bytes. Divide by 1048576 to get the number of MBs used. | 1.0.0 | | ||
| **`diskFree`** | <code>number</code> | How much free disk space is available on the the normal data storage. path for the os, in bytes | 1.0.0 | | ||
| **`diskTotal`** | <code>number</code> | The total size of the normal data storage path for the OS, in bytes. | 1.0.0 | | ||
| **`webViewVersion`** | <code>string</code> | The web view browser version | 1.0.0 | | ||
| Prop | Type | Description | Since | | ||
| --------------------- | ----------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | | ||
| **`name`** | <code>string</code> | The name of the device. For example, "John's iPhone". This is only supported on iOS and Android 7.1 or above. | 1.0.0 | | ||
| **`model`** | <code>string</code> | The device model. For example, "iPhone". | 1.0.0 | | ||
| **`platform`** | <code>'ios' \| 'android' \| 'web'</code> | The device platform (lowercase). | 1.0.0 | | ||
| **`operatingSystem`** | <code><a href="#operatingsystem">OperatingSystem</a></code> | The operating system of the device. | 1.0.0 | | ||
| **`osVersion`** | <code>string</code> | The version of the device OS. | 1.0.0 | | ||
| **`manufacturer`** | <code>string</code> | The manufacturer of the device. | 1.0.0 | | ||
| **`isVirtual`** | <code>boolean</code> | Whether the app is running in a simulator/emulator. | 1.0.0 | | ||
| **`memUsed`** | <code>number</code> | Approximate memory used by the current app, in bytes. Divide by 1048576 to get the number of MBs used. | 1.0.0 | | ||
| **`diskFree`** | <code>number</code> | How much free disk space is available on the the normal data storage path for the os, in bytes. On Android it returns the free disk space on the "system" partition holding the core Android OS. On iOS this value is not accurate. | 1.0.0 | | ||
| **`diskTotal`** | <code>number</code> | The total size of the normal data storage path for the OS, in bytes. On Android it returns the disk space on the "system" partition holding the core Android OS. | 1.0.0 | | ||
| **`realDiskFree`** | <code>number</code> | How much free disk space is available on the the normal data storage, in bytes. | 1.1.0 | | ||
| **`realDiskTotal`** | <code>number</code> | The total size of the normal data storage path, in bytes. | 1.1.0 | | ||
| **`webViewVersion`** | <code>string</code> | The web view browser version | 1.0.0 | | ||
@@ -133,0 +135,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96649
1070
158