NativeScript / NativeScript/android

Question about necessity of multiple AAR files in npm package - impacting yarn zero installs

Đang mở
#1,837 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.

Ngôn ngữ chính
C++
Star
563
Fork
144
Merge trung bình
10 giờ 46 phút
Pull request đã merge (30 ngày)
14

Mô tả

I'm using yarn zero installs and need to store npm packages compressed in the repository. However, the NativeScript Android npm package contains three large AAR files that are causing issues with GitHub's 100MB upload limit:

  • framework/app/libs/runtime-libs/nativescript-optimized-with-inspector.aar (~32MB)
  • framework/app/libs/runtime-libs/nativescript-optimized.aar (~30MB)
  • framework/app/libs/runtime-libs/nativescript-regular.aar (~32MB)

Together with all other files these exceed the 100MB limit, making it impossible to commit the compressed packages to the repository.

Question: Are all three of these AAR files actually necessary? Could some of them be made optional or combined to reduce the package size for users who want to use yarn zero installs?

This would greatly help developers who need to maintain reproducible builds with yarn zero installs but are hitting the repository size limits due to these large runtime files.

Another affected NPM package is @nativescript/types-android.

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 kiểm tra ba tệp AAR trong framework/app/libs/runtime-libs và cách chúng được NativeScript Android npm package tham chiếu. Xác định xem có cần từng runtime variant hay không, bao gồm cả đối với @nativescript/types-android, và xác định công việc hoàn tất khi giảm được package size mà không làm hỏng các Android build được hỗ trợ hoặc yarn zero-install packaging.

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, javascript
Lĩnh vực
build-system, mobile
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/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.