質問

I'm just wondering how to install ChildBrowser on PhoneGap 3.3.0 (Build)... ChildBrowser was updated last week to support the latest PhoneGap but I don't know how to install it. I previously had it working with PhoneGap 2.3.0 but I'm starting fresh with 3.3.0. Using Terminal I've tried running this:

phonegap plugin add https://github.com/phonegap-build/ChildBrowser

I have to delete the com.phonegap.plugins.childbrowser folder each time beforehand to make sure it doesn't skip downloading any files. When I run that plugin add command, it tells me this:

Plugin doesn't support this project's cordova version. cordova: 3.3.0, failed version requirement: <=2.9.0

...Which makes sense because the plugin.xml file has that stipulation (here, line 17), but according to this post, ChildBrowser now supports PhoneGap 3.3.0. The plugin.xml file was updated 6 or 7 days ago, around the same time as that post, so I don't understand what's wrong.

Thanks in advance!

役に立ちましたか?

解決

try this:

phonegap plugin add https://github.com/phonegap-build/ChildBrowser#f4d5ef2ed6f35da0af8a819f30edcd53e6877770

UPDATE: I just tested again with the above command. It still works. I am very new to git so I might be wrong in this explanation... I found that the most updated version of this plugin is not the master branch. Then I proceeded to get the "hash" (or tag?) of the most updated branch from the url of github (which is "f4d5ef2ed6f35da0af8a819f30edcd53e6877770"). Because I wanted to download that particular version for my local build. After digging from the internet, I found that I could put append "#f4d5ef2ed6f35da0af8a819f30edcd53e6877770" (note: with that "#" in the beginning) in the url for the command. Then it worked.

If someone tries to build it with phonegap's cloud service, it's okay to just include this tag in config.xml

<gap:plugin name="com.phonegap.plugins.childbrowser" />

which you can find in the docs.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top