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)
14 lines
No EOL
432 B
JavaScript
14 lines
No EOL
432 B
JavaScript
// returns an array of entries if readdir() works,
|
|
// or the error that readdir() raised if not.
|
|
import { promises, readdirSync } from './fs.js';
|
|
const { readdir } = promises;
|
|
export const readdirOrError = (path) => readdir(path).catch(er => er);
|
|
export const readdirOrErrorSync = (path) => {
|
|
try {
|
|
return readdirSync(path);
|
|
}
|
|
catch (er) {
|
|
return er;
|
|
}
|
|
};
|
|
//# sourceMappingURL=readdir-or-error.js.map
|