Camila Macedo created CB-12458:
----------------------------------

             Summary: The information about old versions of the plugin install 
the deprecated ID is missing in the README
                 Key: CB-12458
                 URL: https://issues.apache.org/jira/browse/CB-12458
             Project: Apache Cordova
          Issue Type: Bug
            Reporter: Camila Macedo


The information about old versions of the plugin install the deprecated ID is 
missing in the README

*Example:*

# Add plugin without defining the version of the plugin. ( lastest )
 
dhcp-17-22:01789921-Cordova-App cmacedo$ cordova plugin add 
cordova-plugin-camera --save
Saved plugin info for "cordova-plugin-camera" to config.xml
dhcp-17-22:01789921-Cordova-App cmacedo$ cat config.xml 
<?xml version='1.0' encoding='utf-8'?>
<widget id="org.feedhenry.art.cordova.blank" version="0.0.1" 
xmlns="http://www.w3.org/ns/widgets"; 
xmlns:cdv="http://cordova.apache.org/ns/1.0";>
    <name>Blank App</name>
    <description>
        This is an hybrid app, built using Cordova
    </description>
    <content src="index.html" />
    <access origin="*" />
    <preference name="fullscreen" value="true" />
    <preference name="webviewbounce" value="true" />
    <plugin name="cordova-plugin-whitelist" spec="1.2.0" />
    <plugin name="cordova-plugin-network-information" spec="~1.3.1" />
    <plugin name="cordova-plugin-camera" spec="~2.3.1" />
</widget>

# Add plugin with the definition of the version as 0.2.7.  

dhcp-17-22:CordovaHello-Cordova-App cmacedo$ cordova plugin add 
[email protected] --save
Fetching plugin "[email protected]" via npm
Saved plugin info for "org.apache.cordova.camera" to config.xml
dhcp-17-22:CordovaHello-Cordova-App cmacedo$ cat config.xml 
<?xml version='1.0' encoding='utf-8'?>
<widget id="org.feedhenry.art.cordova.blank" version="0.0.1" 
xmlns="http://www.w3.org/ns/widgets"; 
xmlns:cdv="http://cordova.apache.org/ns/1.0";>
    <name>Blank App</name>
    <description>
        This is an hybrid app, built using Cordova
    </description>
    <content src="index.html" />
    <access origin="*" />
    <preference name="fullscreen" value="true" />
    <preference name="webviewbounce" value="true" />
    <plugin name="cordova-plugin-whitelist" spec="1.2.0" />
    <plugin name="cordova-plugin-device" spec="~1.1.4" />
    <plugin name="cordova-plugin-network-information" spec="~1.3.1" />
    <plugin name="org.apache.cordova.camera" spec="~0.2.7" />
</widget>

* Point of the documentation*

Installation

This requires cordova 5.0+

cordova plugin add cordova-plugin-camera
Older versions of cordova can still install via the deprecated id

cordova plugin add org.apache.cordova.camera
It is also possible to install via repo url directly ( unstable )

cordova plugin add https://github.com/apache/cordova-plugin-camera.git 




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to