`config.xml` gets an update!!

  • 1
  • Idea
  • Updated 5 years ago
The most recent blog post is entitiled

config.xml gets an update
http://phonegap.com/blog/2015/11/17/config_xml_update

What's New

  • <Platform> tag - The platform tag, note the missing xml optional namespace, is now obeyed on Build.
  • Platform Specific Preferences - like version and orientation
  • Splashscreens and Icons -Splashscreen and icons can now be used without the gap namespace as well.


THE BIGGEST PART

The platform tag has the same powers as gap:platform in that if a platform is missing it will not be built. If your config has no gap:platform or platform tags then all platforms will be built.


This update will fix many things and break many things. READ THE BLOG!
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes

Posted 5 years ago

  • 1
Photo of Brett

Brett, OFFICIAL REP

  • 547 Posts
  • 54 Reply Likes
yeah we talked about this internally for a while. basically we want cordova-cli and build to converge and be able to use either as a drop in if one is not available. i know the platform tag doesn't have this superpower (toggling platform building) in the cli but including platform specific preferences and image assets seemed to be worth screwing inconveniencing advanced users who are using the cli locally and then throwing the config.xml up to build.

our next step is updating build to include the <plugin name="cordova-plugin-whitelist" spec-"1" /> format as used in the "cordova plugin --save --skrinkwrap" which will cause issues like this as well.
Photo of Brett

Brett, OFFICIAL REP

  • 547 Posts
  • 54 Reply Likes
i also recommend trolling me on twitter at @brettrudd if an issue like this pops up again.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
Okay, you are #20 I'm following. I've got 20 followers.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
Okay I just tested this. BOTH WORK when applied to config.xml.

HAS gap:

<gap:platform name="ios" />
<gap:platform name="android" />
<gap:platform name="winphone" />

does NOT HAVE

<platform name="ios" />
<platform name="android" />
<platform name="winphone" />


https://build.phonegap.com/apps/1765133/share
CODE:
https://github.com/jessemonroy650/phonegap-start