bundle demo clips into iOS app
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user