I am reading this like to configure my PC. In the section 5
The blackberry directory contains two directories, sample and www. The sample folder contains a complete Cordova project. Copy the sample folder to another location on your computer.
I have downloaded latest phonegap from here. It does not contain any folder like sample and www.
How can I do it???
If you look at the guide you are reading, It's the Guide for installing PhoneGap version 2.3. The latest version of PhoneGap is 3.x+
Download version 2.3 to use with what you're reading.
Related
I need to upgrade my application which is using Cordova 1.8 version to Cordova 2.0 version. I followed the steps mentioned in the http://cordova.apache.org/docs/en/2.8.0/guide_upgrading_ios_index.md.html. My application's running for 1.9 but when am trying to upgrade it to 2.0 version am not able to find 'Preprocessor Macro' in build setting.
Also I am not able to find 'CordovaLib' folder, but in the 10th step they have mentioned related to PreprocessorMacro which am not able to find.
As you main motivation seems to be up to date with the last version of Cordova, I would recommend to create a new clean project with Cordova 2.8 and import your html files in the www folder.
Upgrading version by version is painful and you will not get any benefits from it. However, you might not get any performance improvement but you will get a better support from the community.
I have an app I made a year ago I wish to update. I want to use the latest version of cordova (2.7.0). The existing app runs 1.7.0. Can I simply replace the cordova .js files in my project with the new ones?
I have tried to follow the command line rules of updating a project but I just cannot do it with with my limited knowledge of command line.
Any help would be greatly appreciated! Thanks!
Here is the Upgrade Guide of Cordova (for iOS).
To upgrade a Phonegap's Android project:
phonegap platform update android
Currently i am trying to use latest phonegap package of version 2.3.0 , created the cordova project using create script, this created the cordova project, but its adding whole code of cordova inside the project , this is increasing my code size and may be build size also.My question is where i can find an dmg file to install cordova.how to install cordova using phonegap 2.3.0 package. so that i can use it as framework inside my xcode project, as it was their in below 2.0 versions (phone gap).
since versiĆ³n 2.0 there is no .dmg file or installer for Cordova/Phonegap. The newest zip file you download has several folders that correspond to each platform supported by Phonegap.
Each folder has a "create" file (inside the "bin" folder) that is used to create a mobile platform project (for example: ios/bin/create creates an xcode project).
Phonegap website has a pretty good detailed "Getting started guide" for each platform (http://docs.phonegap.com/en/2.3.0/guide_getting-started_index.md.html). It may look complicated, but it is pretty simple once you tried and succeed :)
There is no better place to start than this website.
I would like to know if anyone has experience in upgrading phonegap. Would like to get some help.
I have an iOS Phonegap-based project that uses phonegap 1.4.1.
I need to update it to the latest version. The latest version is currently 2.2.0
The steps that described in the phone gap document only tells us how to upgrade from one version to the other, but it doesn't help me in upgrade phone gap from a very old version to the latest one.
http://docs.phonegap.com/en/2.2.0/guide_upgrading_ios_index.md.html#Upgrading%20Cordova%20iOS
I can see three BIG changes from 1.4.1 to the latest version.
From 1.4.1 to 1.5.0, PhoneGap.framework has been renamed to Cordova.framework
From 1.9.0 to 2.0.0, Cordova.framework has been removed, instead it uses CordovaLib as a sub-project.
From 2.0.0 to 2.1.0, Automatic Reference Counting (ARC) is introduced to CordovaLib
I am not sure what is the best approach for me to upgrade my old phonegap, I don't feel confident to jump straight from 1.4.1 to 2.2.0, by given the fact that there is no documents/tutorials to follow.
I am thinking to upgrade the phonegap from 1.4.1 to 1.9 first, and then upgrade 1.9.0 to 2.0.0 and to 2.2.0. But it seems a big job.
Please give me some suggestion on it, or is there anyone come across this?
Thanks in advance.
My recommendation is:
Create a totally new project.
Copy your www assets into the new www
Refer to the new cordova .js file in your index.html
Re-add your Plugins (make sure the plugins support the new Cordova version)
Update your Cordova.plist settings to reflect what you want, see the Project Settings on http://docs.cordova.io
Update your whitelist, see the Whitelist Guide on http://docs.cordova.io
It's really depends on how much your app hooks into the phonegap's "native" calls,..
If it's mostly your own codes, I'd just start a new project and copy the html folder over, find and replace the mentions phonegap.js to cordova.js. Chances are, the app will work, if it doesn't, it should be a minor fix.
Or check out https://build.phonegap.com/ - phonegap's cloud base builder.
I tried to update Blackberry JDE plug-in for eclipse from v4.5 to v5.0 Beta 3.
I followed the instructions in this page:
http://na.blackberry.com/eng/developers/devbetasoftware/updatesite.jsp
but unfortunately I got the following error while updating:
An error occurred while collecting
items to be installed. No repository
found containing:
net.rim.eide.feature.componentpack5.0.0/org.eclipse.update.feature/5.0.0.14
How this could be solved ? Any suggestions ?
There is an error with eclipse 1.1 that doesn't sometimes prevents installation from their online repository. But this doesn't seem to be the case with you since it it says no repository found. Maybe the beta versions have a different URL?
I would suggest downloading it to a local disk and installing it from there. The exact procedure is -
What i did was i downloaded BlackBerry JDE Plug-in for Eclipse for JDE 4.7 and 4.5 seperatly and from which you get zip files. Then go to software updates and then to available software. Click on add site button and select archive button. Browse whre have downloaded the Plugin archive and install it. After you have installed all the JDE plugins you will get options for changing the JDE version.
Edit: I just came across this thread, and the method described above might possibly not work - How can I install the BlackBerry v5.0.0 component pack into Eclipse?
Take a look at this thread:
How can I install the BlackBerry v5.0.0 component pack into Eclipse?