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

"cordova build" - bad handling of resources (icons, splash screens)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 3.0.0
    • None
    • cordova-cli
    • None

    Description

      Steps to reproduce:
      > cordova create pgtest com.example.hello "App"
      > cd pgtest
      > cordova platform add android
      > cordova build android

      Resulting app has almost 8MB. The problem is, that "www/res" folder, which contains icons and splashscreens is completely copied into assets/www. So the resulting app contains splash screens for all possible mobile platforms, which is completely useless. Res folder should not be copied at all, because right place for resources is res/drawable.

      BTW I tried the same commands with phonegap. Resulting app is significantly smaller (1.7MB) but it also contains unnecessary resources in www/res.

      Still not understand what is the difference between "phonegap local build" and "cordova build"

      Attachments

        Issue Links

          Activity

            People

              filmaj Filip Maj
              jbecicka2 Jan Becicka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: