Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 39F3E18C9A for ; Thu, 23 Jul 2015 22:20:10 +0000 (UTC) Received: (qmail 35881 invoked by uid 500); 23 Jul 2015 22:20:07 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 35826 invoked by uid 500); 23 Jul 2015 22:20:07 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 34766 invoked by uid 99); 23 Jul 2015 22:20:06 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2015 22:20:06 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AA081E6842; Thu, 23 Jul 2015 22:20:06 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dblotsky@apache.org To: commits@cordova.apache.org Date: Thu, 23 Jul 2015 22:20:56 -0000 Message-Id: <138f0550715640888b2023fcdbd377b3@git.apache.org> In-Reply-To: <77e03c3543824ad08ea8ea0872583c4d@git.apache.org> References: <77e03c3543824ad08ea8ea0872583c4d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [52/75] docs commit: Added posts. http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/51da3852/www/_posts/2015-04-21-plugins-release-and-move-to-npm.md ---------------------------------------------------------------------- diff --git a/www/_posts/2015-04-21-plugins-release-and-move-to-npm.md b/www/_posts/2015-04-21-plugins-release-and-move-to-npm.md new file mode 100644 index 0000000..7b8f0bd --- /dev/null +++ b/www/_posts/2015-04-21-plugins-release-and-move-to-npm.md @@ -0,0 +1,395 @@ +--- +layout: post +author: + name: Steve Gill + url: https://twitter.com/stevesgill +title: "Plugins Release and Moving plugins to npm: April 21, 2015" +categories: announcements +tags: plugins announcement release +--- + +The **Apache Cordova** team is happy to announce a new plugins release that coincides with us moving our core plugins to **[npm]**! + +* We are also encouraging third party plugin developers to start publishing their plugins to npm! +* To start using plugins from **npm**, developers will have to update their **Cordova CLI** to version **5.0.0** or higher. Read about **Cordova CLI 5.0.0** in its [release blog post](http://cordova.apache.org/news/2015/04/21/tools-release.html). + +With the move over to **npm**, we have decided to rename our core plugins for improved readability and to better fit within the **npm** ecosystem. + +* All of our core plugins have changed their IDs from `org.apache.cordova.*` to `cordova-plugin-*`. +* Developers can now install a plugin with the command `cordova plugin add cordova-plugin-device`. +Using the new ID will fetch the plugin directly from **npm**. + +Our current **Cordova plugins registry** ([CPR]) will continue to be operational for at least 6 months (`October 15th, 2015`) as we help plugin developers transition over to **npm**. +This will also allow current **Cordova** developers to upgrade their `CLI` to version **5.0.0** or higher. + +* We will be switching [CPR] to read-only on `July 15th, 2015`. + +To find plugins on **npm**, search for [ecosystem:cordova]. +We are working with **npm** to improve discoverability and will have more to announce later this year. +We encourage all third party plugin developers to add `ecosystem:cordova` as a keyword in their plugin's `package.json`. + +## Plugin Authors: Steps to move your plugin to **npm** +1. **Optional** Decide if you want to change your plugin's `id`. If you decide to change it, + 1. Update the `id` in `plugin.xml` and update your readme with the new `id`. + 1. Send a pull request adding your new id and old id to [Cordova Registry Mapper](https://github.com/stevengill/cordova-registry-mapper). + 1. We integrate that module into the **Cordova CLI** to warn users to use the new `id` when adding plugins to their projects. + +1. Add a `package.json` to your plugins, + * **Note**: To keep things simple, please make sure your `id` in `plugin.xml` is the same as your `package-name` in `package.json`. + * Use `plugman createpackagejson [PLUGIN DIRECTORY]` to create `package.json`. + * This will create defaults based on existing values in your `plugin.xml`. + * It will also automatically add the keyword `ecosystem:cordova` to your newly generated `package.json` file. + * In addition, a **cordova** key will be added to your `package.json` which we plan to use in future updates of the tooling. + * View the `package.json` of [cordova-plugin-device](https://github.com/apache/cordova-plugin-device/blob/master/package.json) to see an example of what your `package.json` should look like after running `plugman createpackagejson [PLUGIN DIRECTORY]` command. + * Plugins still require a `plugin.xml` to be installed into **Cordova** projects. + +1. Publish your plugin to **npm** using the `npm publish [PLUGIN DIRECTORY]`. + +## New Whitelist Plugins + +We recently released [cordova-plugin-whitelist](https://www.npmjs.com/package/cordova-plugin-whitelist) and [cordova-plugin-legacy-whitelist](https://www.npmjs.com/package/cordova-plugin-legacy-whitelist). We have revamped how whitelisting works starting with `cordova-android@4.0.0`. With this change, setting a **Content-Security-Policy** (CSP) is now supported. Network requests are blocked by default without `cordova-plugin-whitelist`, so install this plugin even to allow all requests, and even if you are using CSP. + +`cordova-plugin-legacy-whitelist` allows `cordova-android@4.0.0` projects to continue using the old whitelisting method. We recommend using `cordova-plugin-whitelist` over `cordova-plugin-legacy-whitelist`. + +Other platforms will include support for `cordova-plugin-whitelist` in future releases. To learn more about whitelisting, please read the `cordova-android@4.0.0` [release blog post](http://cordova.apache.org/announcements/2015/04/15/cordova-android-4.0.0.html). + +---- +The following plugins were updated today: + +* cordova-plugin-battery-status@1.0.0 +* cordova-plugin-camera@1.0.0 +* cordova-plugin-console@1.0.0 +* cordova-plugin-contacts@1.0.0 +* cordova-plugin-device@1.0.0 +* cordova-plugin-device-motion@1.0.0 +* cordova-plugin-device-orientation@1.0.0 +* cordova-plugin-dialogs@1.0.0 +* cordova-plugin-file@2.0.0 +* cordova-plugin-file-transfer@1.0.0 +* cordova-plugin-geolocation@1.0.0 +* cordova-plugin-globalization@1.0.0 +* cordova-plugin-inappbrowser@1.0.0 +* cordova-plugin-legacy-whitelist@1.0.1 +* cordova-plugin-media@1.0.0 +* cordova-plugin-media-capture@1.0.0 +* cordova-plugin-network-information@1.0.0 +* cordova-plugin-splashscreen@2.0.0 +* cordova-plugin-statusbar@1.0.0 +* cordova-plugin-test-framework@1.0.0 +* cordova-plugin-vibration@1.0.0 + +---- +To update your existing plugins, you need to update your version of `Cordova CLI` to version 5.0.0. + + E.g. To update your cli: + + `npm install -g cordova@5.0.0` + +Then remove your old plugin and re-add it using the new ID. + + E.g. To update your camera plugin: + + `cordova plugin rm org.apache.cordova.camera` + `cordova plugin add cordova-plugin-camera` + +Plugin changes include: + + +cordova-plugin-battery-status@1.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* Add `travis.yml` for CI with **paramedic** +* Added apache/travis badge - will not show until INFRA updates the github integration +* [CB-8808](https://issues.apache.org/jira/browse/CB-8808) Fixed tests to pass on **Windows Phone 8.1** +* [CB-8831](https://issues.apache.org/jira/browse/CB-8831) **Windows** Adds extra check for available `API` +* Add **Android**+**FireOS** warning to tell devs that prolonged use will drain the battery +* [CB-7971](https://issues.apache.org/jira/browse/CB-7971) Add `cordova-plugin-battery-status` support for **Windows Phone 8.1** +* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) **iOS 4.0.x** Compatibility: Remove use of `initWithWebView` method + +cordova-plugin-camera@1.0.0 + +* [CB-8653](https://issues.apache.org/jira/browse/CB-8653) Updated Readme +* [CB-8780](https://issues.apache.org/jira/browse/CB-8780) Display popover using main thread. Fixes popover slowness +* [CB-8746](https://issues.apache.org/jira/browse/CB-8746) Bumped version of file dependency +* [CB-8706](https://issues.apache.org/jira/browse/CB-8706) Use `filePicker` if `saveToPhotoAlbum` is true +* [CB-8706](https://issues.apache.org/jira/browse/CB-8706) Remove unnecessary capabilities from `xml` +* [CB-8747](https://issues.apache.org/jira/browse/CB-8747) Updated dependency, added peer dependency +* [CB-8782](https://issues.apache.org/jira/browse/CB-8782) Updated the docs to talk about the `allowEdit` quirks, it's not 100% working, but better than it was +* [CB-8782](https://issues.apache.org/jira/browse/CB-8782) Fixed the flow so that we save the cropped image and use it, not the original non-cropped. Crop only supports G+ Photos Crop, other crops may not work, depending on the OEM +* [CB-8740](https://issues.apache.org/jira/browse/CB-8740) Removing `FileHelper` call that was failing on Samsung Galaxy S3, now that we have a real path, we only need to update the `MediaStore`, not pull from it in this case +* [CB-8740](https://issues.apache.org/jira/browse/CB-8740) Partial fix for Save Image to Gallery error found in `MobileSpec` +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* [CB-8351](https://issues.apache.org/jira/browse/CB-8351) Fix custom implementation of `integerValueForKey` +* Fix `cordova-paramedic` path change, build with `TRAVIS_BUILD_DIR`, use **npm** to install **paramedic** +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) **BlackBerry** updated references of `org.apache.cordova.camera` to `cordova-plugin-camera` +* [CB-8707](https://issues.apache.org/jira/browse/CB-8707) **Windows** refactoring code to improve readability +* Docs: added **Windows** to supported platforms +* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) **iOS 4.0.x** Compatibility: Remove use of deprecated headers + +cordova-plugin-console@1.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* [CB-8560](https://issues.apache.org/jira/browse/CB-8560) Integrate **TravisCI** +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* Docs: renamed **Windows8** to **Windows** +* [CB-8362](https://issues.apache.org/jira/browse/CB-8362) Add **Windows** platform section to Console plugin + +cordova-plugin-contacts@1.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* [CB-8561](https://issues.apache.org/jira/browse/CB-8561) Integrate **TravisCI** +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) **iOS 4.0.x** Compatibility: Remove use of `initWebView` method +* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) **iOS 4.0.x** Compatibility: Remove use of deprecated headers +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Updated **wp** specific references of old id to new id +* [CB-8604](https://issues.apache.org/jira/browse/CB-8604) Pended unsupported test for **wp8**, updated documentation +* [CB-8395](https://issues.apache.org/jira/browse/CB-8395) Marked unsupported tests pending on **wp8** + +cordova-plugin-device@1.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* Add travis badge +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* Add cross-plugin **iOS** **paramedic** test running for **TravisCI** +* Remove defunct **windows8** version + +cordova-plugin-device-motion@1.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +specific references of old id to new id +* [CB-8562](https://issues.apache.org/jira/browse/CB-8562) Integrate **TravisCI** +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Updated **Windows** and **Tizen** * [CB-8096](https://issues.apache.org/jira/browse/CB-8096) Pended recently added spec.12 if accelerometer doesn't exist on the device +* [CB-8096](https://issues.apache.org/jira/browse/CB-8096) Pended auto tests if accelerometer doesn't exist on the device +* [CB-8083](https://issues.apache.org/jira/browse/CB-8083) Adds test to make sure success callback is called each time +* [CB-8312](https://issues.apache.org/jira/browse/CB-8312) Multiply accelerometer values by -g on **Windows** + +cordova-plugin-device-orientation@1.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* [CB-8563](https://issues.apache.org/jira/browse/CB-8563) Integrate **TravisCI** +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* [CB-8653](https://issues.apache.org/jira/browse/CB-8653) Updated Readme +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Updated **Windows** and **Tizen** specific references of old id to new id +* [CB-8458](https://issues.apache.org/jira/browse/CB-8458) Fixes false failure of test, when compass hardware is not available +* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) **iOS 4.0.x** Compatibility: Remove use of `initWebView` method +* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) **iOS 4.0.x** Compatibility: Remove use of deprecated headers +* Force async callbacks +* Updated plugin to be **Windows** instead of **Windows8** +* [CB-8614](https://issues.apache.org/jira/browse/CB-8614) **Windows** Fixed `getCurrentHeading` and `watchHeading` + +cordova-plugin-dialogs@1.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* [CB-8565](https://issues.apache.org/jira/browse/CB-8565) Integrate **TravisCI** +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Updated wp and bb specific references of old id to new id +* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) **iOS 4.0.x** Compatibility: Remove use of deprecated headers +* [CB-8367](https://issues.apache.org/jira/browse/CB-8367) **Windows** Add Prompt support + +cordova-plugin-file@2.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* [CB-8567](https://issues.apache.org/jira/browse/CB-8567) Integrate **TravisCI** +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* [CB-8689](https://issues.apache.org/jira/browse/CB-8689) Fix `NPE` in `makeEntryForNativeUri` (was affecting file-transfer) +* Add a cache to speed up `AssetFilesystem` directory listings +* Don't log stacktrace for normal exceptions (e.g. file not found) +* Tweak tests to fail if `deleteEntry` fails (rather than time out) +* [CB-8032](https://issues.apache.org/jira/browse/CB-8032) Add `nativeURL` external method support for `CDVFileSystem->makeEntryForPath:isDirectory:` +* [CB-8423](https://issues.apache.org/jira/browse/CB-8423) Corrected usage of `done()` in async tests +* [CB-8459](https://issues.apache.org/jira/browse/CB-8459) Fixes spec 111 failure due to incorrect relative paths handling +* Added `nativeURL` property to `FileEntry`, implemented `readAsArrayBuffer` and `readAsBinaryString` +* [CB-8675](https://issues.apache.org/jira/browse/CB-8675) Revert "CB-8351 **iOS**: Use `base64EncodedStringWithOptions` instead of `CordovaLib's` class extension" +* [CB-6428](https://issues.apache.org/jira/browse/CB-6428) Fix uncompressed assets being copied as zero length files +* [CB-8695](https://issues.apache.org/jira/browse/CB-8695) **iOS** Fix `blob.slice()` for `asset-library` URLs +* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) **iOS 4.0.x** Compatibility: Remove use of `initWebView` method +* **Android** Tweak `build-extras.gradle` to just read/write to main `assets/` instead of `build/` +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) **Android** Fix broken unit tests from plugin rename +* [CB-6428](https://issues.apache.org/jira/browse/CB-6428) **Android** Fix assets `FileEntry` having size of -1 +* **Android** Move `URLforFullPath` into base class (and rename to `localUrlforFullPath`) +* [CB-6428](https://issues.apache.org/jira/browse/CB-6428) **Android** Mention `build-extras.gradle` in README +* [CB-7109](https://issues.apache.org/jira/browse/CB-7109) **Android** Parse arguments off of the main thread +* [CB-8663](https://issues.apache.org/jira/browse/CB-8663) **Android** Don't notify `MediaScanner` of private files +* **Android** Don't use LimitedInputStream when reading entire file (optimization) +* [CB-6428](https://issues.apache.org/jira/browse/CB-6428) **Android** Add support for directory copies from assets -> filesystem +* **Android** Add `listChildren()`: Java-consumable version of `readEntriesAtLocalURL()` +* [CB-6428](https://issues.apache.org/jira/browse/CB-6428) **Android** Add support for `file:///android_asset` URLs +* [CB-8642](https://issues.apache.org/jira/browse/CB-8642) **Android** Fix content URIs not working with resolve / copy +* **Android** Ensure `LocalFilesystemURL` can only be created with `cdvfile` URLs +* **Android** Move `CordovaResourceApi` into Filesystem base class +* **Android** Use `CordovaResourceApi.mapUriToFile()` rather than own custom logic in `ContentFilesystem` +* **Android** Use Uri.parse rather than manual parsing in resolveLocalFileSystemURI +* **Android** Delete invalid `JavaDoc` (lint errors) +* **Android** Use `CordovaResourceAp`i rather than `FileHelper` +* [CB-7956](https://issues.apache.org/jira/browse/CB-7956) **Browser** Add support +* [CB-8849](https://issues.apache.org/jira/browse/CB-8849) **WP8** Fixed `ReadAsArrayBuffer` to return `ArrayBuffer` and not Array +* [CB-8819](https://issues.apache.org/jira/browse/CB-8819) **wp8** Fixed FileReader's `readAsBinaryString` +* Docs: added **Windows** to supported platforms + +cordova-plugin-file-transfer@1.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* [CB-8566](https://issues.apache.org/jira/browse/CB-8566) Integrate **TravisCI** +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* [CB-8746](https://issues.apache.org/jira/browse/CB-8746) Bumped version of file dependency +* [CB-8583](https://issues.apache.org/jira/browse/CB-8583) Forces download to overwrite existing target file +* [CB-8589](https://issues.apache.org/jira/browse/CB-8589) Fixes upload failure when server's response doesn't contain any data +* [CB-8747](https://issues.apache.org/jira/browse/CB-8747) Updated dependency, added peer dependency +* [CB-8407](https://issues.apache.org/jira/browse/CB-8407) Use File proxy to construct valid FileEntry for download success callback +* [CB-8407](https://issues.apache.org/jira/browse/CB-8407) Removes excess path to native path conversion in download method +* [CB-8429](https://issues.apache.org/jira/browse/CB-8429) Updated version and `RELEASENOTES.md` for release 0.5.0 +* [CB-8095](https://issues.apache.org/jira/browse/CB-8095) Fixes JSHint and formatting issues +* [CB-8095](https://issues.apache.org/jira/browse/CB-8095) Updates tests and documentation +* [CB-8095](https://issues.apache.org/jira/browse/CB-8095) Rewrite upload method to support progress events properly +* **Android** Fix error reporting for unknown `uri` type on `sourceUri` instead of `targetUri` +* [CB-7957](https://issues.apache.org/jira/browse/CB-7957) **Browser** Add support +* [CB-8641](https://issues.apache.org/jira/browse/CB-8641) Fixed tests to pass on **Windows** and **wp8** +* [CB-8654](https://issues.apache.org/jira/browse/CB-8654) Note **WP8** download requests caching in docs +* [CB-8590](https://issues.apache.org/jira/browse/CB-8590) **Windows** Fixed `download.onprogress.lengthComputable` +* [CB-8495](https://issues.apache.org/jira/browse/CB-8495) Fixed **wp8** and **wp8.1** test failures + +cordova-plugin-geolocation@1.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* [CB-8568](https://issues.apache.org/jira/browse/CB-8568) Integrate **TravisCI** +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* [CB-8681](https://issues.apache.org/jira/browse/CB-8681) Fixed occasional test failures +* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) **iOS 4.0.x** Compatibility: Remove use of `initWebView` method +* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) **iOS 4.0.x** Compatibility: Remove use of deprecated headers +* Wrong parameter in **Firefox OS** plugin +* [CB-8443](https://issues.apache.org/jira/browse/CB-8443) Geolocation tests fail on **Windows** due to done is called multiple times +* Docs: added **Windows** to supported platforms + +cordova-plugin-globalization@1.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* [CB-8569](https://issues.apache.org/jira/browse/CB-8569) Integrate **TravisCI** +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Updated **tizen** and **Browser** specific references of old id to new id +* [CB-7960](https://issues.apache.org/jira/browse/CB-7960) **Browser** Add support +* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) **iOS 4.0.x** Compatibility: Remove use of `initWebView` method +* [CB-8394](https://issues.apache.org/jira/browse/CB-8394) Pended unsupported tests for **Windows** and **wp8** +* Separate section in `plugin.xml` and docs for **Windows8** platform + +cordova-plugin-inappbrowser@1.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* [CB-8570](https://issues.apache.org/jira/browse/CB-8570) Integrate **TravisCI** +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* [CB-4930](https://issues.apache.org/jira/browse/CB-4930) (prefix) InAppBrowser should take into account the status bar +* Added option to disable/enable zoom controls +* Updated docs, set `hardwareback` default to true +* Add a `hardwareback` option to allow for the hardware back button to go back +* [CB-8444](https://issues.apache.org/jira/browse/CB-8444) Add a clobber for `cordova.InAppBrowser.open` +* [CB-8444](https://issues.apache.org/jira/browse/CB-8444) Don't clobber `window.open` - Add new symbol/clobber to access open function (`cordova.InAppBrowser.open`) Change existing tests to use new symbol (i.e. don't rely on plugin clobber of `window.open`) - Add tests to use `window.open` via manual replace with new symbol - Update docs to deprecate plugin clobber of `window.open` +* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) Update `InAppBrowser` to support both **cordova-ios** 4.0.x and 3.x +* Update docs for **Android** `zoom=no` option +* Keep external **Android** pages in a single tab +* [CB-7961](https://issues.apache.org/jira/browse/CB-7961) **Browser** Add support +* [CB-8432](https://issues.apache.org/jira/browse/CB-8432) Correct styles for **Browser** wrapper to display it correctly on some pages +* [CB-7689](https://issues.apache.org/jira/browse/CB-7689) Adds `insertCSS` support for **Windows** platform +* [CB-8635](https://issues.apache.org/jira/browse/CB-8635) Improves UX on **Windows** platform +* [CB-8661](https://issues.apache.org/jira/browse/CB-8661) Return executed script result on **Windows** +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Updated **WP** and **Browser** specific references of old id to new id + +cordova-plugin-media@1.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* [CB-8572](https://issues.apache.org/jira/browse/CB-8572) Integrate **TravisCI** +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* [CB-8746](https://issues.apache.org/jira/browse/CB-8746) Bumped version of file dependency +* [CB-8747](https://issues.apache.org/jira/browse/CB-8747) Updated dependency, added peer dependency +* [CB-8686](https://issues.apache.org/jira/browse/CB-8686) Remove `musicLibrary` capability +* [CB-8428](https://issues.apache.org/jira/browse/CB-8428) Fix multiple `done()` calls in media plugin test on devices where audio is not configured +* [CB-8425](https://issues.apache.org/jira/browse/CB-8425) Media plugin `.ctr`: make src param required as per spec +* [CB-7962](https://issues.apache.org/jira/browse/CB-7962) Adds **Browser** platform support +* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) **iOS 4.0.x** Compatibility: Remove use of deprecated headers +* [CB-8793](https://issues.apache.org/jira/browse/CB-8793) Fixed tests to pass on **wp8** and **Windows** +* [CB-8779](https://issues.apache.org/jira/browse/CB-8779) Fixed media status reporting on **wp8** +* [CB-8541](https://issues.apache.org/jira/browse/CB-8541) Adds information about available recording formats on **Windows** +* [CB-8428](https://issues.apache.org/jira/browse/CB-8428) Fix tests on **Windows** if no audio playback hardware is available +* [CB-8426](https://issues.apache.org/jira/browse/CB-8426) Add **Windows** platform section to Media plugin + +cordova-plugin-media-capture@1.0.0 + +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* [CB-8746](https://issues.apache.org/jira/browse/CB-8746) Bumped version of file dependency +* [CB-8747](https://issues.apache.org/jira/browse/CB-8747) Updated dependency, added peer dependency +* [CB-8687](https://issues.apache.org/jira/browse/CB-8687) Consolidate manifest targets +* [CB-7963](https://issues.apache.org/jira/browse/CB-7963) **Browser** Add support +* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) **iOS 4.0.x** Compatibility: Remove use of `initWebView` method +* [CB-8571](https://issues.apache.org/jira/browse/CB-8571) Integrate **TravisCI** +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file + +cordova-plugin-network-information@1.0.0 + +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* [CB-8185](https://issues.apache.org/jira/browse/CB-8185) Fixes typo in `cordova.platformId` +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* [CB-8185](https://issues.apache.org/jira/browse/CB-8185) Use `navigator.onLine` as connection information source on **Browser** platform +* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) **iOS 4.0.x** Compatibility: Remove use of `initWebView` method +* [CB-8573](https://issues.apache.org/jira/browse/CB-8573) Integrate **TravisCI** +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file + +cordova-plugin-splashscreen@2.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* [CB-8574](https://issues.apache.org/jira/browse/CB-8574) Integrate **TravisCI** +* [CB-8345](https://issues.apache.org/jira/browse/CB-8345) Make default for splashscreen resource `screen` (which is what template and **CLI** assume it to be) +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* [CB-8836](https://issues.apache.org/jira/browse/CB-8836) Crashes after animating `splashscreen` +* [CB-8797](https://issues.apache.org/jira/browse/CB-8797) **iOS** add Splashscreen preferences `FadeSplashScreenDuration` and `FadeSplashScreen` +* [CB-8753](https://issues.apache.org/jira/browse/CB-8753) **Android** Fix missing import in previous commit +* [CB-8753](https://issues.apache.org/jira/browse/CB-8753) **Android** Adds `SplashMaintainAspectRatio` preference +* Docs: added **Windows** to supported platforms +* [CB-7964](https://issues.apache.org/jira/browse/CB-7964) **browser** Add support +* **WP8** respect `SplashScreen` and `SplashScreenDelay` preferences from config file +* [CB-8397](https://issues.apache.org/jira/browse/CB-8397) **Windows** support showing the **Windows Phone** splashscreen + +cordova-plugin-statusbar@1.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* [CB-8575](https://issues.apache.org/jira/browse/CB-8575) Integrate **TravisCI** +* Use `TRAVIS_BUILD_DIR`, install **paramedic** by **npm** +* Use `StatusBarBackgroundColor` instead of `AndroidStatusBarBackgroundColor`, and added a quirk to the readme +* **Android 5+** Add support for `StatusBar.backgroundColorByHexString` (and `StatusBar.backgroundColorByName`) +* **Android** Allow setting the `statusbar backgroundcolor` + +cordova-plugin-test-framework@1.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* [CB-8528](https://issues.apache.org/jira/browse/CB-8528) Add a shim for `jasmine.Expectation.addMatchers` being moved in **jasmine 2.2.0** +* [CB-8528](https://issues.apache.org/jira/browse/CB-8528) Update test framework plugin to use **Jasmine 2.2.0** +* [CB-8385](https://issues.apache.org/jira/browse/CB-8385) Ensure `plugin-test-framework` trigger tests only once + +cordova-plugin-vibration@1.0.0 + +* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added `package.json` file +* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) Changed `plugin-id` to `package-name` +* [CB-8576](https://issues.apache.org/jira/browse/CB-8576) Integrate **TravisCI** +* [CB-7970](https://issues.apache.org/jira/browse/CB-7970) Reference proxy project instead of compiled `winmd` +* [CB-7970](https://issues.apache.org/jira/browse/CB-7970) Add `cordova-plugin-vibration` support for **Windows Phone 8.1** + +[npm]: https://www.npmjs.org/ +[CPR]: http://plugins.cordova.io +[ecosystem:cordova]: https://www.npmjs.com/search?q=ecosystem%3Acordova +[cordova-plugin-device]: https://github.com/apache/cordova-plugin-device/blob/master/package.json http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/51da3852/www/_posts/2015-04-21-tools-release.md ---------------------------------------------------------------------- diff --git a/www/_posts/2015-04-21-tools-release.md b/www/_posts/2015-04-21-tools-release.md new file mode 100644 index 0000000..fd1ca0e --- /dev/null +++ b/www/_posts/2015-04-21-tools-release.md @@ -0,0 +1,138 @@ +--- +layout: post +author: + name: Steve Gill + url: https://twitter.com/stevesgill +title: "Tools Release: April 21, 2015" +categories: news +tags: release tools +--- +New versions of cordova tools are now live! + +* [cordova-lib@5.0.0](https://www.npmjs.org/package/cordova-lib) +* [cordova@5.0.0](https://www.npmjs.org/package/cordova) +* [plugman@0.23.1](https://www.npmjs.org/package/plugman) +* [cordova-js@3.9.0](https://www.npmjs.org/package/cordova-js) + +Release highlights: + +* Plugins have been renamed and the **Cordova-CLI** now supports fetching plugins from **npm**. We highly recommend reading about it in the [plugins release blog post](http://cordova.apache.org/announcements/2015/04/21/plugins-release-and-move-to-npm.html). +* `` tags have been renamed to `` tags in your projects `config.xml`. Adding a `` tag to your `config.xml` will fetch and install it on `cordova prepare` if it isn't already installed. +* **Cordova Android@4.0.0** has been released and pinned as the default version for new projects. This includes support for pluggable WebViews! Read about it in the [Android 4.0.0 release blog post](http://cordova.apache.org/announcements/2015/04/15/cordova-android-4.0.0.html). +* Our template app, **[Cordova App Hello World](https://www.npmjs.com/package/cordova-app-hello-world)**, has been moved to **npm**. +* Added the ability to manage your plugin and platform dependencies in your project's `config.xml`. When adding plugins or platforms, use the `--save` flag to add them to `config.xml`. Ex: `cordova platform add android --save`. Existing projects can use `cordova plugin save` and `cordova platform save` commands to save all previously installed plugins and platforms into your project's `config.xml`. Platforms and plugins will be autorestored when `cordova prepare` is run. This allows developers to easily manage and share their dependenceis among different development enviroments and with their coworkers. + + +To update your tools: + + * If you have `cordova` installed: + + npm install -g cordova + + * If you have `plugman` installed: + + npm install -g plugman + + +# Changes include: + + +## Platform updates +When adding these platforms to your project, the following versions are now used by default. +These platform versions were released recently, and the tools' defaults were updated: + +* [Cordova Android 4.0.0](http://cordova.apache.org/announcements/2015/04/15/cordova-android-4.0.0.html) +* [Cordova WP8 3.8.0](https://github.com/apache/cordova-wp8/blob/master/RELEASENOTES.md) +* [Cordova Windows 3.8.1](https://github.com/apache/cordova-windows/blob/master/RELEASENOTES.md) + +## cordova-lib +* [CB-8865](https://issues.apache.org/jira/browse/CB-8865) Fixed `plugman.help()` +* Pinned **Cordova-Android** version **4.0.0** +* Fix `getPlatformVersion` fails for paths with spaces +* [CB-8799](https://issues.apache.org/jira/browse/CB-8799) Save plugin/platform `src` and `version` to `spec` attribute. +* [CB-8807](https://issues.apache.org/jira/browse/CB-8807) Platform add fails to add plugins with variables. +* [CB-8832](https://issues.apache.org/jira/browse/CB-8832) Fix **iOS** icon copying logic to not use default for every size +* Updated pinned versions of **Windows** and **wp8**. +* [CB-8775](https://issues.apache.org/jira/browse/CB-8775) Adding a plugin will copy it to plugins folder, except if the plugin's new or old id is already installed. +* Fix `setGlobalPreference()` in `ConfigParser` +* Removed mostly unused `relativePath` checking and added missing cases for `isAbsolutePath` +* [CB-8791](https://issues.apache.org/jira/browse/CB-8791) Recognize `UAP` as a valid `TargetPlatformIdentifier` +* [CB-8784](https://issues.apache.org/jira/browse/CB-8784) Prepare with no platforms should restore all platforms. +* Fix `plugman install` failure on **iOS** containing `&` +* [CB-8703](https://issues.apache.org/jira/browse/CB-8703) Add support for `semver` and `device-specific` targeting of `config-file` to **Windows** +* [CB-8596](https://issues.apache.org/jira/browse/CB-8596) Expose APIs to retrieve platforms and plugins saved in `config.xml`. +* [CB-8741](https://issues.apache.org/jira/browse/CB-8741) Make plugin `--save` work more like `npm install` +* [CB-8755](https://issues.apache.org/jira/browse/CB-8755) Plugin `--save`: Multiple `config.xml` entries don't get removed +* [CB-8754](https://issues.apache.org/jira/browse/CB-8754) Auto-restoring a plugin fails when adding a platform. +* [CB-8651](https://issues.apache.org/jira/browse/CB-8651) Restoring platforms causes plugin install to be triggered twice +* [CB-8731](https://issues.apache.org/jira/browse/CB-8731) Updated `app-hello-world` dependency to **3.9.0** +* [CB-8757](https://issues.apache.org/jira/browse/CB-8757) **iOS**: Make paths with `--link` relative to the real project path +* [CB-8286](https://issues.apache.org/jira/browse/CB-8286) Fix regression from e70432f2: Never want to link to `app-hello-world` +* [CB-8737](https://issues.apache.org/jira/browse/CB-8737) Available platforms list includes extraneous values +* Bugfix to `json.parse` before using `cfg` +* Add `merges/` by default, now all tests pass +* Move `cordova-app-hello-world` dependency to `cordova-lib` +* Support the old 4-argument version of `cordova create` again +* [CB-8286](https://issues.apache.org/jira/browse/CB-8286) Update `create.js` to always require passing in a `www` +* Show **npm** failure message when plugin fetch fails +* [CB-8725](https://issues.apache.org/jira/browse/CB-8725) Fix plugin add from **npm** when authenticated to CPR +* [CB-8499](https://issues.apache.org/jira/browse/CB-8499) Remove `project_dir` from (un)installers signature +* Add `addElement()` to `ConfigParser` +* [CB-8696](https://issues.apache.org/jira/browse/CB-8696) Fix fetching of dependencies with semver constraints rather than exact versions +* [CB-7747](https://issues.apache.org/jira/browse/CB-7747) Add `` for App Store on **iOS** +* Export `PlatformProjectAdapter` from `platforms.js` +* Allow subdirs for icons on **BB10** +* [CB-8670](https://issues.apache.org/jira/browse/CB-8670) Error when set engine name to `cordova-windows` in `plugin.xml` +* [CB-8521](https://issues.apache.org/jira/browse/CB-8521) Adds `cordova plugin save` which saves all installed plugins to config.xml +* [CB-7698](https://issues.apache.org/jira/browse/CB-7698) BugFix: For plugins which require variables, `cordova plugin add FOO` should fail when no variables specified. +* Add `setGlobalPreference()` to `ConfigParser` +* [CB-8499](https://issues.apache.org/jira/browse/CB-8499) Merge platforms.js from cordova and plugman +* Rename references to `feature` to `plugin` +* Deprecate the old feature syntax from `config.xml` +* [CB-8634](https://issues.apache.org/jira/browse/CB-8634) Adds support for custom branches for `cordova platform add` +* [CB-8633](https://issues.apache.org/jira/browse/CB-8633) BugFix: Support for urls to tarballs was broken +* [CB-8499](https://issues.apache.org/jira/browse/CB-8499) `cordova platform save`: save installed platforms and their sources (versions/git_urls/folders) Into `config.xml` +* [CB-8499](https://issues.apache.org/jira/browse/CB-8499) When deleting a platform, remove it from `platforms.json` +* [CB-8499](https://issues.apache.org/jira/browse/CB-8499) When adding a platform, capture version/folder/url being added to allow us to be able to save all installed platforms and their versions later on by doing `cordova platform save` +* [CB-7747](https://issues.apache.org/jira/browse/CB-7747) Add `` to default template +* [CB-8616](https://issues.apache.org/jira/browse/CB-8616) Support 9-patch images for default **Android** splashscreen +* [CB-8551](https://issues.apache.org/jira/browse/CB-8551) Fixed regex in `isValidCprName` +* [CB-8551](https://issues.apache.org/jira/browse/CB-8551) Merged `fetchNPM` and `fetchPlugReg` into `fetchPlugin` +* [CB-8551](https://issues.apache.org/jira/browse/CB-8551) Updated regex in `isValidCprName` to exclude matching `@version` +* [CB-8551](https://issues.apache.org/jira/browse/CB-8551) Split up `changePluginId` into two functions +* [CB-8457](https://issues.apache.org/jira/browse/CB-8457) Ignore version specifier when running hooks +* [CB-8578](https://issues.apache.org/jira/browse/CB-8578) `cordova plugin add ` should be able to restore urls and folders in addition to versions +* [CB-7827](https://issues.apache.org/jira/browse/CB-7827) Add support for `android-activityName` within `config.xml` +* Add `org.apache.cordova.test-framework` to plugman publish whitelist +* [CB-8577](https://issues.apache.org/jira/browse/CB-8577) Read plugin variables from correct tag +* [CB-8551](https://issues.apache.org/jira/browse/CB-8551) Added `plugin-name` support for removing plugins. +* [CB-8551](https://issues.apache.org/jira/browse/CB-8551) Skip **CPR** if `pluginID` isn't reverse domain name style +* [CB-8551](https://issues.apache.org/jira/browse/CB-8551) Added **npm** fetching as fallback + +## cordova-cli +* Add information on **Firefox OS** to the `README` +* Update link to hooks `README` +* [CB-8634](https://issues.apache.org/jira/browse/CB-8634) Adds docs about support for custom branches for `cordova platform add` + +## cordova-js +* Verify that `window.cordova` does not already exist and throw error if it does +* Added `appveyor` badge +* [CB-8711](https://issues.apache.org/jira/browse/CB-8711) Wait for all callbacks before evaluating expectations +* [CB-8223](https://issues.apache.org/jira/browse/CB-8223) Adds `configparser` module for exposing `config.xml` in the **Browser** platform +* [CB-8667](https://issues.apache.org/jira/browse/CB-8667) **Windows** Handle case where checking for `NORESULT` returns falsy +* Add **TravisCI** link and banner + +## plugman +* [CB-8637](https://issues.apache.org/jira/browse/CB-8637) Add **Windows** platform + +## Pinned Platform Versions for **Cordova CLI 5.0.0** + +* Cordova Amazon-FireOS: 3.6.3 +* Cordova Android: 4.0.0 +* Cordova BlackBerry10: 3.7.0 +* Cordova Browser: 3.6.0 +* Cordova FirefoxOS: 3.6.3 +* Cordova iOS: 3.8.0 +* Cordova Ubuntu: 4.0.0 +* Cordova Windows: 3.8.1 +* Cordova WP8: 3.8.0 http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/51da3852/www/_posts/2015-05-26-android-402.md ---------------------------------------------------------------------- diff --git a/www/_posts/2015-05-26-android-402.md b/www/_posts/2015-05-26-android-402.md new file mode 100644 index 0000000..3a16aaa --- /dev/null +++ b/www/_posts/2015-05-26-android-402.md @@ -0,0 +1,51 @@ +--- +layout: post +author: + name: Joe Bowser + url: https://twitter.com/infil00p +title: "Apache Cordova Android 4.0.2 and 3.7.2 released" +categories: announcements +tags: news releases security +--- + + +A major Security issue were discovered in the Android platform of Cordova. We are releasing version 4.0.2 of Cordova Android to address these security issues. We recommend that all Android applications built using Cordova 4.0.x or higher be upgraded to use version 4.0.2 of Cordova Android. If you are using an older version of Cordova, we have also released 3.7.2 with the same fix, and we recommend that you at upgrade your project to either of these fixed versions. Other Cordova platforms such as iOS are unaffected, and do not have an update. + +When using the Cordova CLI, the command to use 4.0.2 of Cordova Android is: + + cordova platform add android@4.0.2 + +and the command to use 3.7.2 is: + + cordova platform add android@3.7.2 + +The security issue is CVE-2015-1835 + +For your convenience, the text of the CVE is included here. + + + +____ + +CVE-2015-1835: Remote exploit of secondary configuration variables in Apache Cordova on Android + + +Severity: High + +Vendor: +The Apache Software Foundation + +Versions Affected: +Cordova Android versions up to 4.0.1 (3.7.2 Excluded) + +Description: +Android applications built with the Cordova framework that don't have explicit values set in Config.xml can have undefined configuration variables set by Intent. This can cause unwanted dialogs appearing in applications and changes in the application behaviour that can include the app force-closing. + +The latest release of Cordova Android entirely removes the ability of configuration parameters to be set by intents. This change is an API change in the platform, and third-party plugins that use values set in the config.xml should make sure that they use the preferences API instead of relying on the Intent bundle, whcih can be manipulated in this case. + +Upgrade path: +Developers who are concerned about this should rebuild their applications with Cordova Android 4.0.2. Developers unable to upgrade to 4.0.2 also have the option of upgrading to Cordova Android 3.7.2. Developers should also make sure that variables that they wish to have protected are specified in their config.xml. + +Credit: +This issue was discovered by Seven She from TrendMicro Mobile Threat Research Team (TRT) +================================================== http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/51da3852/www/_posts/2015-06-03-windows-release.md ---------------------------------------------------------------------- diff --git a/www/_posts/2015-06-03-windows-release.md b/www/_posts/2015-06-03-windows-release.md new file mode 100644 index 0000000..b10d9fd --- /dev/null +++ b/www/_posts/2015-06-03-windows-release.md @@ -0,0 +1,57 @@ +--- +layout: post +author: + name: Nikhil Khandelwal + url: https://twitter.com/nikhilkh +title: "Apache Cordova Windows 4.0.0 release" +categories: announcements +tags: news releases +--- + +We are happy to announce that Cordova Windows 4.0.0 has been released! + +#Key features +* The default Windows target version is now 8.1. Windows 8.0 support is deprecated and a warning will be issued when building for Windows 8.0. The support for Windows 8.0 will be removed in 6 months. If you have `windows-target-version` preference in config.xml set to 8.0, you will see this warning and you should consider changing it to 8.1. +* `windows8` platform keyword is deprecated. For all plugins, use `windows` as the platform keyword. +* Support for Windows 10 Insider Preview and building using Visual Studio 2015 RC. More details can be found below. This support will evolve as Windows 10 release comes along. +* Support for specifying parameters for signing Windows apps - like signing certificate, publisher identity etc. More details can be found in [docs](http://cordova.apache.org/docs/en/edge/guide_platforms_win8_packaging.md.html#Windows%20Plugins) + +#What's new in Windows 10 +* Windows 10 Insider Preview introduces the [Universal Windows Platform (UWP)](https://msdn.microsoft.com/en-us/library/windows/apps/dn894631.aspx) which provides a guaranteed core API layer across devices. You can create a single app package that can be installed onto a wide range of devices. A single store makes it easy to publish apps across all device types - desktop, mobile, Xbox, iOT. +* In Windows 8 and 8.1, the app was loaded in the ms-appx context. In Windows 10 for Cordova, by default the app is loaded in ms-appx-web and have access to most Windows Runtime APIs. This allows you to [host remote content](https://msdn.microsoft.com/en-us/library/windows/apps/dn705792.aspx) in your Windows Cordova app. More details on how to customize this behavior can be found [here](http://cordova.apache.org/docs/en/edge/guide_platforms_win8_win10-support.md.html#Cordova%20for%20Windows%2010). +* Some JavaScript libraries could not run in Windows 8/8.1 due to the safeHTML restriction and we needed to use winstore-jscompat. In Windows 10 Cordova apps, the security can be applied using [Content Security Policies](http://content-security-policy.com/). + +#Install +You will need to update to cordova-cli 5.1.1 or higher to use this version of the Windows platform: + +To add it to an existing project: + + npm install -g cordova + cordova platform update windows + +Alternatively, to add it to a new project: + + npm install -g cordova + cordova platform add windows + +# Changes include: + + +* [CB-8954](https://issues.apache.org/jira/browse/CB-8954) Adds `requirements` command support to check_reqs module +* [CB-9073](https://issues.apache.org/jira/browse/CB-9073) Fixes build error when path to project contains `&` symbol +* [CB-8889](https://issues.apache.org/jira/browse/CB-8889) Persist app/package name and product ID during platform update. +* Updating appx manifest to a large extent now happens in the `prepare` step as opposed to the `build` step. This change implies that cordova-windows 4.0.0 can only work with with cordova CLI > 5.0 +* [CB-8486](https://issues.apache.org/jira/browse/CB-8486) Support for creating signed package and build.json for Windows +* Add preview support for Windows 10 Universal Apps. To target Windows 10, add `` to config.xml. +* The default windows target version is now 8.1. +* Support for `--appx` command line argument to override the windows target version +* [CB-8946](https://issues.apache.org/jira/browse/CB-8946): Added the `WindowsToastCapable` preference to indicate that the app can support toasts. This is to support the Local Notifications plugin. +* [CB-8856](https://issues.apache.org/jira/browse/CB-8856) Fix 'Id' attribute is invalid when creating Windows Store submission build +* [CB-8307](https://issues.apache.org/jira/browse/CB-8307): Adding a 25-year expiration temporary certificate. +* [CB-8760](https://issues.apache.org/jira/browse/CB-8760) platform list doesn't show version for windows platform. + +#Known Issues with 4.0.0 and Windows 10 + +* Windows 10 Insider Preview does not have a command-line compatible emulator deployment scenario. To deploy to an emulator, open your solution file in Visual Studio. +* The Windows SDK included with Visual Studio 2015 RC does not include a tool to deploy to a Windows 10 Phone. To deploy to a phone, open your solution file in Visual Studio. +* WinJS is included inline in the package. In the future, it might be migrated to an NPM dependency. WinJS UI functionality is not included and should be add by you. (see [WinJS on Github](http://github.com/winjs/winjs)) http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/51da3852/www/_posts/2015-06-04-tools-release.md ---------------------------------------------------------------------- diff --git a/www/_posts/2015-06-04-tools-release.md b/www/_posts/2015-06-04-tools-release.md new file mode 100644 index 0000000..e6bfb1d --- /dev/null +++ b/www/_posts/2015-06-04-tools-release.md @@ -0,0 +1,31 @@ +--- +layout: post +author: + name: Tim Barham +title: "Tools Release 4.3.1" +categories: news +tags: release tools +--- +Cordova tools 4.3.1 has been released to pin version 3.7.2 of the Android platform, which includes an important +[security update](https://cordova.apache.org/announcements/2015/05/26/android-402.html). + +If you are currently using **Cordova 4.x** and develop for the **Android** platform, we recommend you update to this +release: + + npm install -g cordova@4.3.1 + +If you have existing projects that use **Cordova Android 3.7.1** or earlier, you can update them to **3.7.2**: + + cordova platform update android@3.7.2 + +## Pinned Platform Versions for **Cordova CLI 4.3.1** + +* Cordova Amazon-FireOS: 3.6.3 +* Cordova Android: 3.7.2 +* Cordova BlackBerry10: 3.7.0 +* Cordova Browser: 3.6.0 +* Cordova FirefoxOS: 3.6.3 +* Cordova iOS: 3.8.0 +* Cordova Ubuntu: 4.0.0 +* Cordova Windows: 3.8.0 +* Cordova WP8: 3.7.1 http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/51da3852/www/_posts/2015-06-10-tools-release.md ---------------------------------------------------------------------- diff --git a/www/_posts/2015-06-10-tools-release.md b/www/_posts/2015-06-10-tools-release.md new file mode 100644 index 0000000..d55559b --- /dev/null +++ b/www/_posts/2015-06-10-tools-release.md @@ -0,0 +1,100 @@ +--- +layout: post +author: + name: Steve Gill + url: https://twitter.com/stevesgill +title: "Tools Release: June 10, 2015" +categories: news +tags: release tools +--- +New versions of cordova tools are now live! + +* [cordova-lib@5.1.1](https://www.npmjs.org/package/cordova-lib) +* [cordova@5.1.1](https://www.npmjs.org/package/cordova) +* [plugman@0.23.3](https://www.npmjs.org/package/plugman) +* [cordova-js@4.0.0](https://www.npmjs.org/package/cordova-js) + +Release highlights: +* [CB-8898](https://issues.apache.org/jira/browse/CB-8898) Introduced a new `cordova requirements` command +* [CB-8441](https://issues.apache.org/jira/browse/CB-8441) `cordova prepare --browserify` now supports 3rd party plugins to build your `cordova.js` at run time! Try it out! +* [CB-9075](https://issues.apache.org/jira/browse/CB-9075) pinned platforms will include platform patch updates without requiring a new tools release. + +To update your tools: + + * If you have `cordova` installed: + + npm install -g cordova + + * If you have `plugman` installed: + + npm install -g plugman + + +# Changes include: + + +## Platform updates +When adding these platforms to your project, the following versions are now used by default. +These platform versions were released recently, and the tools' defaults were updated: + +* [Cordova Android 4.0.2](http://cordova.apache.org/announcements/2015/05/26/android-402.html) +* [Cordova Windows 4.0.0](http://cordova.apache.org/announcements/2015/06/03/windows-release.html) + +## cordova-lib +* [CB-9087](https://issues.apache.org/jira/browse/CB-9087) Updated pinned version of **cordova-windows** to `4.0.0` +* [CB-9108](https://issues.apache.org/jira/browse/CB-9108) Handle version ranges when add platform with `--usegit`. +* [CB-8898](https://issues.apache.org/jira/browse/CB-8898) Makes error message descriptive when `requirements` is called outside of cordova project. +* [CB-8007](https://issues.apache.org/jira/browse/CB-8007) Two cordova plugins modifying `*-Info.plist CFBundleURLTypes` +* [CB-9065](https://issues.apache.org/jira/browse/CB-9065) Allow removing plugins by short name. +* [CB-9001](https://issues.apache.org/jira/browse/CB-9001) Set `WMAppManifest.xml` Author, Description and Publisher attributes based on `config.xml` +* [CB-9073](https://issues.apache.org/jira/browse/CB-9073) Allow to add platform if project path contains `&` symbol +* [CB-8783](https://issues.apache.org/jira/browse/CB-8783) - Revert `all` as a global preference value for Orientation (specific to iOS for now) +* [CB-8783](https://issues.apache.org/jira/browse/CB-8783) - `default` value for Orientation does not support both landscape and portrait orientations. (new `all` value) +* [CB-9075](https://issues.apache.org/jira/browse/CB-9075) pinned platforms will include patch updates without new tools release +* [CB-9051](https://issues.apache.org/jira/browse/CB-9051) Plugins don't get re-added if platforms folder deleted. +* [CB-9025](https://issues.apache.org/jira/browse/CB-9025) Call **Windows** `prepare` logic on as part of cordova-lib `prepare`. This closes #217 +* [CB-8965](https://issues.apache.org/jira/browse/CB-8965) copy platform specific js into `platform_www` when adding new platforms for browserify workflow +* Add support to specify a build config file. If none is specified `build.json` in the project root is used as a default This closes #215 +* [CB-9030](https://issues.apache.org/jira/browse/CB-9030): Modifies superspawn to support a `chmod` option. When truthy, attempts to set the target file mode to 755 before executing. Specifies this argument as truthy for common CLI operations (compile, run, and steps in plugman). Didn't add it for hooks runner since that particular mode is in legacy support. +* [CB-6462](https://issues.apache.org/jira/browse/CB-6462) [CB-6026](https://issues.apache.org/jira/browse/CB-6026) - Orientation preference now updates `UISupportedInterfaceOrientations~ipad` too. +* [CB-8898](https://issues.apache.org/jira/browse/CB-8898) Introduces `requirements` cordova module +* Update elementtree dependency to 0.1.6. Note it has a breaking API change. https://github.com/racker/node-elementtree/issues/24 (closes #209) +* [CB-8757](https://issues.apache.org/jira/browse/CB-8757) Resolve symlinks in order to avoid relative path issues (close #212) +* [CB-8956](https://issues.apache.org/jira/browse/CB-8956) Remove hardcoded reference to `registry.npmjs.org` +* [CB-8934](https://issues.apache.org/jira/browse/CB-8934) fixed regression with projects config.json not being used in cordova create +* [CB-8908](https://issues.apache.org/jira/browse/CB-8908) Make fetching via git faster via `--depth=1` +* [CB-8897](https://issues.apache.org/jira/browse/CB-8897) Make default icon/splash on Android map to mdpi + +## cordova-cli +* [CB-8898](https://issues.apache.org/jira/browse/CB-8898) Adds missing section about `requirements` to general cordova help +* [CB-8898](https://issues.apache.org/jira/browse/CB-8898) Introduces `cordova requirements` command +* Updated `cordova-lib` dependency to `5.1.1` + +## cordova-js +* [CB-9057](https://issues.apache.org/jira/browse/CB-9057): Updated `cordova.j`s for **Windows** to refer to `base.js` instead of the full-blown `WinJS.js`. +* [CB-6865](https://issues.apache.org/jira/browse/CB-6865) added browserify support for plugins with any id +* [CB-8441](https://issues.apache.org/jira/browse/CB-8441) added missing requires and updated npm run scripts +* [CB-8441](https://issues.apache.org/jira/browse/CB-8441) `platformVersion` flag not required anymore. Grab version from dependecy platform versions +* [CB-8441](https://issues.apache.org/jira/browse/CB-8441) updated workflow to use `cordova-js-src` when available +* [CB-8441](https://issues.apache.org/jira/browse/CB-8441) grunt compile now uses platform dependencies `cordova-js-src` directory for platform specific exec files +* [CB-8441](https://issues.apache.org/jira/browse/CB-8441) added platforms as dev dependencies +* Added template-packaged `WinJS` reference for **Windows 10** support. This closes #111 +* [CB-8996](https://issues.apache.org/jira/browse/CB-8996) **Windows** Fixed invalid null comparison. This closes #110. +* updated browserify dependency to 10.1.3 +* android: Delete `PRIVATE_API` bridge mode enum, since it was removed in `4.0.0` +* [CB-8838](https://issues.apache.org/jira/browse/CB-8838) - Disabled `commandQueue` for `WK_WEBVIEW_BINDING`. (closes #107) + +## plugman +* Updated `cordova-lib` dependency to `5.1.1` + +## Pinned Platform Versions for **Cordova CLI 5.1.1** + +* Cordova Amazon-FireOS: 3.6.3 +* Cordova Android: 4.0.2 +* Cordova BlackBerry10: 3.7.0 +* Cordova Browser: 3.6.0 +* Cordova FirefoxOS: 3.6.3 +* Cordova iOS: 3.8.0 +* Cordova Ubuntu: 4.0.0 +* Cordova Windows: 4.0.0 +* Cordova WP8: 3.8.1 http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/51da3852/www/_posts/2015-06-22-plugins-release.md ---------------------------------------------------------------------- diff --git a/www/_posts/2015-06-22-plugins-release.md b/www/_posts/2015-06-22-plugins-release.md new file mode 100644 index 0000000..9e8e422 --- /dev/null +++ b/www/_posts/2015-06-22-plugins-release.md @@ -0,0 +1,188 @@ +--- +layout: post +author: +name: Steve Gill +url: https://twitter.com/stevesgill +title: "Plugins Release: June 22, 2015" +categories: news +tags: release plugins +--- +The following plugins were updated today: + +* cordova-plugin-battery-status@1.1.0 +* cordova-plugin-camera@1.2.0 +* cordova-plugin-console@1.0.1 +* cordova-plugin-contacts@1.1.0 +* cordova-plugin-device@1.0.1 +* cordova-plugin-device-motion@1.1.1 +* cordova-plugin-device-orientation@1.0.1 +* cordova-plugin-dialogs@1.1.1 +* cordova-plugin-file@2.1.0 +* cordova-plugin-file-transfer@1.2.0 +* cordova-plugin-geolocation@1.0.1 +* cordova-plugin-globalization@1.0.1 +* cordova-plugin-inappbrowser@1.0.1 +* cordova-plugin-legacy-whitelist@1.1.0 +* cordova-plugin-media@1.0.1 +* cordova-plugin-media-capture@1.0.1 +* cordova-plugin-network-information@1.0.1 +* cordova-plugin-splashscreen@2.1.0 +* cordova-plugin-statusbar@1.0.0 +* cordova-plugin-test-framework@1.0.1 +* cordova-plugin-vibration@1.2.0 +* cordova-plugin-whitelist@1.1.0 + +The plugins have been pushed to [**npm**](https://www.npmjs.com/)! You can search for cordova plugins on [**npm**](https://www.npmjs.com/search?q=ecosystem%3Acordova) or alternative **npm** search sites like [**node-modules.com**](http://node-modules.com/search?q=ecosystem%3Acordova). We are also working on our own plugin search using **npm's** api. We will have more news on that soon! + +If you haven't migrated your plugins over to **npm**, do it soon! We will be switching [**plugins.cordova.io**](http://plugins.cordova.io/) to read-only sometime next month. You can learn more about migrating your plugins to **npm** [here](http://cordova.apache.org/announcements/2015/04/21/plugins-release-and-move-to-npm.html). + +---- +You can update any plugin by removing it, and then re-adding it. + + E.g. To update your camera plugin: + + cordova plugin rm org.apache.cordova.camera --save + cordova plugin add org.apache.cordova.camera --save + +Release Highlights: +* Readme files properly render on **npm** now! +* `package.json` repo links now point to our **Github** mirrors. +* Updated translations for the readme. Can be found under the docs directory. + +Changes include: + + +cordova-plugin-battery-status@1.1.0 +* added missing license headers +* [CB-7953](https://issues.apache.org/jira/browse/CB-7953) Add `cordova-plugin-battery-status` support for **browser** platform +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme + +cordova-plugin-camera@1.2.0 +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme +* Update docs. This closes #100 +* [CB-8883](https://issues.apache.org/jira/browse/CB-8883) fix picture rotation issue +* major refactor : readability +* [CB-8498](https://issues.apache.org/jira/browse/CB-8498) Patch, this closes #64 +* [CB-8879](https://issues.apache.org/jira/browse/CB-8879) fix stripe issue with correct aspect ratio +* [CB-8601](https://issues.apache.org/jira/browse/CB-8601) - **iOS** camera unit tests broken +* [CB-7667](https://issues.apache.org/jira/browse/CB-7667) **iOS8**: Handle case where camera is not authorized (closes #49) +* add missing license header + +cordova-plugin-console@1.0.1 +* move `logger.js` and `console-via-logger.js` to common modules, instead of the numerous repeats that were there. +* clean up tests, info is below log level so it does not exist by default. +* [CB-9191](https://issues.apache.org/jira/browse/CB-9191) Add basic tests +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme + +cordova-plugin-contacts@1.1.0 +* Add more install text for legacy versions of cordova tools. This closes #60 +* [CB-9056](https://issues.apache.org/jira/browse/CB-9056) Increased timeout of failing tests +* [CB-8987](https://issues.apache.org/jira/browse/CB-8987): Support for save and remove for **Windows 10** +* [CB-5278](https://issues.apache.org/jira/browse/CB-5278): We must close the cursor or we take down the whole app, and the debugger doesn't catch it. + +cordova-plugin-device@1.0.1 +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme + +cordova-plugin-device-motion@1.1.1 +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme +* [CB-8842](https://issues.apache.org/jira/browse/CB-8842) Return cached values on **Android** if there is no updates from sensor + +cordova-plugin-device-orientation@1.0.1 +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme + +cordova-plugin-dialogs@1.1.1 +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme + +cordova-plugin-file@2.1.0 +* added missing license header +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme +* [CB-8844](https://issues.apache.org/jira/browse/CB-8844) Increased timeout for asset tests +* Updated `resolveFileSystem.js` so it can be parsed by `uglifyJS` +* [CB-8792](https://issues.apache.org/jira/browse/CB-8792) Fixes reading of json files using `readAsText` + +cordova-plugin-file-transfer@1.2.0 +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme +* [CB-6503](https://issues.apache.org/jira/browse/CB-6503): `Null` pointer check for headers in upload (This closes #27) +* [CB-6503](https://issues.apache.org/jira/browse/CB-6503): Allow `payload` `content-types` other than `multipart/form-data` to be used for upload +* Fix `NoSuchMethodException` looking up cookies. +* [CB-8951](https://issues.apache.org/jira/browse/CB-8951) **WP8** Handle exceptions in `download()` and `upload()` again +* **wp8** Relaxed engine version requirement, using reflection to see if methods are available +* Check for the existence of `Json.net` assembly to determin how we deserialize our headers. +* relax engine requirement to allow `-dev` versions +* Remove verbose console log messages +* bump required cordova-wp8 version to 4.0.0 +* fix failing test resulting from overlapping `async` calls +* [CB-8721](https://issues.apache.org/jira/browse/CB-8721) Fixes incorrect headers and upload params parsing on **wp8** +* Replace all slashes in **windows** path + +cordova-plugin-geolocation@1.0.1 +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme +* [CB-8845](https://issues.apache.org/jira/browse/CB-8845) Updated comment why **Android** tests are currently pended +* [CB-8845](https://issues.apache.org/jira/browse/CB-8845) Pended tests for **Android** +* Add more install text for legacy versions of cordova tools. This closes #36 + +cordova-plugin-globalization@1.0.1 +* added `moment.js` to `.ratignore` +* added license headers +* Adding `.ratignore` file. +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme + +cordova-plugin-inappbrowser@1.0.1 +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme + +cordova-plugin-legacy-whitelist@1.1.0 +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme +* Fix compile error introduces by `6a3d2cb3567` +* [CB-8739](https://issues.apache.org/jira/browse/CB-8739) added missing license headers +* Fix `XMl` parsing broken by `superclass` refactor (`XmlResourceParser`->`XmlPullParser`) + +cordova-plugin-media@1.0.1 +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme +* [CB-9079](https://issues.apache.org/jira/browse/CB-9079) Increased timeout for playback tests +* [CB-8888](https://issues.apache.org/jira/browse/CB-8888) Makes media status reporting on **windows** more precise +* [CB-8793](https://issues.apache.org/jira/browse/CB-8793) Increased playback timeout in tests + +cordova-plugin-media-capture@1.0.1 +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme + +cordova-plugin-network-information@1.0.1 +* Adding `.ratignore` file. +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme + +cordova-plugin-splashscreen@2.1.0 +* added missing license headers +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme +* Fixed **iOS** unit tests. +* [CB-3562](https://issues.apache.org/jira/browse/CB-3562): Disable screen rotation for **iPhone** when splash screen is shown. (closes #47) +* [CB-8988](https://issues.apache.org/jira/browse/CB-8988): Fix rotation on **iOS/iPad** (closes #46) +* [CB-8904](https://issues.apache.org/jira/browse/CB-8904): Don't reset the static variable when it's destroyed, otherwise we might as well just have a member variable +* Removed **wp7** from `plugin.xml` and `package.json` +* [CB-8750](https://issues.apache.org/jira/browse/CB-8750) **wp8**: Rewrite resoultion helper +* [CB-8750](https://issues.apache.org/jira/browse/CB-8750) **wp8**: Allow `resolution-specific` splashscreen images +* [CB-8758](https://issues.apache.org/jira/browse/CB-8758) **wp8**: `UnauthorizedAccessException` on `hide()` + +cordova-plugin-statusbar@1.0.1 +* add auto-tests for basic api +* [CB-9180](https://issues.apache.org/jira/browse/CB-9180) Add correct supported check for **Windows 8.1** desktop +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme + +cordova-plugin-test-framework@1.0.1 +* added `ratignore` file + +cordova-plugin-vibration@1.2.0 +* Adding `.ratignore` file. +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme +* used min/max statics in vibrate with pattern. Use `callbackId` in callbacks, catch json format exceptions +* static-ized `MIN_DURATION` and `MAX_DURATION` +* [CB-7216](https://issues.apache.org/jira/browse/CB-7216) changed `cancelWasCalled` boolean +* [CB-7218](https://issues.apache.org/jira/browse/CB-7218) truncate `vibration` to 5 secs for **WP8** +* [CB-6916](https://issues.apache.org/jira/browse/CB-6916) added `vibrateWithPattern` for **wp8** +* [CB-6914](https://issues.apache.org/jira/browse/CB-6914) added `cancelVibration` for **wp8** +* **Android**: respect silent audio setting + +cordova-plugin-whitelist@1.1.0 +* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) Updated translations for readme +* Usage of `CDVURLRequestFilter` protocol. +* [CB-9089](https://issues.apache.org/jira/browse/CB-9089) - **iOS** whitelist plugin does not compile +* [CB-9090](https://issues.apache.org/jira/browse/CB-9090) - Enable whitelist plugin for **cordova-ios** `4.0.0` +* Fixed error in `Content-Security-Policy` example --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org