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)
21 lines
592 B
JavaScript
21 lines
592 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.getOptionValues = exports.getOptionValue = void 0;
|
|
function getOptionValue(args, arg, defaultValue) {
|
|
const i = args.indexOf(arg);
|
|
if (i >= 0) {
|
|
return args[i + 1];
|
|
}
|
|
return defaultValue;
|
|
}
|
|
exports.getOptionValue = getOptionValue;
|
|
function getOptionValues(args, arg) {
|
|
const returnVal = [];
|
|
args.map((entry, idx) => {
|
|
if (entry === arg) {
|
|
returnVal.push(args[idx + 1]);
|
|
}
|
|
});
|
|
return returnVal;
|
|
}
|
|
exports.getOptionValues = getOptionValues;
|