如何在plugins.cordova.io上添加未注册的cordova插件?

cra*_*ngs 3 cordova meteor

喜欢这些插件

https://github.com/ArchieGoodwin/SilentShot

https://github.com/alongubkin/phonertc

他们没有tarball网址

cordova plugin add https://github.com/alongubkin/phonertc.git
Run Code Online (Sandbox Code Playgroud)

我该如何添加这样的插件?

meteor add cordova:@https://github.com/alongubkin/phonertc.git
Run Code Online (Sandbox Code Playgroud)

ins*_*inc 10

更新
这适用于Meteor 1.2和1.3-beta:
meteor add cordova:pluginID@gitUrl#commithash

所以对于actionsheet插件:
meteor add cordova:cordova-plugin-actionsheet@https://github.com/EddyVerbruggen/cordova-plugin-actionsheet.git#b93aef15ce4d70c3f9ddf3e4413e68e2ff0c4811

您也可以简单地在.meteor/cordova-plugins文件中复制该行而不使用'meteor add cordova'前缀并重新运行ios/android.


原始答案
为了将第三方cordova插件添加到不在plugins.cordova.io注册表中的meteor,下面的方法应该始终有效:例如,添加https://github.com/EddyVerbruggen/cordova-plugin-actionsheet

(打破它)

  • 流星添加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
Run Code Online (Sandbox Code Playgroud)

添加插件:https://github.com/ArchieGoodwin/SilentShot

meteor add cordova:biz.incoding.silentshot@https://github.com/ArchieGoodwin/SilentShot/tarball/d123cd881bb211d89c6402d317bfdd3b6302d66b