NativeScript / NativeScript/android

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

オープン
#1,837 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
C++
スター
563
フォーク
144
平均マージ
10時間 46分
マージ済み PR(30日)
14

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、framework/app/libs/runtime-libs 配下の3つの AAR ファイルと、それらが NativeScript Android npm package からどのように参照されているかを調査します。@nativescript/types-android を含め、各 runtime variant が必要かどうかを判断し、サポート対象の Android ビルドや yarn zero-install packaging を壊すことなく package size を削減できた状態を完了と定義します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, javascript
領域
build-system, mobile
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。