NativeScript / NativeScript/nativescript-cli

Android: install apk corresponding to abi

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

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

feature os: android performance
主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
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)

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

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

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