Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12458

[cordova-plugin-camera] - The information about old versions of the plugin install the deprecated ID is missing in the README

    XMLWordPrintableJSON

    Details

      Description

      The information about old versions of the plugin install the deprecated ID is missing in the README of the cordova-plugin-camera (https://github.com/apache/cordova-plugin-camera)

      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 cordova-plugin-camera@0.2.7 --save
      Fetching plugin "cordova-plugin-camera@0.2.7" 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>
       

      Cordova CLI tool used

      dhcp-17-22:CordovaHello-Cordova-App cmacedo$ cordova -g -v
      6.4.0

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                camilamacedo86 Camila Macedo
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: