Wednesday, March 25, 2015

Hosting multiple Cordova plugins in the same git repository

The norm for hosting custom cordova plugins is one plugin per git repository. However there are instances when you would want to host multiple custom plugins inside the same repository. The cordova command for adding such plugins into a cordova project is as given below :

cordova plugin add [GIT_REPO_URL]#[BRANCH_NAME]:[FOLDER_PATH]

example :

cordova plugins add https://harinis@bitbucket.org/harinis/gtnexuscordovaplugins.git#master:attachmentHandler


Note that the FOLDER_PATH should point to the main plugin folder that contains the plugin.xml file.

No comments:

Post a Comment