Development¶
Run from source¶
npm install
npm test
Open the repository in VS Code and press F5 to launch an Extension Development Host. Open your React Native project in that host, then expand Devices and APKs in Explorer.
Package¶
npm run package
Helper APK¶
Build the helper with ./helper-apk/build.sh; this also refreshes resources/mota-recorder.apk. Run npm test, then npm run package. See helper-apk/README.md for the APK's standalone workflow. The extension package includes only the built helper APK; helper source, test APKs and the development signing key are excluded.
Tests¶
npm test compiles TypeScript and checks discovery parsing, endpoint validation, safe HTML output, literal process arguments, metric conversion, recovery hints, install flag validation, and mocked VS Code interactions for install retries, saved connections and monitor controls. Physical-device QR pairing, installs, logcat and diagnostics require a manual device smoke test.
Docs¶
This site is built with MkDocs Material from the docs/ folder and deployed to GitHub Pages by .github/workflows/docs.yml on every push to main that touches the docs. To preview locally:
pip install -r docs/requirements.txt
mkdocs serve