NativeScript / NativeScript/nativescript-cli
tns resources generate splashes are the wrong size
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 1.1k
- 分支
- 204
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 8
描述
Environment
Getting NativeScript components versions information...
✔ Component nativescript has 6.8.0 version and is up to date.
✔ Component tns-core-modules has 6.5.15 version and is up to date.
⚠ Update available for component tns-android. Your current version is 6.5.0 and the latest available version is 6.5.3.
⚠ Update available for component tns-ios. Your current version is 6.5.0 and the latest available version is 6.5.2.
Describe the bug
When running tns resources generate splashes image.png the android splash screens are very small.
I tried with different sizes of input image, all corresponding to a scale up of xxxhdpi. Still, very small. Tried with a square image instead of 1920x1080, same result.
To Reproduce
- Create an image, 1920x1080, or anything bigger/smaller
tns resources generate splashes image.png- Go to the Android's xxxhdpi resources folder.
- The image is like 640px
Expected behavior
Images the right size, but I'm really not sure what it's expecting as an input. Bigger files with special names for IOS?
I ended up using http://images.nativescript.rocks/
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先使用回報的影像尺寸重現 tns resources generate splashes image.png,並檢查產生的 Android xxxhdpi 資源。追蹤 splash 產生的 CLI 進入點,以確定輸出尺寸的計算方式。當產生的 splash 影像具有受支援平台所預期的尺寸時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- android, ios, javascript
- 領域
- cli, mobile
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100