layout: post
author:
name: Steve Gill
url: https://twitter.com/stevesgill
title: "Apache Cordova 3.5.0"
categories: announcements
tags: news releases
We are happy to announce that Apache Cordova 3.5 has been released!
Most notable changes include:
- Common code between
cordova-cli & cordova-plugman has been moved into its own repo named cordova-lib.
- Each platform now has a
package.json file and has been uploaded to npm. Future updates to the cordova-cli will make use of npm instead of git for 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/run failure when no custom_rules.xml available
defaults.xml: Add AndroidLaunchMode preference
- Add
JavaDoc for CordovaResourceApi
- CB-6388 Handle binary data correctly in
LOAD_URL bridge
- CB-6048 Set
launchMode=singleTop so 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 update to android-19.
- Fix NPE when POLLING bridge mode is used.
- Updating NOTICE to include Square for
OkHttp
- CB-5398 Apply
KitKat content URI fix to all content URIs
- CB-5398 Work-around for
KitKat content: 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 & onReceivedError due to stopLoading()
- Removing
addJavascriptInterface support from all Android versions lower than 4.2 due to security vulnerability
- CB-4984 Don't create on
CordovaActivity name
- CB-5917 Add a
loadUrlIntoView overload that doesn't recreate plugins.
- Use thread pool for load timeout.
- CB-5715 For CLI, hide
assets/www and res/xml/config.xml by default
- CB-5793 ant builds: Rename
AndroidManifest during -post-build to avoid Eclipse detecting ant-build/
- CB-5889 Make update script find project name instead of using
null for CordovaLib
- CB-5889 Add a message in the update script about needing to import
CordovaLib when using an IDE.
What's new in iOS
- CB-6638 - Convert
CordovaLibTests to XCTests
- CB-6579 -
CDVWebViewDelegateTests are failing
- CB-6580 -
CDVWhitelistTests are failing
- CB-6578 - Fix
CordovaLibTests not building
- CB-6553 added top-level
package.json file
- CB-6491 add
CONTRIBUTING.md
- CB-6500 - Cordova requires
arm64 architecture.
- CB-6383 Fix
copy-www-build-step.sh when 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 -
AppDelegate uses deprecated handleOpenURL
- CB-6150 -
objc_msgSend causes EXC_BAD_ACCESS with plugins on arm64
- CB-5018 -
bin/create on iOS should use --arc by default
- CB-5943 - Update/remove obsolete items in
cordova-ios repo
- CB-5395 Make scheme and host (but not path) case-insensitive in whitelist
- CB-5991 Fix
whitelist path matching for trailing slashes
- CB-5967 Fix
isTopLevelNavigation not being set correctly in rare cases.
- Validate that callback IDs are always well-formed
- Removed obsolete
.gitmodules
- Update Xcode
.pbxproj files according to Xcode 5.1 recommendations
- Added
NSLog notification for beginning backup to iCloud (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.json file for WP8
- CB-6491 add
CONTRIBUTING.md
- CB-6450 added support for local
XHR.responseXML getter
- CB-6341 don't rely on
msbuild being in the path.
- applied Sergey's SpecificVersion flag fix to the WP7 template also CB-6103
- CB-6103 WP8
CordovaDeploy potential build issue
- applied CB-6268
backgroundcolor to WP7 also
- CB-6268 WP8. Apply
BackgroundColor from config.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
createTemplates should install them for VS-2013 as well
- CB-5219
weinre disconnects when history.replaceState is used
- CB-5951 Added
namespace to config.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.json to Windows8
- CB-6491 add
CONTRIBUTING.md
- CB-6309 Windows8. Add Splash Screen img support via
config.xml preference, CB-6544 SplashScreenBack
- Fix for when
background-color and/or content-srcaren't specified in config.xml
- Background color now applied to Windows8 project config during build process.
- Fix
build/deploy errors when path to project contains spaces
- CB-6435
./VERSION & /template/VERSION updated
- Modify execution policy restrictions removal logic. Using PS native cmdlet to remove restrictions.
- CB-6397 Windows8 Use the latest version of
MSBuild Tools installed 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-devices not supported on Windows 8
- CB-6091 Windows Build fails if application path contains whitespace
- CB-6083 Windows8 Use registry to read
msbuild tools path
- CB-6042 Windows8
Cordova emulate fails if no developer certificate is installed
- CB-5951 Added
namespace to config.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/lib dir
- CB-6440 Move
utils.js from bin to template
- CB-6440 Remove
+x from .bat files
- CB-6440 create - use
shelljs rather than custom copy function
- CB-6440 Move
create.js to lib
- CB-6440 Remove
check_reqs.js
- CB-6440 Move
signing-utils out of bin
- 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
npm warning from README.md
- CB-6376
backgroundColor in user.js is missing quotes
- CB-6346 - Add
node_modules to 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
--query with --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
--release to run command
- CB-5723 Build script should accept
-l param as it does --loglevel
- CB-6019 Supply default value of
--device to the run script
- CB-5660 use
enabledelayedexpansion to handle )s in path
- CB-5909 Fixed issue where
check-reqs skipped 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.json file
- 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 --nobuild
bin/build: specify framework instead of series for click chroot
bin/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's handleDestroy() method.
- CB-6491 add
CONTRIBUTING.md
- CB-6543 Fix
cordova/run failure when no custom_rules.xml available
- defaults.xml: Add
AndroidLaunchMode preference
- Add
JavaDoc for CordovaResourceApi
- Updated log statement -
android=>amazon-fireos.
- Added Amazon
xmlns to project's template AndroidManifest.xml.
- CB-6392 Adding amazon-fireos platform fails with not so good error reporting
- CB-6556 added top level
package.json file
- Adding a safety check to prevent applications from calling init twice Changes to address thread safety concerns in
Cordova plugin management
- CB-6388 Handle binary data correctly in
LOAD_URL bridge
- CB-6048 Set
launchMode=singleTop so tapping app icon does not always restart app
- Fixing back button issue by utilizing
onBackPressed instead of onKeyUp
- CB-5744 Unable to build Hello World application for Kindle Fire HDX tablet using Cordova 3.3.0
- Added overloaded constructor for
CordovaWebView with 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 update to android-19.
- Fix NPE when POLLING bridge mode is used.
- Updating NOTICE to include
Square for OkHttp
What's new in Cordova-CLI
- CB-5941 Update link to
hooks-README.md file from README.md
- Fix
cordova help command
- 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.json to use cordova-lib
- Split out
cordova-lib: move cordova-cli files
- Windows8 re-added
BOM : CB-5421 Add BOM to all html, js, css files to ensure app can pass Windows Store Certification
- CB-6491 add
CONTRIBUTING.md
android-parser: Add AndroidLaunchMode preference
- Fix
CLI tests to work with node v0.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 info command
- CB-5847
strictSSL is no longer ignored
- CB-6432
pre_package hook does not populate %CORDOVA_PLATFORMS%
- Revert "CB-6267 Windows8. Apply
BackgroundColor from config.xml"
- Recreate "platforms" dir if it was deleted.
- CB-5093 Add
versionCode and CFBundleVersion during prepare
- CB-6312 Use
landscape instead of userLandscape in AndroidManifest.xml
- CB-6421 Move tests from
e2e to spec - cli test
- CB-6377
superspawn: always wrap non .exe with spaces to cmd with /s /c
What's new in Cordova-Plugman
- Update
plugman cli to use cordova-lib
- Split out
cordova-lib: move cordova-plugman files
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