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

Why are non-android resources included in platforms/android assets folder?

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.2.0
    • Component/s: cordova-cli
    • Labels:
      None
    • Environment:

      Windows

      Description

      The online guide http://cordova.apache.org/docs/en/edge/config_ref_images.md.html says

      When working in the CLI, icon source files are located within various platform-specific subdirectories within the project's www/res/icons directory. Newly created projects come with a default set of Cordova icons for you to replace for the platforms you wish to target.

      OK.

      But if I've only added the android platform to my CLI project then why would I want non-android resources copied into my platforms/android/assets/www/res folder?

      For example,

      D:\IMAPS\peter>cordova create myapp com.peter myapp
      
      D:\IMAPS\peter>cd myapp
      
      D:\IMAPS\peter\myapp>cordova platform add android
      
      D:\IMAPS\peter\myapp>tree platforms/android/assets/www/res
      Folder PATH listing
      Volume serial number is AAB8-3216
      D:\IMAPS\PETER\MYAPP\PLATFORMS\ANDROID\ASSETS\WWW\RES
      +---icon
      ¦   +---android
      ¦   +---bada
      ¦   +---bada-wac
      ¦   +---blackberry
      ¦   +---blackberry10
      ¦   +---ios
      ¦   +---tizen
      ¦   +---webos
      ¦   +---windows-phone
      +---screen
          +---android
          +---bada
          +---bada-wac
          +---blackberry
          +---blackberry10
          +---ios
          +---tizen
          +---webos
          +---windows-phone
      
      D:\IMAPS\peter\myapp>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                agrieve Andrew Grieve
                Reporter:
                dinglemouse Peter
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: