New mobile/ directory with Capacitor project: - Configurable server URL launcher (default: app.pedshub.com) - Android: foreground service + wake lock for background recording (AudioRecordingService preserved from existing TWA) - iOS: background audio mode + microphone permission - App ID: com.pedshub.scribe - Both platforms initialized and synced Existing android/ TWA project untouched — this is a separate project. Build: cd mobile && npx cap open android (or ios)
38 lines
1.3 KiB
JavaScript
38 lines
1.3 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.run = void 0;
|
|
const help = `
|
|
Usage: native-run android [options]
|
|
|
|
Run an .apk on a device or emulator target
|
|
|
|
Targets are selected as follows:
|
|
1) --target using device/emulator serial number or AVD ID
|
|
2) A connected device, unless --virtual is used
|
|
3) A running emulator
|
|
|
|
If the above criteria are not met, an emulator is started from a default
|
|
AVD, which is created if it does not exist.
|
|
|
|
Use --list to list available targets.
|
|
|
|
Options:
|
|
|
|
--list .................. Print available targets, then quit
|
|
--sdk-info .............. Print SDK information, then quit
|
|
--json .................. Output JSON
|
|
|
|
|
|
--app <path> ............ Deploy specified .apk file
|
|
--device ................ Use a device if available
|
|
With --list prints connected devices
|
|
--virtual ............... Prefer an emulator
|
|
With --list prints available emulators
|
|
--target <id> ........... Use a specific target
|
|
--connect ............... Tie process to app process
|
|
--forward <port:port> ... Forward a port from device to host
|
|
`;
|
|
async function run(args) {
|
|
process.stdout.write(`${help}\n`);
|
|
}
|
|
exports.run = run;
|