NativeScript / NativeScript/nativescript-cli

tns resources generate needs dummy png for Android

Open
#5,092 1 comment 0 reactions 1 assignee View on GitHub

@KristianDD is already working on this.

Since Oct 21, 2019.

Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 6.0.2
  • Cross-platform modules:
  • Android Runtime: 6.0.0
  • iOS Runtime: 6.0.1
  • Plugin(s):

Describe the bug

When running tns resources generate <icons | splashes> I seem to need a stub/dummy version of the resource already in the AppResources folder. But this is only true for my Android build. That is, I need to not only have all the *drawable_dpi folders but they all have ta have a file called icon.png if runing icons and one called logo.png if running splashes. If the file is there it will overwrite it with the new value, if the file is not there it does nothing. Shouldn't it create the file? I have a script that copies over a template App_Resources file and then runs these commands. It would be nice to not have to include dummy versions of all these files in my template directory.

To Reproduce
Run tns resources generate icons <icon.png> on an empty App_Resources/Android directory.

Expected behavior

Auto-creation of directories and files.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.