Skip to content

Latest commit

 

History

History
95 lines (75 loc) · 5.46 KB

plugins-core-setup.md

File metadata and controls

95 lines (75 loc) · 5.46 KB

Core Plugins Setup#

Date: 2015-11-18
Last Update: 2015-11-28

If you don't know the difference between Phonegap Build and Phonegap CLI, READ #1.

NOTE: - 2015-11-24 - A recent update to Phonegap Build required a change, which makes this more universal. Meaning it's good for CLI.

ADDED: 2015-11-24 - still more changes coming
NOTE - 2015-11-26 - <plugin /> defaults to npm and <gap:plugin /> (not recommended) defaults to pgb
NOTE - 2015-11-28 - The Latest plugin version are not applied, even though the were release on Nov 24, 2015

Phonegap Build

Cordova/Phonegap CLI

Where to get the names and version

  • If you are using Cordova/Phonegap CLI or SDK, the latest plugins, as released by Cordova, are usable.
  • If you are using Cordova/Phonegap Build, you may have to use one version before the latest version. (There is a rule for this.)

You can always find the latest plugins list on the Cordova Blog and look for Plugins Release.

To version or not to version.

  • Set the version, your code will always work. Then, make the changes at your pace, not those of the Cordova "core" team.
  • Do not set the version, get the latest and greatest. However, as versions change so does the chance for you code to break.

Versions set - good for Phonegap Build

<plugin name="cordova-plugin-battery-status" source="npm" spec="1.1.0" />
<plugin name="cordova-plugin-camera"         source="npm" spec="1.2.0" />
<plugin name="cordova-plugin-console"        source="npm" spec="1.0.1" />
<plugin name="cordova-plugin-contacts"       source="npm" spec="1.1.0" />
<plugin name="cordova-plugin-device"         source="npm" spec="1.0.1" />
<plugin name="cordova-plugin-device-motion"  source="npm" spec="1.1.1" />
<plugin name="cordova-plugin-device-orientation" source="npm" spec="1.0.1" />
<plugin name="cordova-plugin-dialogs"        source="npm" spec="1.1.1" />
<plugin name="cordova-plugin-file"           source="npm" spec="2.1.0" />
<plugin name="cordova-plugin-file-transfer" source="npm" spec="1.2.0" />
<plugin name="cordova-plugin-geolocation"    source="npm" spec="1.0.1" />
<plugin name="cordova-plugin-globalization"  source="npm" spec="1.0.1" />
<plugin name="cordova-plugin-inappbrowser"   source="npm" spec="1.0.1" />
<plugin name="cordova-plugin-legacy-whitelist" source="npm" spec="1.1.0" />
<plugin name="cordova-plugin-media"          source="npm" spec="1.0.1" />
<plugin name="cordova-plugin-media-capture"  source="npm" spec="1.0.1" />
<plugin name="cordova-plugin-network-information" source="npm" spec="1.0.1" />
<plugin name="cordova-plugin-splashscreen"   source="npm" spec="2.1.0" />
<plugin name="cordova-plugin-statusbar"      source="npm" spec="1.0.0" />
<plugin name="cordova-plugin-test-framework" source="npm" spec="1.0.1" />
<plugin name="cordova-plugin-vibration"      source="npm" spec="1.2.0" />
<plugin name="cordova-plugin-whitelist"      source="npm" spec="1.1.0" />

NO Versions set

<plugin name="cordova-plugin-battery-status" source="npm" />
<plugin name="cordova-plugin-camera"         source="npm" />
<plugin name="cordova-plugin-console"        source="npm" />
<plugin name="cordova-plugin-contacts"       source="npm" />
<plugin name="cordova-plugin-device"         source="npm" />
<plugin name="cordova-plugin-device-motion"  source="npm" />
<plugin name="cordova-plugin-device-orientation" source="npm" />
<plugin name="cordova-plugin-dialogs"        source="npm" />
<plugin name="cordova-plugin-file"           source="npm" />
<plugin name="cordova-plugin-file-transfer" source="npm" />
<plugin name="cordova-plugin-geolocation"    source="npm" />
<plugin name="cordova-plugin-globalization"  source="npm" />
<plugin name="cordova-plugin-inappbrowser"   source="npm" />
<plugin name="cordova-plugin-legacy-whitelist" source="npm" /> <!-- NEW -->
<plugin name="cordova-plugin-media"          source="npm" />
<plugin name="cordova-plugin-media-capture"  source="npm" />
<plugin name="cordova-plugin-network-information" source="npm" />
<plugin name="cordova-plugin-splashscreen"   source="npm" />
<plugin name="cordova-plugin-statusbar"      source="npm" /> <!-- NEW -->
<plugin name="cordova-plugin-test-framework" source="npm" /> <!-- NEW -->
<plugin name="cordova-plugin-vibration"      source="npm" />
<plugin name="cordova-plugin-whitelist"      source="npm" /> <!-- NEW -->

Source: https://cordova.apache.org/news/2015/06/22/plugins-release.html
NOT APPLIED YET: https://cordova.apache.org/news/2015/11/24/plugins-release.html

Related Articles