喜欢这些插件
https://github.com/ArchieGoodwin/SilentShot
https://github.com/alongubkin/phonertc
他们没有 tarball 网址
cordova plugin add https://github.com/alongubkin/phonertc.git
如何添加这样的插件?
meteor add cordova:@https://github.com/alongubkin/phonertc.git
最佳答案
更新
这适用于 Meteor 1.2 和 1.3-beta:
meteor 添加cordova:pluginID@gitUrl#commithash
所以对于actionsheet插件:
meteor 添加cordova:cordova-plugin-actionsheet@https://github.com/EddyVerbruggen/cordova-plugin-actionsheet.git#b93aef15ce4d70c3f9ddf3e4413e68e2ff0c4811
您也可以简单地将该行复制到 .meteor/cordova-plugins 文件中,不带“meteor add cordova”前缀,然后为 ios/android 重新运行。
原答案
要将 3rd 方 cordova 插件添加到尚未在 plugins.cordova.io 注册表中的 meteor ,以下方法应该始终有效:
例如,添加 https://github.com/EddyVerbruggen/cordova-plugin-actionsheet
(分解)
- meteor 加 Cordova :
- nl.x-services.plugins.actionsheet (从 github 的 plugin.xml 文件中获取这个 id)
- @ https://github.com/EddyVerbruggen/cordova-plugin-actionsheet (git repo)
- /tarball (只是关键字)
- /62536f9ee22bfbb8a22ae364d2aaa58bd38e5eb0 (从 github 顶部最新提交旁边的“复制 SHA”小图标获取)
所以这里的完整行:
meteor add cordova:nl.x-services.plugins.actionsheet@https://github.com/EddyVerbruggen/cordova-plugin-actionsheet/tarball/62536f9ee22bfbb8a22ae364d2aaa58bd38e5eb0
添加插件:https://github.com/ArchieGoodwin/SilentShot
meteor 添加cordova:biz.incoding.silentshot@https://github.com/ArchieGoodwin/SilentShot/tarball/d123cd881bb211d89c6402d317bfdd3b6302d66b
关于cordova - 如何添加尚未在 plugins.cordova.io 上注册的 cordova 插件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26624649/