NativeScript / NativeScript/nativescript-cli
Android: install apk corresponding to abi
未关闭
还没有人认领这个 Issue。
feature
os: android
performance
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
Right now if an app is using split abi the cli will install the "latest" apk in the output folder. It ends up always being the universal one.
What would be great would be for the cli to install the apk corresponding to the device abi if it exists.
we can get the connected device abi with adb shell getprop ro.product.cpu.abi
That way:
- install would be faster as the apk would much smaller
- it would take less space on the device (which gets important on emulators)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪 CLI 安装流程,并查找它在输出文件夹中选择最新 APK 的位置。使用 adb shell getprop ro.product.cpu.abi 检查已连接设备的 ABI,然后确定在有可用的 ABI 专用 APK 时如何选择它,同时保留通用 APK 回退方案。完成的标准是,split-ABI 安装使用匹配的较小 APK,其他安装仍然能够正常工作。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, javascript
- 领域
- cli, mobile
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100