feat(android): install Android CLI only on demand (setup.sh item 8)

ai-setup.sh no longer installs Google Android CLI or runs android init,
so menu items 1 and 7 (setup / update) leave it alone. The install
block moved verbatim into scripts/android-cli-setup.sh, which menu item
8 now runs instead of the whole ai-setup.sh.

The final summary of ai-setup.sh points to item 8, README describes the
opt-in install, tests check the new script and that ai-setup.sh does
not install Android CLI any more.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Виталий Никитенко
2026-10-21 11:49:53 +07:00
parent 709e144a60
commit c74a435d89
5 changed files with 111 additions and 60 deletions

View File

@@ -179,7 +179,7 @@ bash tests/test_network.sh # полные тесты
## Android CLI
`scripts/ai-setup.sh` также устанавливает [Google Android CLI](https://d.android.com/tools/agents) (preview) - официальный терминальный инструмент для Android-разработки, заточенный под AI-агентов.
[Google Android CLI](https://d.android.com/tools/agents) (preview) - официальный терминальный инструмент для Android-разработки, заточенный под AI-агентов. По умолчанию **не устанавливается**: `scripts/ai-setup.sh` (пункты меню 1 и 7) его не трогает. Ставится только по выбору - `bash setup.sh` → пункт `8) Android CLI` (или напрямую `bash scripts/android-cli-setup.sh`).
Что устанавливается:
- `android` - бинарь CLI в `~/.local/bin/` (или `~/bin` через symlink)
@@ -206,7 +206,7 @@ android update # обновить сам Android CLI
Интеграция с Claude Code:
```bash
# После установки ai-setup.sh выполняется автоматически:
# После установки android-cli-setup.sh выполняется автоматически:
android init
```