trapeze icon indicating copy to clipboard operation
trapeze copied to clipboard

Add asset/icon management

Open mlynch opened this issue 3 years ago • 2 comments

I think the work I did on @ionic-team/capacitor-assets should be merged into Trapeze instead since the tasks of managing assets is in scope for Trapeze. https://github.com/ionic-team/capacitor-assets/issues/291

mlynch avatar Sep 14 '22 19:09 mlynch

I agree. I came here looking for an example of the configuration snippet that would copy a generated launcher icons set to the android configuration. Kind of like

      - path: drawable
        file: icon.png
        source: ./public/assets/icon/icon.png

but instead of one file there would be a folder of drawables generated by Android Asset Studio

If my undertsanding of the flow you suggest is correct, then trapeze would have a command to take the same SVG file that I fed into Android Asset Studio, and extra parameters for the colors, and styling enum and a bit more, and generate ic_launcher drawables, but instead of downloading them, would place it in the android/app/src/main/assets direclty.

That would be a good shortcut.

I however would still appreciate a configuration exmaple for copying the whole folder. It is because sometimes one want to interfere in the process of generating the drawables, maybe using other tools, e.g. multiple colors.

michaelkariv avatar Sep 21 '22 17:09 michaelkariv

This is what capacitor-assets does, though it's a bit more opinionated for Capacitor projects, but it might work fine for the broader set of projects that Trapeze supports https://github.com/ionic-team/capacitor-assets

mlynch avatar Nov 11 '22 19:11 mlynch