NativeScript / NativeScript/nativescript-cli
tns resources generate splashes are the wrong size
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 204
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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