File Plugin 7.0.0 & Device Plugin 2.1.0 发布!
2022 年 4 月 11 日
我们很高兴地宣布,我们刚刚发布了 cordova-plugin-file
和 cordova-plugin-device
的更新!
升级方式
cordova plugin remove cordova-plugin-file
cordova plugin add [email protected]
cordova plugin remove cordova-plugin-device
cordova plugin add [email protected]
发布亮点
cordova-plugin-file
对于 Android,添加了一个 WebViewAssetLoader
代理处理程序,以支持在使用自定义方案时加载 cdvfile
URL。建议使用 toURL
方法来获取可使用的 URL。当应用程序从 http
或 https
协议提供服务时,toURL
将返回适当的可使用的 cdvfile
URL。如果应用程序从 file
协议使用,则 toURL
将返回原生 file
URL。
cordova-plugin-device
已添加 Electron 原生支持。
对于 Android,sdkVersion
属性现在包含在 window.device
对象中,并在 getInfo
响应对象中返回。
请在 issues.cordova.io 上报告您发现的任何问题!
更改包括
cordova-plugin-file
- GH-519 chore!: 移除旧的平台代码并进行 lint 清理
- GH-517 fix(android): 支持自定义方案的 cdvfile 资源
- GH-516 fix(android): 创建
toURL
覆盖以保留其他平台 - GH-487 fix(android): 列出外部目录时请求外部读取权限
- GH-513 feat(android): 为 cdvfile 添加
WebViewAssetLoader
代理处理程序 - GH-490 chore:
npmrc
- GH-489 fix: 恢复 return 语句
- GH-470 fix: 移除测试日志
- GH-447 fix(browser):
preparing.js
中的错别字 - GH-439 chore: 要求 Android 9
- GH-433 refactor(android): 移除过时的 copyResource 函数
- GH-417 fix(android): 使用旧版存储