Code Monkey home page Code Monkey logo

Comments (6)

augustoabreu avatar augustoabreu commented on August 10, 2024 1

Maybe specify the file name too? I've used cordova-icon to generate notification icon for Android, but had to rename all generated images.

from cordova-icon.

tomchiverton avatar tomchiverton commented on August 10, 2024

Same here.

from cordova-icon.

ivywireline avatar ivywireline commented on August 10, 2024

Same here. The iOS icons are being generated in the wrong folder as of the latest Cordova version. It should be in Resources/icons instead of Images.xcassets. Adding this option will help in case the folder path changes again in the future cordova versions.

from cordova-icon.

nexorianus avatar nexorianus commented on August 10, 2024

I would only like to be able to specify the platform.
File names and folder structures should be handled by this tool and it beeing kept up-to-date with cordova

from cordova-icon.

alexkander avatar alexkander commented on August 10, 2024

Hi everyone, I made a pullrequest which it can do this. [https://github.com//pull/130](pull request 130).

$ cordova-icon --iconspath=platforms/android/res/ --platforms=android
$ cordova-icon --platforms=ios:windows

I hope it helps, regards

from cordova-icon.

farrisbar avatar farrisbar commented on August 10, 2024

Another way to address this is to only generate for the platform targeted by the cordova prepare command. For example:
cordova prepare ios ==> should only generate icons for ios
cordova prepare android ==> should only generate icons for andriod
cordova prepare ==> generates for both ios and android.

This can be fixed with a single line update to index.js (for each platform, android example below):
isAdded : fs.existsSync('platforms/android') && process.env.CORDOVA_PLATFORMS.includes('android')

I do not have time right now to put this in a pull request, but I have tested this in my local installation.

from cordova-icon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.