媒體外掛程式 5.0.4 發布!
2022 年 1 月 25 日
我們很高興宣布,我們剛剛發布了 Cordova 媒體外掛程式 (5.0.4)
的更新!
升級方式
cordova plugin remove cordova-plugin-media
cordova plugin add cordova-plugin-media@5.0.4
版本重點
-
解決了 Android 11 的已掛載儲存空間問題
Android 11 棄用了
Environment.getExternalStorageDirectory()
API,導致了提取和掛載到外部目錄的問題。在此版本中,我們將 API 變更為context.getExternalFilesDir(null)
,這是建議用於提取和掛載外部儲存目錄的替代 API。
請在 issues.cordova.io 回報您發現的任何問題!
變更內容包括
- GH-317 fix(android): 為 Android 10+ 取得外部檔案目錄
- GH-249 fix: #248 刪除已釋放媒體的 javascript 參考
- GH-241 fix(types): 為 getCurrentAmplitude 新增類型定義
- GH-283 refactor(eslint): 使用
cordova-eslint
並進行修復
雜項 & 依賴項
- GH-329 dep: 更新
@cordova/eslint-config@4.0.0
並進行修復 & 重建package-lock
- GH-284 chore: 新增
package-lock
檔案 - GH-282 chore(npm): 在
package.json
中使用簡短符號 - GH-275 chore(npm): 改善忽略清單
CI & 測試
- GH-320 ci(ios): 使用 iOS 15 更新工作流程
- GH-313 ci: 新增 action-badge
- GH-312 ci: 移除 travis & appveyor
- GH-311 ci: 新增 gh-actions 工作流程
- GH-298 ci: 在工作流程中新增 node-14.x
- GH-292 ci(travis): 更新 osx xcode 映像
- GH-291 ci(travis): 更新 Android API 級別
- GH-274 ci: 更新 Node.js 版本
- GH-318 test(browser): 由於 Chrome 的自動播放政策,停用含 play() 的測試案例