You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/12/06 12:47:59 UTC

[GitHub] [cordova-docs] jfoclpf commented on issue #1004: Cordova v9.0.0 no longer uses plugins in the config.xml – not reflected in docs

jfoclpf commented on issue #1004:
URL: https://github.com/apache/cordova-docs/issues/1004#issuecomment-986744132


   @killroy42 the plugins info (just code name and some settings) are in `package.json` under `cordova` property
   
   ```json
     "cordova": {
       "plugins": {
         "cordova-plugin-geolocation": {
           "GPS_REQUIRED": "true"
         },
         "cordova-plugin-statusbar": {},
         "cordova-plugin-screen-orientation": {},
         "cordova-plugin-device": {},
         "cordova-plugin-whitelist": {},
   ```
   
   the plugin versions are are also in `package.json`  under `dependencies` or `devDependencies`, such as any normal npm module
   
   ```json
    "dependencies": {
       "@fortawesome/fontawesome-free": "5.15.4",
       "body-parser": "^1.19.0",
       "bootstrap": "^4.6.1",
       "cordova": "^10.0.0",
       "cordova-browser": "^6.0.0",
       "cordova-import-npm": "^1.0.33",
       "cordova-pdf-generator": "^2.1.1",
       "cordova-plugin-app-version": "^0.1.12",
       "cordova-plugin-cache-clear": "^1.3.8",
       "cordova-plugin-device": "^2.0.3",
       "cordova-plugin-geolocation": "^4.1.0",
   ```
   
   **But you don't need to worry about that**, when you install or remove a plugin everything is done for you
   
   To install
   ```
   cordova plugin add cordova-plugin-<name>
   ```
   to remove
   ```
   cordova plugin rm cordova-plugin-<name>
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org