Skip to content

Add create, delete, update and prune for emulators and the SDK - #24

Merged
wswebcreation merged 1 commit into
mainfrom
ws/manage-emulators-and-sdk
Oct 11, 2026
Merged

wswebcreation merged 1 commit into
mainfrom
ws/manage-emulators-and-sdk

Conversation

@wswebcreation

Copy link
Copy Markdown
Owner

You could start emulators and set up the SDK, but creating a specific one,
cleaning up or keeping things current meant going to Android Studio or
sdkmanager. This adds that to the CLI:

  • --create with no name asks for the Android version, then the device and
    name of one or more emulators. --create <name> works as before.
  • --delete shows a checkbox list of your emulators, or takes names.
    It asks before deleting.
  • --update installs newer versions of what is in use (command-line tools,
    platform-tools, emulator and the system images your emulators run on).
    Newer images that no emulator uses are skipped.
  • --prune removes system images, platforms and sources that no emulator
    uses. Everything unused is selected, you deselect what you want to keep.
    Build tools, NDK and CMake are never touched.

All of them support --dry-run, and --yes skips the questions.

Other changes

  • The SDK tools now run async, so the spinner actually turns. Before, the
    blocking calls would have frozen it. It says what it is doing per command
    ("Checking your setup...", "Looking for updates...").
  • The setup question names the action, like "Create Pixel_10_API_37_0 now?",
    instead of "Set up the 1 missing item now?".
  • Startup screen, --help and README are updated.

Create and delete emulators, update the SDK and remove what no
emulator uses, all with lists to pick from.

- --create without a name asks for the Android version, then the
  device and name of one or more emulators
- --delete [name] removes emulators, from a checkbox list or by name,
  after a confirmation
- --update installs newer SDK packages for what is in use and skips
  system images no emulator uses
- --prune removes system images, platforms and sources no emulator
  uses, one package at a time, and shows why sdkmanager refuses one
- A spinner with a clear text while we wait for the SDK tools. They
  now run asynchronously, so it keeps turning
- The setup question names what it does, like "Create Pixel_10_API_37_0
  now?", instead of "Set up the 1 missing item now?"
- The new commands are in the startup screen, --help and the README
@wswebcreation wswebcreation added PR: New Feature 🚀 PRs that contain new features PR: Polish 💅 PRs that contain improvements on existing features labels Oct 11, 2026
@wswebcreation
wswebcreation merged commit 06eb908 into main Oct 11, 2026
3 checks passed
@wswebcreation
wswebcreation deleted the ws/manage-emulators-and-sdk branch October 11, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: New Feature 🚀 PRs that contain new features PR: Polish 💅 PRs that contain improvements on existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant