@mobilenext/mobilecli 0.0.52 → 0.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -26,7 +26,6 @@ A universal command-line tool for managing iOS and Android devices, simulators,
26
26
  </a>
27
27
  </p>
28
28
 
29
-
30
29
  ## Features 🚀
31
30
 
32
31
  - **Device Management**: List, manage, interactive with connected mobile devices
@@ -34,9 +33,18 @@ A universal command-line tool for managing iOS and Android devices, simulators,
34
33
  - **Emulator/Simulator Control**: Boot and shutdown emulators and simulators programmatically
35
34
  - **Screenshot Capture**: Take screenshots from any connected device with format options
36
35
  - **Multiple Output Formats**: Save screenshots as PNG or JPEG with quality control
37
- - **Screencapture video streaming**: Stream mjpeg video directly from device
36
+ - **Screencapture video streaming**: Stream mjpeg/h264 video directly from device
38
37
  - **Device Control**: Reboot devices, tap screen coordinates, press hardware buttons
39
- - **App management**: Launch app, terminate apps. Install and uninstall coming next ⏭️
38
+ - **App Management**: Launch app, terminate apps, install and uninstall
39
+
40
+ ### 🎯 Platform Support
41
+
42
+ | Platform | Supported |
43
+ |----------|:---------:|
44
+ | iOS Real Device | ✅ |
45
+ | iOS Simulator | ✅ |
46
+ | Android Real Device | ✅ |
47
+ | Android Emulator | ✅ |
40
48
 
41
49
  ## Installation 📦
42
50
 
@@ -77,24 +85,6 @@ Xcode is required. Make sure you have it installed with the runtimes relevant fo
77
85
  brew install --cask android-platform-tools
78
86
  ```
79
87
 
80
- ## WebSocket Support 🔌
81
-
82
- mobilecli includes a WebSocket server that allows multiple requests over a single connection using the same JSON-RPC 2.0 format as the HTTP API.
83
-
84
- ```bash
85
- # Start the server (default port 12000)
86
- mobilecli server start
87
-
88
- # Connect and send requests using wscat
89
- wscat -c ws://localhost:12000/ws
90
- > {"jsonrpc":"2.0","id":1,"method":"devices","params":{}}
91
- < {"jsonrpc":"2.0","id":1,"result":[...]}
92
- > {"jsonrpc":"2.0","id":2,"method":"screenshot","params":{"deviceId":"your-device-id"}}
93
- < {"jsonrpc":"2.0","id":2,"result":{...}}
94
- ```
95
-
96
- **Note**: `screencapture` is not supported over WebSocket - use the HTTP `/rpc` endpoint for video streaming.
97
-
98
88
  ## Usage
99
89
 
100
90
  ### List Connected Devices 🔍
@@ -196,6 +186,36 @@ mobilecli io text --device <device-id> 'hello world'
196
186
  - `VOLUME_UP`, `VOLUME_DOWN` - Volume up and down
197
187
  - `DPAD_UP`, `DPAD_DOWN`, `DPAD_LEFT`, `DPAD_RIGHT`, `DPAD_CENTER` - D-pad controls (Android only)
198
188
 
189
+ ## HTTP API 🔌
190
+
191
+ ***mobilecli*** provides an http interface for all the functionality that is available through command line. As a matter of fact, it is preferable to
192
+ use mobilecli as a webserver, so it can cache and keep tunnels alive, speeding up your interactions with the mobile device or simulator/emulator.
193
+
194
+ ```bash
195
+ # Start the server (default port 12000)
196
+ mobile server start
197
+
198
+ curl http://localhost:12000/rpc -XPOST -d '{"jsonrpc":"2.0", "id": 1, "method": "devices", "params": {}}'
199
+ curl http://localhost:12000/rpc -XPOST -d '{"jsonrpc":"2.0", "id": 1, "method": "screenshot", "params": {"deviceId": "your-device-id"}}'
200
+
201
+ ## WebSocket Support 🔌
202
+
203
+ ***mobilecli*** includes a WebSocket server that allows multiple requests over a single connection using the same JSON-RPC 2.0 format as the HTTP API.
204
+
205
+ ```bash
206
+ # Start the server (default port 12000)
207
+ mobilecli server start
208
+
209
+ # Connect and send requests using wscat
210
+ wscat -c ws://localhost:12000/ws
211
+ > {"jsonrpc":"2.0","id":1,"method":"devices","params":{}}
212
+ < {"jsonrpc":"2.0","id":1,"result":[...]}
213
+ > {"jsonrpc":"2.0","id":2,"method":"screenshot","params":{"deviceId":"your-device-id"}}
214
+ < {"jsonrpc":"2.0","id":2,"result":{...}}
215
+ ```
216
+
217
+ **Note**: `screencapture` is not supported over WebSocket - use the HTTP `/rpc` endpoint for video streaming.
218
+
199
219
  ## Platform-Specific Notes
200
220
 
201
221
  ### iOS Real Devices
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobilenext/mobilecli",
3
- "version": "0.0.52",
3
+ "version": "0.0.54",
4
4
  "author": "Mobile Next",
5
5
  "description": "A universal command-line tool for managing iOS and Android devices, simulators, emulators and apps",
6
6
  "repository": {