Apache Cordova 3.5.0
23 May 2014
We are happy to announce that Apache Cordova 3.5 has been released!
Most notable changes include:
- Common code between
cordova-cli&cordova-plugmanhas been moved into its own repo namedcordova-lib. - Each platform now has a
package.jsonfile and has been uploaded tonpm. Future updates to thecordova-cliwill make use ofnpminstead ofgitfor loading platforms. - CB-4863 - Drop iOS 5.0 support, and support
arm64. New projects are built as a universal binary (64 and 32-bit), and require a minimum deployment target of iOS 6.0. - This is the last release with support for WP7
- Added Chrome devtools support for debug builds for amazon-fireos
To upgrade: (replace android with the platform you want to update):
npm install -g cordova
cd my_project
cordova platform update android
For non-CLI projects or for pre-3.0 projects, refer to the upgrade guides.
Other changes include:
What's new in Android
- CB-6552 added top level
package.json - CB-6491 add
CONTRIBUTING.md - CB-6543 Fix
cordova/runfailure when nocustom_rules.xmlavailable defaults.xml: AddAndroidLaunchModepreference- Add
JavaDocforCordovaResourceApi - CB-6388 Handle binary data correctly in
LOAD_URLbridge - CB-6048 Set
launchMode=singleTopso tapping app icon does not always restart app - Remove incorrect usage of
AlertDialog.Builder.create - Catch uncaught exceptions in from plugins and turn them into error responses.
- CB-6047 Fix online sometimes getting in a bad state on page transitions.
- Add another convenience overload for
CordovaResourceApi.copyResource - Update framework's .classpath to what Eclipse wants it to be.
- README.md:
android updatetoandroid-19. - Fix NPE when POLLING bridge mode is used.
- Updating NOTICE to include Square for
OkHttp - CB-5398 Apply
KitKatcontent URI fix to all content URIs - CB-5398 Work-around for
KitKatcontent: URLs not rendering in<img>tags - CB-5908 add splashscreen images to template
- CB-5395 Make scheme and host (but not path) case-insensitive in whitelist
- Ignore multiple
onPageFinished()callbacks &onReceivedErrordue tostopLoading() - Removing
addJavascriptInterfacesupport from all Android versions lower than 4.2 due to security vulnerability - CB-4984 Don't create on
CordovaActivityname - CB-5917 Add a
loadUrlIntoViewoverload that doesn't recreate plugins. - Use thread pool for load timeout.
- CB-5715 For CLI, hide
assets/wwwandres/xml/config.xmlby default - CB-5793 ant builds: Rename
AndroidManifestduring -post-build to avoid Eclipse detectingant-build/ - CB-5889 Make update script find project name instead of using
nullforCordovaLib - CB-5889 Add a message in the update script about needing to import
CordovaLibwhen using an IDE.
What's new in iOS
- CB-6638 - Convert
CordovaLibTeststoXCTests - CB-6579 -
CDVWebViewDelegateTestsare failing - CB-6580 -
CDVWhitelistTestsare failing - CB-6578 - Fix
CordovaLibTestsnot building - CB-6553 added top-level
package.jsonfile - CB-6491 add
CONTRIBUTING.md - CB-6500 - Cordova requires
arm64architecture. - CB-6383 Fix
copy-www-build-step.shwhen user has macports installed - CB-6327 Allow '.' in plugin feature names (and therefore callback ids)
- CB-6287 - Add build script support for
arm64 - CB-6340 - Adding rebroadcast capabilities to remote notification registration within
AppDelegate(closes #94) - CB-6217 iOS simulator targets not consistent across scripts
- CB-5286 - Fix warnings when compiled under
arm64 - CB-4863 - Drop iOS 5.0 support, and support
arm64. New projects are built as a universal binary (64 and 32-bit), and require a minimum deployment target of iOS 6.0. - CB-6149 -
AppDelegateuses deprecatedhandleOpenURL - CB-6150 -
objc_msgSendcausesEXC_BAD_ACCESSwith plugins onarm64 - CB-5018 -
bin/createon iOS should use--arcby default - CB-5943 - Update/remove obsolete items in
cordova-iosrepo - CB-5395 Make scheme and host (but not path) case-insensitive in whitelist
- CB-5991 Fix
whitelistpath matching for trailing slashes - CB-5967 Fix
isTopLevelNavigationnot being set correctly in rare cases. - Validate that callback IDs are always well-formed
- Removed obsolete
.gitmodules - Update Xcode
.pbxprojfiles according to Xcode 5.1 recommendations - Added
NSLognotification for beginning backup toiCloud(closes #96)
What's new in Windows Phone 7 & 8
- Update release-notes, and state that WP7 support is about to disappear
- CB-6558 added
package.jsonfile for WP8 - CB-6491 add
CONTRIBUTING.md - CB-6450 added support for local
XHR.responseXML getter - CB-6341 don't rely on
msbuildbeing in the path. - applied Sergey's SpecificVersion flag fix to the WP7 template also CB-6103
- CB-6103 WP8
CordovaDeploypotential build issue - applied CB-6268
backgroundcolortoWP7also - CB-6268 WP8. Apply
BackgroundColorfromconfig.xml - CB-5965 support set responseType, get response
- CB-6299 Strip protocol and leading slashes from
XHRLOCAL URL - CB-6091 Windows Build fails if application path contains whitespace
- CB-6041
createTemplatesshould install them forVS-2013as well - CB-5219
weinredisconnects whenhistory.replaceStateis used - CB-5951 Added
namespacetoconfig.xml - Removed WP7 template ref to non-existent file
What's new in Windows 8
- CB-6684 [3.5.0rc]Windows8 Splash screen setting breaks the build
- CB-6686 [3.5.0rc]Windows8 Build error if path contains whitespace
- CB-6557 added
package.jsonto Windows8 - CB-6491 add
CONTRIBUTING.md - CB-6309 Windows8. Add Splash Screen img support via
config.xmlpreference, CB-6544SplashScreenBack - Fix for when
background-colorand/orcontent-srcaren't specified inconfig.xml - Background color now applied to Windows8 project config during build process.
- Fix
build/deployerrors when path to project contains spaces - CB-6435
./VERSION&/template/VERSIONupdated - Modify execution policy restrictions removal logic. Using PS native cmdlet to remove restrictions.
- CB-6397 Windows8 Use the latest version of
MSBuild Toolsinstalled to build the app - CB-6256 CB-6266 Add support for domain whitelist and start page settings to Windows8
- CB-2970 CB-2953 log unsupported methods and exit with code 1
- CB-2978
list-devicesnot supported on Windows 8 - CB-6091 Windows Build fails if application path contains whitespace
- CB-6083 Windows8 Use registry to read
msbuildtools path - CB-6042 Windows8
Cordova emulatefails if no developer certificate is installed - CB-5951 Added
namespacetoconfig.xml - Remove template file after create by name
- CB-4533 return error code 2 on fail, CB-5359 get tools version from the registry
What's new in BlackBerry 10
- CB-6554 updated
package.json - CB-6491 add
CONTRIBUTING.md - CB-6522 Disallow space in target name
- CB-6440 Move config logic to its own module
- CB-6398 Support additional commands in
blackberry10.json - CB-6440 Switch to grunt as task runner
- CB-6440
chmod -x *.bat - CB-6440 Remove
scripts/libdir - CB-6440 Move
utils.jsfrom bin to template - CB-6440 Remove
+xfrom.batfiles - CB-6440 create - use
shelljsrather than custom copy function - CB-6440 Move
create.jstolib - CB-6440 Remove
check_reqs.js - CB-6440 Move
signing-utilsout ofbin - CB-6416 Ensure target dictionary exists in properties object
- CB-6410 Allow deployment when debug token cannot be generated
- CB-6409 Allow detection of devices which have not yet set password
- CB-6346 Remove
npmwarning fromREADME.md - CB-6376
backgroundColorinuser.jsis missing quotes - CB-6346 - Add
node_modulesto source control - CB-6326 Fix inconsistency between manually added vs auto-detected emulators
- CB-6326 (cordova-blackberry)
target-utils.js - CB-6303 Remove titles from non-content web views
- CB-6303 Add
aria-hidden="true"to controller webview body - CB-6241 Default to prompting for passwords (replace
--querywith--no-query) - CB-6222 Various updates for the BlackBerry 10 documentation
- CB-6058 - Options file removed from output bar. Now in build directory
- CB-6021 Add
--releaseto run command - CB-5723 Build script should accept
-lparam as it does--loglevel - CB-6019 Supply default value of
--deviceto the run script - CB-5660 use
enabledelayedexpansionto handle )s in path - CB-5909 Fixed issue where
check-reqsskipped checking logic on second pass-through
What's new in Firefox OS
- CB-5816 Firefox OS - add build script
- Remove unused elements from
defaults.xml - CB-6555 updated top level
package.jsonfile - CB-6491 add
CONTRIBUTING.md - CB-5416 Need to auto generate manifest.webapp with appropriate plugin permissions
What's new in Ubuntu (touch)
- allow inter plugin communication
- add
.editorconfig - check requirements before build
bin/build: fixes for--nobuildbin/build: specify framework instead of series for clickchrootbin/build: switch to async shelljs.exec- CB-6559 added top level
package.json - CB-6491 add
CONTRIBUTING.md
What's new in Amazon FireOS
- CB-6644 Add a check for webview being null in template code. Added a check and some comments to guide devs.
- CB-6487 Fixed WebView not found in Chrome remote debugging
- CB-6636 Need to destroy webview properly. Added
destroy()call in webview'shandleDestroy()method. - CB-6491 add
CONTRIBUTING.md - CB-6543 Fix
cordova/runfailure when nocustom_rules.xmlavailable - defaults.xml: Add
AndroidLaunchModepreference - Add
JavaDocforCordovaResourceApi - Updated log statement -
android=>amazon-fireos. - Added Amazon
xmlnsto project's templateAndroidManifest.xml. - CB-6392 Adding amazon-fireos platform fails with not so good error reporting
- CB-6556 added top level
package.jsonfile - Adding a safety check to prevent applications from calling init twice Changes to address thread safety concerns in
Cordovaplugin management - CB-6388 Handle binary data correctly in
LOAD_URLbridge - CB-6048 Set
launchMode=singleTopso tapping app icon does not always restart app - Fixing back button issue by utilizing
onBackPressedinstead ofonKeyUp - CB-5744 Unable to build Hello World application for Kindle Fire HDX tablet using Cordova 3.3.0
- Added overloaded constructor for
CordovaWebViewwith Bundle as parameter. - Catch uncaught exceptions in from plugins and turn them into error responses.
- CB-6047 Fix online sometimes getting in a bad state on page transitions.
- Add another convenience overload for
CordovaResourceApi.copyResource - Update framework's .classpath to what Eclipse wants it to be.
- Updated Android target to
android-19. - README.md:
android updatetoandroid-19. - Fix NPE when POLLING bridge mode is used.
- Updating NOTICE to include
SquareforOkHttp
What's new in Cordova-CLI
- CB-5941 Update link to
hooks-README.mdfile fromREADME.md - Fix
cordova helpcommand - Fixing failing CLI tests by removing 'experimental' key
- CB-6649 Removing experimental flag from positional arguments
- CB-6648 Adding a flag for experimental features
- Fix require paths to use
cordova-lib - Update
package.jsonto usecordova-lib - Split out
cordova-lib: movecordova-clifiles - Windows8 re-added
BOM: CB-5421 AddBOMto all html, js, css files to ensure app can pass Windows Store Certification - CB-6491 add
CONTRIBUTING.md android-parser: AddAndroidLaunchModepreference- Fix
CLItests to work withnodev0.11 - Update version of jasmine-node. Fixes test warnings util.print with node 0.11
- CB-2606 Android icon - do not attempt copy to undefined path
- CB-2606 Icons support for iOS, Android, BB10, WP8, Win8, FxOS
- CB-6329 Delete unused
info-utils.js - CB-6329 improve
cordova infocommand - CB-5847
strictSSLis no longer ignored - CB-6432
pre_packagehook does not populate%CORDOVA_PLATFORMS% - Revert "CB-6267 Windows8. Apply
BackgroundColorfromconfig.xml" - Recreate "platforms" dir if it was deleted.
- CB-5093 Add
versionCodeandCFBundleVersionduring prepare - CB-6312 Use
landscapeinstead ofuserLandscapeinAndroidManifest.xml - CB-6421 Move tests from
e2etospec- cli test - CB-6377
superspawn: always wrap non.exewith spaces tocmdwith /s /c
What's new in Cordova-Plugman
- Update
plugman clito usecordova-lib - Split out
cordova-lib: movecordova-plugmanfiles
Plugin versions tested with this release
- cordova-plugin-battery-status: 0.2.8
- cordova-plugin-camera: 0.2.9
- cordova-plugin-console: 0.2.8
- cordova-plugin-contacts: 0.2.10
- cordova-plugin-device: 0.2.9
- cordova-plugin-device-motion: 0.2.7
- cordova-plugin-device-orientation: 0.3.6
- cordova-plugin-dialogs: 0.2.6
- cordova-plugin-file: 1.1.0
- cordova-plugin-file-transfer: 0.4.3
- cordova-plugin-geolocation: 0.3.7
- cordova-plugin-globalization: 0.2.7
- cordova-plugin-inappbrowser: 0.4.0
- cordova-plugin-media: 0.2.10
- cordova-plugin-media-capture: 0.3.0
- cordova-plugin-network-information: 0.2.8
- cordova-plugin-splashscreen: 0.3.0
- cordova-plugin-statusbar: 0.1.3
- cordova-plugin-vibration: 0.3.8
