@capacitor/device
Advanced tools
Comparing version 7.0.0-dev-2246-20241113T170156.0 to 7.0.0-dev-2251-20241120T183306.0
@@ -248,58 +248,2 @@ { | ||
{ | ||
"name": "diskFree", | ||
"tags": [ | ||
{ | ||
"text": "Use `realDiskFree`.", | ||
"name": "deprecated" | ||
}, | ||
{ | ||
"text": "1.0.0", | ||
"name": "since" | ||
} | ||
], | ||
"docs": "How much free disk space is available on 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": [], | ||
"type": "number | undefined" | ||
}, | ||
{ | ||
"name": "diskTotal", | ||
"tags": [ | ||
{ | ||
"text": "Use `realDiskTotal`.", | ||
"name": "deprecated" | ||
}, | ||
{ | ||
"text": "1.0.0", | ||
"name": "since" | ||
} | ||
], | ||
"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": [], | ||
"type": "number | undefined" | ||
}, | ||
{ | ||
"name": "realDiskFree", | ||
"tags": [ | ||
{ | ||
"text": "1.1.0", | ||
"name": "since" | ||
} | ||
], | ||
"docs": "How much free disk space is available on 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", | ||
@@ -306,0 +250,0 @@ "tags": [ |
@@ -91,36 +91,2 @@ export declare type OperatingSystem = 'ios' | 'android' | 'windows' | 'mac' | 'unknown'; | ||
/** | ||
* How much free disk space is available on 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 | ||
*/ | ||
diskFree?: number; | ||
/** | ||
* 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. | ||
* | ||
* @deprecated Use `realDiskTotal`. | ||
* @since 1.0.0 | ||
*/ | ||
diskTotal?: number; | ||
/** | ||
* How much free disk space is available on 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 | ||
@@ -127,0 +93,0 @@ * |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var core = require('@capacitor/core'); | ||
@@ -4,0 +6,0 @@ |
@@ -183,2 +183,4 @@ var capacitorDevice = (function (exports, core) { | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
return exports; | ||
@@ -185,0 +187,0 @@ |
{ | ||
"name": "@capacitor/device", | ||
"version": "7.0.0-dev-2246-20241113T170156.0", | ||
"version": "7.0.0-dev-2251-20241120T183306.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.", | ||
@@ -44,3 +44,3 @@ "main": "dist/plugin.cjs.js", | ||
"docgen": "docgen --api DevicePlugin --output-readme README.md --output-json dist/docs.json", | ||
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs", | ||
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js", | ||
"clean": "rimraf ./dist", | ||
@@ -64,3 +64,3 @@ "watch": "tsc --watch", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^4.26.0", | ||
"rollup": "^2.29.0", | ||
"swiftlint": "^1.0.1", | ||
@@ -67,0 +67,0 @@ "ts-node": "^9.1.1", |
@@ -12,35 +12,2 @@ # @capacitor/device | ||
## Apple Privacy Manifest Requirements | ||
Apple mandates that app developers now specify approved reasons for API usage to enhance user privacy. By May 1st, 2024, it's required to include these reasons when submitting apps to the App Store Connect. | ||
When using this specific plugin in your app, you must create a `PrivacyInfo.xcprivacy` file in `/ios/App` or use the VS Code Extension to generate it, specifying the usage reasons. | ||
For detailed steps on how to do this, please see the [Capacitor Docs](https://capacitorjs.com/docs/ios/privacy-manifest). | ||
**For this plugin, the required dictionary key is [NSPrivacyAccessedAPICategoryDiskSpace](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api#4278397) and the recommended reason is [85F4.1](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api#4278397).** | ||
### Example PrivacyInfo.xcprivacy | ||
```xml | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>NSPrivacyAccessedAPITypes</key> | ||
<array> | ||
<!-- Add this dict entry to the array if the PrivacyInfo file already exists --> | ||
<dict> | ||
<key>NSPrivacyAccessedAPIType</key> | ||
<string>NSPrivacyAccessedAPICategoryDiskSpace</string> | ||
<key>NSPrivacyAccessedAPITypeReasons</key> | ||
<array> | ||
<string>85F4.1</string> | ||
</array> | ||
</dict> | ||
</array> | ||
</dict> | ||
</plist> | ||
``` | ||
## Example Plugin Usage | ||
@@ -180,6 +147,2 @@ | ||
| **`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 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 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 | | ||
@@ -186,0 +149,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
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
105617
1100
179