Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated readme for android subcommand workflows #72

Merged
merged 1 commit into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/subcommands/connect.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,19 @@ Run the below command to connect to a real device wirelessly:
```sh
npx @nightwatch/mobile-helper android connect --wireless
```

### 2. Launch an Android Virtual Device

Run the below command to launch an AVD:
```sh
npx @nightwatch/mobile-helper android connect --emulator

# with configs
npx @nightwatch/mobile-helper android connect --emulator [--avd <avd_name>]
```

**Configs**

| Config | Description |
| ------------------ | ------------------------- |
| --avd <avd_name> | Name of the AVD to launch |
7 changes: 7 additions & 0 deletions docs/subcommands/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,10 @@ Run the below command to create a new AVD:
```sh
npx @nightwatch/mobile-helper android install --avd
```

### 3. Install a system image

Run the below command to install a new system image:
```sh
npx @nightwatch/mobile-helper android install --system-image
```
23 changes: 23 additions & 0 deletions docs/subcommands/uninstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,26 @@ Run the below command to delete an AVD:
```sh
npx @nightwatch/mobile-helper android uninstall --avd
```

### 2. Uninstall a system image

Run the below command to uninstall a system image:
```sh
npx @nightwatch/mobile-helper android uninstall --system-image
```

### 3. Uninstall an app

Run the below command to uninstall an app from a real device or an AVD:
```sh
npx @nightwatch/mobile-helper android uninstall --app

# with configs
npx @nightwatch/mobile-helper android uninstall --app [--deviceId <device_id>]
```

**Configs**

| Config | Description |
| ------------------------------ | ------------------------------------------------- |
| --deviceId \| -s <device_id> | Id of the device to uninstall the app from |
Loading