NativeScript / NativeScript/nativescript-cli

tns resources generate makes some of the new generated resources with different dimensions

未关闭
#3,509 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug resources generation
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

Please, provide the details below:

Tell us about the problem

After running tns resources generate icons/splaseh and comparing the "old" and "new" icons, logos etc. note that there are differences in some images dimensions'

Which platform(s) does your issue occur on?

Both

Please provide the following version numbers that your issue occurs with:
  • CLI: 4.0.0-2018-03-29-11322
Please tell us how to recreate the issue in as much detail as possible.
  1. Create app
  2. Run tns resources generate icons <Path to image> and tns resources generate splashes <Path to image> -- background

Here's a list with the resources with different width and height from the default resources:

  • ../App_Resources/Android/drawable-hdpi/logo.png
  • ../App_Resources/Android/drawable-ldpi/logo.png
  • ../App_Resources/Android/drawable-mdpi/logo.png
  • ../App_Resources/Android/drawable-xhdpi/logo.png
  • ../App_Resources/Android/drawable-xxhdpi/logo.png
  • ../App_Resources/Android/drawable-xxhdpi/background.png
  • ../App_Resources/Android/drawable-xxxhdpi/logo.png
  • ../App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png
  • ../App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先复现所列出的用于图标和启动画面的 tns resources generate 命令,然后将 App_Resources/AndroidApp_Resources/iOS/Assets.xcassets/LaunchImage.launchimage 下生成的文件与默认资源进行比较。当所列生成图像在两个平台上都具有预期的匹配尺寸时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
android, ios, javascript
领域
cli, mobile-dev
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。