bundle demo clips into iOS app

This commit is contained in:
2026-04-10 11:12:58 +02:00
parent d19326b537
commit 7e51e5ba82
2 changed files with 13 additions and 0 deletions
@@ -330,6 +330,11 @@ enum MockHermesData {
}
private static func localMediaURL(named fileName: String) -> URL? {
let fileURL = URL(fileURLWithPath: fileName)
if let bundledURL = Bundle.main.url(forResource: fileURL.deletingPathExtension().lastPathComponent, withExtension: fileURL.pathExtension) {
return bundledURL
}
let sourceFileURL = URL(fileURLWithPath: #filePath)
let repoRoot = sourceFileURL
.deletingLastPathComponent()