部落格 RSS 訂閱

Apache Cordova 3.4.0
作者: Steve Gill
2014 年 2 月 20 日

我們很高興地宣布 Cordova 3.4 已發布!

此版本針對我們所有支援的平台進行了各種錯誤修復。

我們在 Mozilla 的朋友們撰寫了一篇關於開始使用 Cordova Firefox OS 的部落格文章。請參閱 https://hacks.mozilla.org/2014/02/building-cordova-apps-for-firefox-os/

要升級:(將 android 替換為您要更新的平台)

npm install -g cordova
cd my_project
cordova platform update android

對於非 CLI 專案或 pre-3.0 專案,請參閱升級指南

Android 的新功能

Android:來自 10 位作者的 43 個提交。重點包括:

  • 由於安全漏洞,從所有低於 4.2 的 Android 版本中刪除 addJavascriptInterface 支援
  • CB-5917 新增一個不重新建立外掛的 loadUrlIntoView 多載。
  • CB-5889 使更新腳本可以找到專案名稱,而不是使用 "null" 來代表 CordovaLib
  • CB-5889 在更新腳本中添加一條訊息,說明在使用 IDE 時需要導入 CordovaLib。
  • CB-5793 不要在建置之前清理,並將輸出目錄變更為 ant-build,以避免與 Eclipse 衝突。
  • CB-5803 修復 Windows 上的 cordova/emulate
  • CB-5801 在建置中使用 exec->spawn,以確保顯示編譯錯誤。
  • CB-5799OkHTTP 版本更新至 1.3
  • CB-4910 更新 CLI 專案範本,使其指向根目錄下的 config.xml,因為預設情況下它不在 www/ 中。
  • CB-5504onDestroy 新增至應用程式外掛以取消註冊 telephonyReceiver
  • CB-5715 新增 Eclipse .project 檔案以建立範本。對於 CLI 專案,它會為根目錄的 www/ & config.xml 新增參考,並隱藏平台版本
  • CB-5447 從專案範本中移除 android:debuggable=“true”
  • CB-5714 修復 Android 建置時,由於緩衝區溢位導致輸出過大而停止建置的問題。
  • CB-5592 當 scheme 為 file 時,為 openExternal 設定 MIME 類型

iOS 的新功能

  • CB-5794 iOS 建置腳本:1. 不要清理 2. 辨識 --emulator--device
  • 不要在 copy-www 腳本的建置記錄中顯示環境變數
  • CB-4910 更新 CLI 專案範本,使其指向根目錄下的 config.xml,因為預設情況下它不在 www/ 中。
  • 將範本中的 .gitignore 移至 gitignore(並在腳本中新增點)。
  • 修復建立腳本複製專案範本兩次的問題。
  • CB-5740 預設使用 UIScrollViewDecelerationRateNormal
  • CB-5420 將裝置型號新增至 User-Agent 快取鍵。
  • 在 copy-www-build-step.sh 中複製 config.xml,而不是在複製資源步驟中複製
  • CB-5397bin/create 新增一個 --cli 選項,該選項在專案中具有 ../../www/ ../../merges/
  • CB-5697 修復 location.reload() 不觸發 deviceready 的問題。
  • CB-4330 修復將 hash 變更視為頂層導覽的問題
  • CB-3359 在背景執行緒上剖析大型 JSON 酬載,並在執行多個命令花費過長時間時產生讓步。
  • CB-5134 修復基於 hash 的新 exec() 橋接中的錯誤。
  • CB-5134 新增基於 location.hashexec() 橋接。
  • CB-5658 修復 URL 路徑有空格時的白名單崩潰問題。
  • CB-5583 從 xib 實例化時,WebView 無法正確初始化
  • CB-5046:新增 defaults.xml 範本
  • CB-5290 範本:更新啟動映像大小以包含狀態列區域
  • CB-5276 新增從 bundle 資料夾以外的地方載入啟動頁面的功能
  • CB-5298bin/create 執行 bin/check_reqs
  • CB-5328 - cordova-ios 中的 .gitignore 排除了 platforms/cordova/build 檔案

Windows Phone 7 和 8 的新功能

  • CB-6041 createTemplates 應同時為 VS-2013 安裝主題
  • CB-5219 使用 history.replaceState 時,weinre 會中斷連線
  • CB-5951 將命名空間新增至 config.xml
  • 移除 wp7 範本對不存在檔案的參考

Windows Phone 7 現在已棄用! 請考慮將您的專案升級至 Windows Phone 8,因為我們將在 3.7.0 版本中完全停止支援。請在此處閱讀回顧:http://www.risingj.com/archives/585

Windows 8 的新功能

  • CB-5951 將命名空間新增至 config.xml
  • 透過名稱在建立後移除範本檔案
  • CB-4533 失敗時傳回錯誤碼 2,CB-5359 從登錄檔取得工具版本

BlackBerry 10 的新功能

  • CB-6021--release 新增至 run 命令
  • CB-5723 建置腳本應接受 -l 參數,就像它接受 --loglevel 一樣
  • CB-6019 為 run 腳本提供 --device 的預設值
  • CB-5660 使用 enabledelayedexpansion 來處理路徑中的 )s
  • CB-5909 修復了 check-reqs 在第二次傳遞時跳過檢查邏輯的問題 - 移除依賴項

FirefoxOS 的新功能

  • 沒有重大變更

Ubuntu (touch) 的新功能

  • 沒有重大變更

Amazon FireOS 的新功能

  • 從 Cordova Android 升級的變更

Cordova-CLI 的新功能

  • CB-5638 清理:從函式中移除無法訪問的 info 案例
  • CB-5937 新增 platform check 命令:顯示過期的平台
  • CB-5634 針對 Android 的方向偏好進行微幅重構 + 測試。
  • CB-5634config.xml 設定 Android 方向
  • 升級 amazon_fireos_parser。使其與 android_parser.js 齊平
  • CB-5947 嘗試在自訂 www 內建立專案時擲回錯誤。
  • CB-4153 更新 help.txt 中關於 --source -> --copy-from 的說明

此版本測試的外掛版本

  • cordova-plugin-battery-status: 0.2.7
  • cordova-plugin-camera: 0.2.7
  • cordova-plugin-console: 0.2.7
  • cordova-plugin-contacts: 0.2.8
  • cordova-plugin-device: 0.2.8
  • cordova-plugin-device-motion: 0.2.6
  • cordova-plugin-device-orientation: 0.3.5
  • cordova-plugin-dialogs: 0.2.6
  • cordova-plugin-file: 1.0.0
  • cordova-plugin-file-transfer: 0.4.1
  • cordova-plugin-geolocation: 0.3.6
  • cordova-plugin-globalization: 0.2.6
  • cordova-plugin-inappbrowser: 0.3.1
  • cordova-plugin-media: 0.2.8
  • cordova-plugin-media-capture: 0.2.7
  • cordova-plugin-network-information: 0.2.7
  • cordova-plugin-splashscreen: 0.2.7
  • cordova-plugin-vibration: 0.3.7