NativeScript / NativeScript/android
Question about necessity of multiple AAR files in npm package - impacting yarn zero installs
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 563
- 派生
- 144
- 平均合并
- 10 小时 46 分钟
- 30 天内合并 PR
- 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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查 framework/app/libs/runtime-libs 下的三个 AAR 文件,以及 NativeScript Android npm package 如何引用它们。确定是否需要每个 runtime variant,包括 @nativescript/types-android 所需的 variant,并将“在不破坏受支持的 Android 构建或 yarn zero-install packaging 的情况下减小 package size”定义为完成标准。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, javascript
- 领域
- build-system, mobile
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100