NativeScript / NativeScript/nativescript-cli

Feature request—support Android 8’s adaptive icons

未關閉
#3,697 2 則留言 21 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 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.

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

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。