mirror of
https://github.com/callstack/agent-device.git
synced 2026-09-14 20:06:34 +08:00
34c14a55dc
* wip: shared recording export support * refactor(recording): share the AVFoundation export pipeline between overlay and trim Extracts RecordingExportSupport.swift (error vocabulary, flag-value reading, composition assembly, bounded export wait) so recording-overlay and recording-trim stop carrying three near-identical copies of the same mechanics. Entry points move to @main because multi-file swiftc reserves top-level statements for main.swift. compileSwiftSourceFile gains extraSourcePaths: extra units join the cache key and reach swiftc, and overlay.ts passes the shared support file for both scripts. Error messages and per-script stderr prefixes are unchanged; trim's error-precedence order (missing video track before invalid range) is preserved by resolving the track before the range guards.