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

Android project template has unused files in it

    XMLWordPrintableJSON

    Details

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

      Description

      File list:

      ./AndroidManifest.xml
      ./ant.properties
      ./assets
      ./assets/www
      ./assets/www/cordova.js
      ./assets/www/css
      ./assets/www/css/index.css
      ./assets/www/img
      ./assets/www/img/cordova.png
      ./assets/www/img/logo.png
      ./assets/www/index.html
      ./assets/www/js
      ./assets/www/js/index.js
      ./assets/www/main.js
      ./assets/www/master.css
      ./assets/www/res
      ./assets/www/res/icon
      ./assets/www/res/icon/android
      ./assets/www/res/icon/android/icon-36-ldpi.png
      ./assets/www/res/icon/android/icon-48-mdpi.png
      ./assets/www/res/icon/android/icon-72-hdpi.png
      ./assets/www/res/icon/android/icon-96-xhdpi.png
      ./assets/www/res/screen
      ./assets/www/res/screen/android
      ./assets/www/res/screen/android/screen-hdpi-landscape.png
      ./assets/www/res/screen/android/screen-hdpi-portrait.png
      ./assets/www/res/screen/android/screen-ldpi-landscape.png
      ./assets/www/res/screen/android/screen-ldpi-portrait.png
      ./assets/www/res/screen/android/screen-mdpi-landscape.png
      ./assets/www/res/screen/android/screen-mdpi-portrait.png
      ./assets/www/res/screen/android/screen-xhdpi-landscape.png
      ./assets/www/res/screen/android/screen-xhdpi-portrait.png
      ./assets/www/spec
      ./assets/www/spec/helper.js
      ./assets/www/spec/index.js
      ./assets/www/spec/lib
      ./assets/www/spec/lib/jasmine-1.2.0
      ./assets/www/spec/lib/jasmine-1.2.0/jasmine-html.js
      ./assets/www/spec/lib/jasmine-1.2.0/jasmine.css
      ./assets/www/spec/lib/jasmine-1.2.0/jasmine.js
      ./assets/www/spec/lib/jasmine-1.2.0/MIT.LICENSE
      ./assets/www/spec.html
      ./bin
      ./build.xml
      ./cordova
      ./cordova/build
      ./cordova/check_reqs
      ./cordova/clean
      ./cordova/lib
      ./cordova/lib/appinfo.js
      ./cordova/lib/build.js
      ./cordova/lib/check_reqs.js
      ./cordova/lib/clean.js
      ./cordova/lib/device.js
      ./cordova/lib/emulator.js
      ./cordova/lib/install-device
      ./cordova/lib/install-emulator
      ./cordova/lib/list-devices
      ./cordova/lib/list-emulator-images
      ./cordova/lib/list-started-emulators
      ./cordova/lib/log.js
      ./cordova/lib/run.js
      ./cordova/lib/start-emulator
      ./cordova/log
      ./cordova/node_modules
      ./cordova/node_modules/.bin
      ./cordova/node_modules/.bin/shjs
      ./cordova/node_modules/shelljs
      ./cordova/node_modules/shelljs/.documentup.json
      ./cordova/node_modules/shelljs/.npmignore
      ./cordova/node_modules/shelljs/.travis.yml
      ./cordova/node_modules/shelljs/bin
      ./cordova/node_modules/shelljs/bin/shjs
      ./cordova/node_modules/shelljs/global.js
      ./cordova/node_modules/shelljs/jshint.json
      ./cordova/node_modules/shelljs/LICENSE
      ./cordova/node_modules/shelljs/make.js
      ./cordova/node_modules/shelljs/package.json
      ./cordova/node_modules/shelljs/README.md
      ./cordova/node_modules/shelljs/scripts
      ./cordova/node_modules/shelljs/scripts/docs.js
      ./cordova/node_modules/shelljs/scripts/run-tests.js
      ./cordova/node_modules/shelljs/shell.js
      ./cordova/package.json
      ./cordova/run
      ./cordova/version
      ./libs
      ./libs/cordova-dev.jar
      ./local.properties
      ./proguard-project.txt
      ./project.properties
      ./res
      ./res/drawable
      ./res/drawable/icon.png
      ./res/drawable-hdpi
      ./res/drawable-hdpi/ic_launcher.png
      ./res/drawable-hdpi/icon.png
      ./res/drawable-ldpi
      ./res/drawable-ldpi/ic_launcher.png
      ./res/drawable-ldpi/icon.png
      ./res/drawable-mdpi
      ./res/drawable-mdpi/ic_launcher.png
      ./res/drawable-mdpi/icon.png
      ./res/drawable-xhdpi
      ./res/drawable-xhdpi/ic_launcher.png
      ./res/drawable-xhdpi/icon.png
      ./res/layout
      ./res/layout/main.xml
      ./res/values
      ./res/values/strings.xml
      ./res/xml
      ./res/xml/config.xml
      ./src
      ./src/b
      ./src/b/c
      ./src/b/c/a.java

      Should be removed:

      ./assets/www/res/*
      ./assets/www/spec/*
      ./res/layout/main.xml
      */ic_launcher.png

      ic_launcher and main.xml are put there by the `android create` command. I'd suggest we don't use `android create` when stamping out a project and instead just use our template and run `android update project` after the fact.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: