如何添加在plugins.cordova.io没有注册的cordova插件? [英] How to add cordova plug that haven't registration on plugins.cordova.io?

查看:132
本文介绍了如何添加在plugins.cordova.io没有注册的cordova插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

像这些插件



https:// github。 com / ArchieGoodwin / SilentShot



https:/ /github.com/alongubkin/phonertc



他们没有tarball网址

  cordova插件添加https://github.com/alongubkin/phonertc.git 

我如何添加这样的插件?

  meteor add cordova:@https://github.com/alongubkin /phonertc.git 


解决方案

更新

这适用于Meteor 1.2和1.3-beta版:

meteor add cordova:pluginID @ gitUrl#commithash



对于操作表插件:

meteor add cordova:cordova-plugin-actionsheet @ https://github.com/EddyVerbruggen /cordova-plugin-actionsheet.git#b93aef15ce4d70c3f9ddf3e4413e68e2ff0c4811



您也可以简单地复制.meteor / cordova-plugins文件中的行,

br>
要添加第三方cordova插件到meteor,这些插件不在plugins.cordova.io注册表中,以下方法应该始终可用:
例如,要添加 https://github.com/EddyVerbruggen/cordova-plugin-actionsheet



(打破)





这里完整的一行:

  meteor add cordova:nl.x-services.plugins.actionsheet@https://github.com/EddyVerbruggen/cordova-plugin-actionsheet/tarball/62536f9ee22bfbb8a22ae364d2aaa58bd38e5eb0 

要添加插件: https:// github。 com / ArchieGoodwin / SilentShot



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


like these plugin

https://github.com/ArchieGoodwin/SilentShot

https://github.com/alongubkin/phonertc

they don't have a tarball url

cordova plugin add https://github.com/alongubkin/phonertc.git

how do i add plugin like this ?

meteor add cordova:@https://github.com/alongubkin/phonertc.git

解决方案

Update
This works in Meteor 1.2 and 1.3-beta:
meteor add cordova:pluginID@gitUrl#commithash

So for the actionsheet plugin:
meteor add cordova:cordova-plugin-actionsheet@https://github.com/EddyVerbruggen/cordova-plugin-actionsheet.git#b93aef15ce4d70c3f9ddf3e4413e68e2ff0c4811

You could also simply copy that line in .meteor/cordova-plugins file without the 'meteor add cordova' prefix and re-run for ios/android.


Original answer
For adding 3rd party cordova plugins to meteor which are not in the plugins.cordova.io registry yet, the below method should always work: For example, to add https://github.com/EddyVerbruggen/cordova-plugin-actionsheet

(breaking it down)

  • meteor add cordova:
  • nl.x-services.plugins.actionsheet (take this id from the plugin.xml file in github)
  • @https://github.com/EddyVerbruggen/cordova-plugin-actionsheet (git repo)
  • /tarball (just the keyword)
  • /62536f9ee22bfbb8a22ae364d2aaa58bd38e5eb0 (get this from the little "Copy SHA" icon next to latest commit at the top in github)

So the complete line here:

meteor add cordova:nl.x-services.plugins.actionsheet@https://github.com/EddyVerbruggen/cordova-plugin-actionsheet/tarball/62536f9ee22bfbb8a22ae364d2aaa58bd38e5eb0

For adding plugin: https://github.com/ArchieGoodwin/SilentShot

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

这篇关于如何添加在plugins.cordova.io没有注册的cordova插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆