移動開發框架,Apache Cordova 3.3.0 發布

jopen 10年前發布 | 13K 次閱讀 Apache Cordova

Apache Cordova是一套設備API,允許移動應用的開發者使用JavaScript來訪問本地設備的功能,比如攝像頭、加速計。它可以與UI框架(如 jQuery Mobile或Dojo Mobile或Sencha Touch)等相結合使用,這些UI框架可以使用HTML、CSS和JavaScript開發智能手機應用。

Apache Cordova是PhoneGap貢獻給Apache后的開源項目,是從PhoneGap中抽出的核心代碼,是驅動PhoneGap的核心引擎。你可以幫他想象成類似于Webkit和Google Chrome的關系。

這次發布帶來了 Ubuntu TouchAmazon Fire OS 的初始化支持。

升級:(將 android 替換成你要更新的平臺):

npm install -g cordova
cd my_project
cordova platform update android

對 non-CLI 項目或 pre-3.0 項目,升級請參考 upgrade guides.

這次Android平臺中的變化

41提交來自11個作者。亮點包括:

  • CB-5481 Fix for Cordova trying to get config.xml from the wrong namespace
  • CB-5487 Enable Remote Debugging when your Android app is debuggable.
  • CB-5445 Adding onScrollChanged and the ScrollEvent object
  • CB-5422 Don’t require JAVA_HOME to be defined
  • CB-5490 Add javadoc target to ant script
  • CB-5471 Deprecated DroidGap class
  • CB-5255 Prefer Google API targets over android-## targets when building.
  • CB-5232 Change create script to use Cordova as a Library Project instead of a .jar
  • CB-5302 Massive movement to get tests working again
  • CB-4996 Fix paths with spaces while launching on emulator and device
  • CB-5209 Cannot build Android app if project path contains spaces

iOS平臺的新變化

  • 無顯著變化

 Windows Phone 7 & 8 平臺中的新變化

  • CB-5360 Removed Compiler warnings
  • CB-4538 Copy check_reqs scripts in create script
  • CB-4103 Make config parameter checks case-insensitive WP7+WP8
  • CB-2347 Add support for config.xml preference: ‘fullscreen’
  • CB-5203 Using XmlHTTPRequest.open on WP8 raises a TypeError
  • CB-5435 Handle missing preferences gracefully ( config.xml )
  • CB-5354 Networking becomes a required permission so that XHR can work
  • disable Idle detection when debugging for wp7+wp8

Windows Phone 7 現在已經過時!請考慮升級您的項目至Windows Phone 8 。我們將完全放棄支持在3.7.0版本: http://www.risingj.com/archives/585

Windows 8平臺新的變化

  • CB-5040 cordova run windows8 has no effect

BlackBerry 10平臺新的變化

  • CB-5434 Windows: Always use USERPROFILE for home directory
  • CB-5443 Windows: Handle installed 64 bit Java
  • CB-5468 Improve config.xml encoding handling
  • CB-5509 Remove ability to set default target (since device detection is now used)
  • CB-5510 Update response codes for plugin success/fail
  • CB-5413 Device detection - iterate through all 169.254.x networks
  • CB-5317 Move signing warn logic to build/run scripts
  • CB-5258 Use exit library for process.exit

FirefoxOS平臺新變化

  • No significant Changes

Cordova-CLI中的新變化

  • CB-5347 Handle dangling platform symlink in cordova platform add
  • Added deprecation notice about wp7
  • Updated plugman version to 0.17.0
    • CB-5238 Adds support on iOS for <framework src="..." custom="true" />
  • CB-5573 relies on stderr content and error codes to detect a problem with xcode installation.
  • CB-4382 Pass cli arguments to project-level hooks
  • CB-5362 blackberry parser: support local cordova-blackberry
  • CB-5345 Add pre_package event for windows8 parser.

在此版本測試的插件版本

  • cordova-plugin-battery-status: 0.2.5
  • cordova-plugin-camera: 0.2.5
  • cordova-plugin-console: 0.2.5
  • cordova-plugin-contacts: 0.2.6
  • cordova-plugin-device: 0.2.5
  • cordova-plugin-device-motion: 0.2.4
  • cordova-plugin-device-orientation: 0.3.3
  • cordova-plugin-dialogs: 0.2.4
  • cordova-plugin-file: 0.2.5
  • cordova-plugin-file-transfer: 0.4.0
  • cordova-plugin-geolocation: 0.3.4
  • cordova-plugin-globalization: 0.2.4
  • cordova-plugin-inappbrowser: 0.2.5
  • cordova-plugin-media: 0.2.6
  • cordova-plugin-media-capture: 0.2.5
  • cordova-plugin-network-information: 0.2.5
  • cordova-plugin-splashscreen: 0.2.5
  • cordova-plugin-vibration: 0.3.5
 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!