Hi,
In the PhoneGap documentation for Android it is said that to use a Plugin one would need 3 things:
1. The correponding java/jar installed
2. The corresponding plugin javascript installed and linked
3. A corresponding "plugin.xml" file placed in the /res/xml folder
Is it so that the PhoneGap APIs listed in the site are built-in i.e. they come with the phonegap.jar and phonegap.js with the regular distribution? When I search in the phonegap.js (0.9.6) I see code for the accelerometer etc. so I assume everything is there. But the "plugins.xml" did not come with the PhoneGap 0.9.6 so that made me wonder. On the other hand, plugins.xml came with PhoneGap 1.0.0rc2.
And for PhoneGap Build:
This makes me also wonder how this is managed in PhoneGap build as there are no means on the developer side to state which APIs he is using by including a "plugins.xml" file. The one only thing that the developer can/must do is implement the particular code for the API he intends to use in his included javascript. If he would like to use a "third" party plugin with PhonGap Build it becomes even more "confusing" as he would need to include java/jar and the plugin.xml file where actually there are no provisions to do so.
Anybody?
/Ralf
In the PhoneGap documentation for Android it is said that to use a Plugin one would need 3 things:
1. The correponding java/jar installed
2. The corresponding plugin javascript installed and linked
3. A corresponding "plugin.xml" file placed in the /res/xml folder
Is it so that the PhoneGap APIs listed in the site are built-in i.e. they come with the phonegap.jar and phonegap.js with the regular distribution? When I search in the phonegap.js (0.9.6) I see code for the accelerometer etc. so I assume everything is there. But the "plugins.xml" did not come with the PhoneGap 0.9.6 so that made me wonder. On the other hand, plugins.xml came with PhoneGap 1.0.0rc2.
And for PhoneGap Build:
This makes me also wonder how this is managed in PhoneGap build as there are no means on the developer side to state which APIs he is using by including a "plugins.xml" file. The one only thing that the developer can/must do is implement the particular code for the API he intends to use in his included javascript. If he would like to use a "third" party plugin with PhonGap Build it becomes even more "confusing" as he would need to include java/jar and the plugin.xml file where actually there are no provisions to do so.
Anybody?
/Ralf

