Code Monkey home page Code Monkey logo

cordova-clean's People

Contributors

davidbriglio avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mpsoftdenmark

cordova-clean's Issues

Feature: Variables

Some plugins use variables to configure options like Android support libraries revisions or API keys. I don't know if variables are taken into account when installing plugins. Also the sync command could detect changes in this variables to remove and reinstall a certain plugin.

Feature: Version check

This is a great idea and potential time saver. Can you please add package and platform version checking for it to be perfect? Are there any hard problems or is it a matter of comparing the version number in package.json/plugin.xml?

Variables

Hi David, variables are not working for cordova-plugin-googlemaps.

Variables are set in config.xml:
plugin name="cordova-plugin-googlemaps" spec="^2.3.10">
variable name="API_KEY_FOR_ANDROID" value="" />
variable name="API_KEY_FOR_IOS" value="
" />
variable name="PLAY_SERVICES_VERSION" value="15.0.1" />
variable name="ANDROID_SUPPORT_V4_VERSION" value="27.1.1" />
/plugin>
(Removed < to bypass Github sanitization)

They are also set in package.json:
"cordova-plugin-googlemaps": {
"API_KEY_FOR_ANDROID": "",
"API_KEY_FOR_IOS": "
",
"PLAY_SERVICES_VERSION": "15.0.1",
"ANDROID_SUPPORT_V4_VERSION": "27.1.1"
},

This is the log:
2018-08-09T18:02:56.9209213Z Installing "cordova-plugin-googlemaps" for android
2018-08-09T18:02:57.5520353Z Failed to install 'cordova-plugin-googlemaps': Error: Variable(s) missing: API_KEY_FOR_ANDROID
2018-08-09T18:02:57.5521245Z at Object.mergeVariables (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\variable-merge.js:58:15)
2018-08-09T18:02:57.5521936Z at C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:315:44
2018-08-09T18:02:57.5522435Z at _fulfilled (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)
2018-08-09T18:02:57.5522836Z at self.promiseDispatch.done (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)
2018-08-09T18:02:57.5523255Z at Promise.promise.promiseDispatch (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:749:13)
2018-08-09T18:02:57.5523703Z at C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:557:44
2018-08-09T18:02:57.5524070Z at flush (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:108:17)
2018-08-09T18:02:57.5524407Z at _combinedTickCallback (internal/process/next_tick.js:131:7)
2018-08-09T18:02:57.5524842Z at process._tickCallback (internal/process/next_tick.js:180:9)
2018-08-09T18:02:57.5652227Z (node:10372) UnhandledPromiseRejectionWarning: Error: Variable(s) missing: API_KEY_FOR_ANDROID
2018-08-09T18:02:57.5652752Z at Object.mergeVariables (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\variable-merge.js:58:15)
2018-08-09T18:02:57.5653144Z at C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:315:44
2018-08-09T18:02:57.5653575Z at _fulfilled (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)
2018-08-09T18:02:57.5653989Z at self.promiseDispatch.done (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)
2018-08-09T18:02:57.5654407Z at Promise.promise.promiseDispatch (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:749:13)
2018-08-09T18:02:57.5654791Z at C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:557:44
2018-08-09T18:02:57.5655158Z at flush (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:108:17)
2018-08-09T18:02:57.5655496Z at _combinedTickCallback (internal/process/next_tick.js:131:7)
2018-08-09T18:02:57.5656110Z at process._tickCallback (internal/process/next_tick.js:180:9)
2018-08-09T18:02:57.5657352Z (node:10372) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
2018-08-09T18:02:57.5660129Z (node:10372) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
2018-08-09T18:02:57.5824149Z

Thanks.

Add "check" command

Add command to check the differences between installed plugins / platforms and those required.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.