Credit to devdocs.io

cordova 7