First cd into the project that you just created. Your project will contain,
- config.xml : It contains configurations related to the project. It follows the W3C widget specification and allows you to specify metadata about your applications easily.
- config.xml allows you to specify Cordova plugins to be used and platform specific configurations as well.
<widget>
config.xml needs to have certain essential properties, let's see what are those.
The <widget> element is the root of config.xml document. It lets PhoneGap Build know that the project is following the W3C specification.
It has the following attributes:
- id: is the unique identifier for your application. It is recommended that it should be a reverse-domain name style (e.g. com.yourcompany.yourapp) to support all platforms.
- version: This specifies the application version.
- versionCode: (optional) This is specific to Android.
config.xml has the following children properties under <widget>.
- <name>: Specifies the name of the application.
- <description>: String description of your application.
- <author>: Author's name.
- <platform>: You can have zero or more of these tags in config.xml. You can set the name attribute to android, ios or windows. If you specify none, all platforms will be built.