Install cordova plugin from specific branch and commit

I want to know if it is posible to install a specific plugin from a branch and commit for example:

cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps#12266a62dd4f9fabb9b2d270dcc715a02b8a40ed --variable API_KEY_FOR_ANDROID="myapikey" --variable API_KEY_FOR_IOS="myapikey"

Where multiple_maps would be the branch and the next the commit id. Is okay to concatenate them with # both of them. Because i see examples that only refering to a branch or a commit and they use hash but not both together.

i solve it.You put just the commit id and it works.

cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps#12266a62dd4f9fabb9b2d270dcc715a02b8a40ed --variable API_KEY_FOR_ANDROID=“myapikey” --variable API_KEY_FOR_IOS=“myapikey”

1 Like