PhoneGap/Cordova Plugin Template
This is a simple directory structure, and set of build scripts to make creating an Android Plugin for PhoneGap/Cordova easier.
Using the Template
- Change package.name variable in build.xml and android/build.xml to be the name of your project
- Drop your plugin source into android/src/
- Update android/lib/cordova-VERSION.jar if it is out of date
- Set VERSION to hold the version number of your project
- Update the README
Building your project
Add a local.settings file to the android/ directory that contains an sdk.dir that points to your Android SDK directory.
ant dist, that will create a dist directory with a jar, and a js file of your plugin.