nativescript-cli icon indicating copy to clipboard operation
nativescript-cli copied to clipboard

`ns resources generate icons` - cli script update needed to support latest Android vector graphic launchers.

Open LaKing opened this issue 4 years ago • 5 comments

Environment zsh on macOS Catalina 10.15.7

✔ Component nativescript has 8.0.1 version and is up to date. ✔ Component @nativescript/core has 8.0.3 version and is up to date. ✖ Component @nativescript/ios is not installed. ✔ Component @nativescript/android has 8.0.0 version and is up to date.

Describe the bug Created icon.png with 1024x1024 size.

tns resources generate icons ~/icon.png
Generating icons ...
Icons generation completed.

.. however, Android icons did not get created. Even when creating the mipmap icons, they don't get applied and the nativescript icon is associated with the app. No error messages. Splashes are generated correctly.

Expected behavior The launcher icon should be generated from the image.

LaKing avatar May 03 '21 23:05 LaKing

I've managed to create a launcher icon directly from SVG. ...

Here are the steps: Open Android Studio, create a new app. Open the menu on the app folder, New > Vector Asset. Save the vector graphic as ic_*.xml file. Replace /App_Resources/Android/src/main/res/drawable/ic_launcher_foreground.xml with your xml.

A bit hackerish, but it works. ....

LaKing avatar May 04 '21 00:05 LaKing

same error here

vallemar avatar May 19 '21 11:05 vallemar

me too

coolboy0961 avatar Aug 12 '21 05:08 coolboy0961

Same here. Icons are not being created by tns resources.

pierreamgabriel avatar Sep 11 '21 20:09 pierreamgabriel

Any update on this? Or is there an alternative way to generate icons?

joshcomley avatar Feb 23 '22 00:02 joshcomley