phonegap build包括git non npm插件
问题描述:
如何在git中插入一个插件到phonegap构建zip文件的内部? 在config.xml文件中的插件规范phonegap build包括git non npm插件
<plugin name="com.ourcodeworld.plugins.Filebrowser" spec="~1.0.0"
src="https://github.com/ourcodeworld/cordova-ourcodeworld-filebrowser.git" />
该项目在Android上运行的应用程序科尔多瓦正常。在PhoneGap Build中,我收到一条错误消息。 具体的错误是:
Error - The following plugin, plugin version or a dependancy of this plugin is not on npm:
[email protected]~1.0.0
我在想什么?
答
您需要填写 “规范” 与git的插件URL:
<plugin name="com.ourcodeworld.plugins.Filebrowser"
spec="https://github.com/ourcodeworld/cordova-ourcodeworld-filebrowser.git" />
不需要
“源”。 Visual Studio Cordova需要“名称”。 PhoneGap Build会从git中取出插件。文档在这里:http://docs.phonegap.com/phonegap-build/configuring/plugins/#plugin-source