Apache Cordova Windows 5.0.0
2017年2月13日
我們很高興宣布 Cordova Windows 5.0.0
已發布!
此版本引入了 資源檔案行為的重大變更(請參閱 文件,了解如何將引用檔案恢復為先前的行為),並新增了 基於 WinMD + C++ 的 DLL 組合外掛支援。
另一個重點是 buildFlag
的新功能,類似於 Android 上的 --gradleArg
和 iOS 上的 --buildFlag
,允許將自訂標誌傳遞給 MSBuild。
此版本還修復了一些關於啟動畫面和 VS 專案產生的問題。
請參閱下方的版本說明,以了解更多詳細資訊和其餘的變更。
升級
npm install -g cordova
cd my_project
cordova platform update windows@5.0.0
明確新增
cordova platform add windows@5.0.0
Windows 平台的新功能
- CB-12163 通過標誌新增資源檔案參考功能
- CB-12163 再次讓資源檔案複製檔案
- 將 cordova-common 升級至 2.0.0
- CB-12298 [Windows] 未為 Windows 10 目標產生 bundle.appxupload
- CB-12189 新增對 WinMD 和 DLL 組合的支援
- CB-12238 [Windows] 將標題列著色以符合啟動畫面背景顏色
- CB-11177 啟動畫面在具有軟導航欄的 Windows 裝置上會偏移
- CB-12239 新增類似於 iOS 的 buildFlag 選項
- CB-12193 如果沒有 CoreWindow,cordova.js 會導致 Windows 應用程式崩潰。 也讓 confighelper 在 WinJS 之後載入,因為它依賴於 WinJS
- CB-11751 'extendedSplashScreen' 未定義
- CB-12192 當 content.src 是子頁面時,Windows 上沒有啟動畫面
- CB-9287 Windows 8.1 和 Windows Phone 8.1 的圖示和啟動畫面不足
- CB-11933 在外掛新增/移除時,不要忽略已帶有前綴的功能
- CB-11933 修復提取功能名稱的模式
- CB-12142 將 Windows 專屬邏輯從 cordova-common 移出
- CB-12147 (windows) 修復詳細輸出中的錯字
- CB-12124 在 package.windows10.appxmanifest 中提供可用的裝置功能
- CB-12071 修復 CB-11825 導致 Cordova Windows 中無法使用 InProcessServer 的問題
- CB-12036 修復找不到啟動畫面時 setSplashBgColor 引發的例外狀況