NativeScript / NativeScript/nativescript-cli
Feature request—support Android 8’s adaptive icons
未关闭
还没有人认领这个 Issue。
feature
os: android
resources generation
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
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.

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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪 NativeScript CLI 中的 tns resources generate icons 命令及其 Android 资源生成路径。确认当前如何处理纯色背景的图标,然后验证该命令是否会生成具有预期 OEM 形状行为的 Android 8 自适应图标。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, javascript
- 领域
- cli, mobile
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100