Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phonegap 2.0 project setup without native SDK

I'm attempting to build my first phonegap application using the phonegap build cloud compiler. In the instructions there it says to remove phonegap.js before uploading... Where is this mystery file? I downloaded the latest phonegap and nothing in the /Libs/ looks right. There seems to be no documentation on how to setup your root HTML page properly to be compiled with phonegap.

"Once you've included the necessary assets, remove the phonegap.js (cordova.js) as Build will automatically inject it during compile time." - https://build.phonegap.com/docs/preparing-your-app#what_do_i_upload

I'm under the impression that I just need to use the JS API for code completion and then let the cloud compiler do its work, but all the documentation revolves around installing an SDK for each platform. I don't want to use xCode or eclipse-- I just want to write javascript.

What is the bare minimum resources I need to include on my root HTML file?

like image 749
FlavorScape Avatar asked Jul 23 '26 16:07

FlavorScape


1 Answers

What is the bare minimum resources I need to include on my root HTML file?

You need just 2 files: index.html (may be the name "index.html" is configurable in the config.xml, I am not sure) and config.xml.

Here is a starter app: https://github.com/phonegap/phonegap-start, take a look in the www folder.

like image 57
SM79 Avatar answered Jul 25 '26 07:07

SM79



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!