Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I upgrade Phonegap in my Phonegap app?

Tags:

cordova

I have a Phonegap app that I started with an earlier version of Phonegap, that I want to upgrade to the latest version. What steps do I take to upgrade it?

I'm shooting for a general answer, but my specific case is Phonegap 1.1.0 -> 1.2.0

like image 633
nmr Avatar asked Nov 16 '11 19:11

nmr


2 Answers

I found this tonight and it seems more straightforward. See http://phonegap.com/blog/2013/11/28/phonegap-320-released/

How to Upgrade PhoneGap

Mac and Linux:

$ sudo npm install -g phonegap

Windows:

C:\> npm install -g phonegap

How to Upgrade an App

$ cd path/to/my-app
$ phonegap platform update android

You can substitute android for any platform name.

like image 129
zkent Avatar answered Nov 16 '22 03:11

zkent


Depends on the platform. For Android you just need to replace your .jar/.js files with the 1.2 versions and update the script tag to refer to the phonegap-1.2.0.js file.

like image 34
Simon MacDonald Avatar answered Nov 16 '22 03:11

Simon MacDonald