Sample Phonegap Plugin Structure (Android)

58 views
Skip to first unread message

B@ron

unread,
Jul 19, 2011, 3:28:05 AM7/19/11
to phonegap
Dears,

Just to tell everybody that the working structure for Android project
using phonegap plugins is well the following:

/assets/plugins/*.zip (the plugin zip file structured as defined on
Phonegap Wiki: http://wiki.phonegap.com/w/page/31961291/Planning:-Plugin-Packaging)

/res/xml/plugins.xml:

<?xml version="1.0" encoding="UTF-8"?>

<plugins>
<plugin name="App" value="com.phonegap.App"/>
<plugin name="Geolocation" value="com.phonegap.GeoBroker"/>
<plugin name="Device" value="com.phonegap.Device"/>
<plugin name="Accelerometer" value="com.phonegap.AccelListener"/>
<plugin name="Compass" value="com.phonegap.CompassListener"/>
<plugin name="Media" value="com.phonegap.AudioHandler"/>
<plugin name="Camera" value="com.phonegap.CameraLauncher"/>
<plugin name="Contacts" value="com.phonegap.ContactManager"/>
<plugin name="Crypto" value="com.phonegap.CryptoHandler"/>
<plugin name="File" value="com.phonegap.FileUtils"/>
<plugin name="Location" value="com.phonegap.GeoBroker"/>
<plugin name="Network Status" value="com.phonegap.NetworkManager"/
>
<plugin name="Notification" value="com.phonegap.Notification"/>
<plugin name="Storage" value="com.phonegap.Storage"/>
<plugin name="Temperature" value="com.phonegap.TempListener"/>
<plugin name="FileTransfer" value="com.phonegap.FileTransfer"/>
<plugin name="Capture" value="com.phonegap.Capture"/>
<!-- Custom Made plugin -->
<plugin name="FtpClient"
value="com.phonegap.plugins.ftpclient.FtpClient"/>
</plugins>

If you do not use such approach with Phonegap 1.0.0rc1 the you will
experience "class not found" error messages.
Regards,
Thibaut de Sany (http://thibaut.desany.eu)
Reply all
Reply to author
Forward
0 new messages