NativeScript / NativeScript/nativescript-cli

tns resources generate makes some of the new generated resources with different dimensions

Đang mở
#3,509 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

bug resources generation
Ngôn ngữ chính
JavaScript
Star
1.1k
Fork
204
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
8

Mô tả

Please, provide the details below:

Tell us about the problem

After running tns resources generate icons/splaseh and comparing the "old" and "new" icons, logos etc. note that there are differences in some images dimensions'

Which platform(s) does your issue occur on?

Both

Please provide the following version numbers that your issue occurs with:
  • CLI: 4.0.0-2018-03-29-11322
Please tell us how to recreate the issue in as much detail as possible.
  1. Create app
  2. Run tns resources generate icons <Path to image> and tns resources generate splashes <Path to image> -- background

Here's a list with the resources with different width and height from the default resources:

  • ../App_Resources/Android/drawable-hdpi/logo.png
  • ../App_Resources/Android/drawable-ldpi/logo.png
  • ../App_Resources/Android/drawable-mdpi/logo.png
  • ../App_Resources/Android/drawable-xhdpi/logo.png
  • ../App_Resources/Android/drawable-xxhdpi/logo.png
  • ../App_Resources/Android/drawable-xxhdpi/background.png
  • ../App_Resources/Android/drawable-xxxhdpi/logo.png
  • ../App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png
  • ../App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách tái tạo các lệnh tns resources generate được liệt kê cho biểu tượng và màn hình splash, sau đó so sánh các tệp được tạo trong App_Resources/AndroidApp_Resources/iOS/Assets.xcassets/LaunchImage.launchimage với các tài nguyên mặc định. Công việc được coi là hoàn tất khi các hình ảnh được tạo được liệt kê có kích thước khớp với mong đợi trên cả hai nền tảng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
android, ios, javascript
Lĩnh vực
cli, mobile-dev
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.