移动开发框架,Apache Cordova 3.3.0 发布

jopen 10年前

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