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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.0
    • 3.2.0
    • cordova-cli
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: