To quasar / android compilation, what is the path of the icons?



  • Good morning,
    I want to add an icon to my android app so I added icons with this path :
    src-cordova/res/icon/android/mipmap-ldpi/ic_launcher.png
    src-cordova/res/icon/android/mipmap-mdpi/ic_launcher.png
    src-cordova/res/icon/android/mipmap-hdpi/ic_launcher.png
    src-cordova/res/icon/android/mipmap-xhdpi/ic_launcher.png
    src-cordova/res/icon/android/mipmap-xxhdpi/ic_launcher.png
    src-cordova/res/icon/android/mipmap-xxxhdpi/ic_launcher.png

    In the /src-cordova/config.xml file I added :

    <platform name="android">
        <allow-intent href="market:*" />
        <icon density="ldpi" src="src-cordova/res/icon/android/mipmap-ldpi/ic_launcher.png" />
        <icon density="mdpi" src="src-cordova/res/icon/android/mipmap-mdpi/ic_launcher.png" />
        <icon density="hdpi" src="src-cordova/res/icon/android/mipmap-hdpi/ic_launcher.png" />
        <icon density="xhdpi" src="src-cordova/res/icon/android/mipmap-xhdpi/ic_launcher.png" />
        <icon density="xxhdpi" src="src-cordova/res/icon/android/mipmap-xxhdpi/ic_launcher.png" />
        <icon density="xxxhdpi" src="src-cordova/res/icon/android/mipmap-xxxhdpi/ic_launcher.png" />
    </platform>
    

    or

    <platform name="android">
        <allow-intent href="market:*" />
        <icon density="ldpi" src="res/icon/android/mipmap-ldpi/ic_launcher.png" />
        <icon density="mdpi" src="res/icon/android/mipmap-mdpi/ic_launcher.png" />
        <icon density="hdpi" src="res/icon/android/mipmap-hdpi/ic_launcher.png" />
        <icon density="xhdpi" src="res/icon/android/mipmap-xhdpi/ic_launcher.png" />
        <icon density="xxhdpi" src="res/icon/android/mipmap-xxhdpi/ic_launcher.png" />
        <icon density="xxxhdpi" src="res/icon/android/mipmap-xxxhdpi/ic_launcher.png" />
    </platform>
    

    But nothing works. I always make mistakes:

    UnhandledPromiseRejectionWarning: Error: Source path does not exist: src-cordova/res/icon/android/mipmap-hdpi/ic_launcher.png

    ou

    UnhandledPromiseRejectionWarning: Error: Source path does not exist: res/icon/android/mipmap-hdpi/ic_launcher.png


  • Admin

    This is a question for the Cordova folks.
    Note that we are working on @quasar/icon-factory which will automatically generate all icons and config for you 😉