Upgrading Drawsaur to PhoneGap Cordova 3.3.0

I recently had a request to update one of the plugs used for saving images. Considering I hadn’t worked on the project in 6 months or more I decided to accept the challenge.

It turns out the challenge was more about upgrading the project to work with 3.3 than it was upgrading the plug. You can read the Cordova docs, but basically they’ve changed the way plug-ins work. You now define plug-ins in the config.xml file. In this situation, the ShareImage needed to be placed into this file like this:

    feature name="ShareImage"
param name="android-package" value="org.apache.cordova.ShareImage" /

You can see more about the setup of new 3.3 project on the new branch.

Tagged with: