Feature request—support Android 8’s adaptive icons

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

还没有人认领这个 Issue。

评估

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

调研方向

首先跟踪 NativeScript CLI 中的 tns resources generate icons 命令及其 Android 资源生成路径。确认当前如何处理纯色背景的图标,然后验证该命令是否会生成具有预期 OEM 形状行为的 Android 8 自适应图标。

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

描述

feature os: android resources generation
Tell us about the problem

Android 8 has the concept of adaptive icons, which is some crazy way of having app icons be either circles or squares based on OEM.

Currently the {N} CLI doesn’t appear to support this concept, as currently, if you just run tns resources generate icons with a solid-background-color icon, you end up with something like this.

screen shot 2018-06-20 at 2 35 19 pm

This issue is a feature request for us to generate adaptive icons using tns resources generate icons.

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:
  • CLI: 4.1
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

贡献指南

打开贡献指南

从这里开始

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

NativeScript/nativescript-cli 的其他 Issue

查看 NativeScript/nativescript-cli 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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