We’re introducing two changes to PhoneGap Build: - config.xml files are now a required part of your application, and - deprecation of the already mostly obsolete
<feature> tag. Not the most exciting changes, we admit. Nonetheless, we’ll be deploying these changes on March 7, 2016.
Config.xml Files Now Required
If you’re building apps on PhoneGap Build, you’re probably already including a config.xml file. If not, now you have to. But hey, you should be anyways. In other words: a config.xml file is now a required part of your PhoneGap Build application package.
We’re doing this for a number of reasons, one of which is our ongoing effort to make builds from PGB as similar to local PhoneGap CLI builds as possible. CLI builds require a config.xml, and now Build does too. Additionally we like deleting code almost as much as we like writing it. So this will allow us to do some of that. This also means we’ll be deleting the Configuration section from the app details view in the Build UI.
What do you need to do?
If you don’t already include a config.xml file in your app, please do so. Here’s a bare bones example:
<?xml version='1.0' encoding='utf-8'?> <widget id="com.pgb.brewapp" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="https://phonegap.com/ns/1.0"> <name>PhoneGap Build App</name> <description> This app brews beer. </description> <author email="email@example.com" href="https://phonegap.com"> PhoneGap Team </author> <preference name="phonegap-version" value="cli-6.0.0" /> </widget>
Additionally, if you’re using the Developer API, the following app settings will no longer be configurable via API parameters (in brackets is the config.xml equivalent setting):
- title (name) - package (widget id) - version (widget version) - description (description) - phonegap_version (preference: phonegap-version)
So make sure you’re declaring those fields in your config.xml file. These parameters will continue to be supported through API parameters:
- create_method - tag - debug - private - share - hydrates - keys
Deprecation of the feature tag
Until now PhoneGap Build has accepted the
<feature> tag, which would translate into permissions in the various platform manifest files. However now that core PhoneGap functionality has been moved to plugins (some time ago) which individually manage required permissions, these feature tags have been made obsolete. Thus we’ll be removing support for the tag.
What do you need to do?
Probably nothing, other than delete any
<feature> elements from your config.xml files. One exception may be if you are using a custom debug server like this:
<feature name="debug-server" required="true"> <param name="domain" value="http://debug.custom.com"/> <param name="key" value="some_unique_key"/> </feature>
All this does is inject a custom debug script tag into your html files. You’ll now have to do this yourself, which would look like this (in your html, not your config.xml):
These changes will hopefully reduce confusion on your side, and reduce complexity on ours. If these changes affect you, make sure you complete your transition by March 7, 2016 when we push them out. If you have any feedback, don’t hesitate to ping us on twitter, our support forum, or the comments section below.