Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9419

Icon declaration order matters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 5.1.1
    • None
    • cordova-cli
    • None

    Description

      I'm running the build with CLI 5.1.1 with iOS.

      I'm using the --verbose option so that I can see the execution of the cp command that is used to copy the icons.

      But this is weird because it seems the order of declaration in config.xml matters. In addition, declaring icons without all width/height attributes may "override" the more specific configurations with width/height

      Let's take an example:

      <platform name="ios">
              <icon src="test2.png" />
              <icon src="test4.png" width="40" height="40"/>
              <icon src="test3.png" width="40"/>
      </platform>
      <icon src="test1.png" />
      

      In this case only test1 and test4 images are copied

      But if I use

      <platform name="ios">
              <icon src="test2.png" />
              <icon src="test3.png" width="40"/>
              <icon src="test4.png" width="40" height="40"/>
      </platform>
      <icon src="test1.png" />
      

      Only test1 and test3 are copied

      This seems to be an unexpected and undocumented behavior.

      Related to the problems with icons on Android for the same version:

      https://issues.apache.org/jira/browse/CB-9417

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebastienlorber Sebastien Lorber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: