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()
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
FCF2BB724CCC6B6974C426F8 = {isa = PBXBuildFile; fileRef = 36A67B6FF0A52868D30E3AFF; };
|
||||
7E17EFEA80A73B8C3179D66C = {isa = PBXBuildFile; fileRef = 5E777846BC9ED35ED93034AA; };
|
||||
9FE2C1B4C0DA9FE3AEF298AF = {isa = PBXBuildFile; fileRef = 9710CA4A388CBE265276E667; };
|
||||
BF36D97E9B774167AF0CD001 = {isa = PBXBuildFile; fileRef = BF36D97E9B774167AF0CD101; };
|
||||
BF36D97E9B774167AF0CD002 = {isa = PBXBuildFile; fileRef = BF36D97E9B774167AF0CD102; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
|
||||
@@ -63,6 +65,8 @@
|
||||
36A67B6FF0A52868D30E3AFF = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HermesAppTests/LocalizationStoreTests.swift; sourceTree = "<group>"; };
|
||||
5E777846BC9ED35ED93034AA = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; path = Localization/en.lproj/Localizable.strings; sourceTree = "<group>"; };
|
||||
9710CA4A388CBE265276E667 = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; path = Localization/sv.lproj/Localizable.strings; sourceTree = "<group>"; };
|
||||
BF36D97E9B774167AF0CD101 = {isa = PBXFileReference; lastKnownFileType = video.quicktime; path = ../../../example-round.mov; sourceTree = "<group>"; };
|
||||
BF36D97E9B774167AF0CD102 = {isa = PBXFileReference; lastKnownFileType = video.quicktime; path = ../../../example-reveal.mov; sourceTree = "<group>"; };
|
||||
3A8D22D1A79B415AD4892F84 = {isa = PBXFileReference; explicitFileType = wrapper.application; path = HermesApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
C1368E6B7C6BAAA50C8B38A8 = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; path = HermesAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
/* End PBXFileReference section */
|
||||
@@ -103,6 +107,8 @@
|
||||
A024F06580C79B7582C3806A = {isa = PBXGroup; children = (
|
||||
5E777846BC9ED35ED93034AA,
|
||||
9710CA4A388CBE265276E667,
|
||||
BF36D97E9B774167AF0CD101,
|
||||
BF36D97E9B774167AF0CD102,
|
||||
); path = Resources; sourceTree = "<group>"; };
|
||||
156052F04525D0F710673CF0 = {isa = PBXGroup; children = (
|
||||
36A67B6FF0A52868D30E3AFF,
|
||||
@@ -189,6 +195,8 @@
|
||||
DFA634CB8CCD163EA3930D97 = {isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = (
|
||||
7E17EFEA80A73B8C3179D66C,
|
||||
9FE2C1B4C0DA9FE3AEF298AF,
|
||||
BF36D97E9B774167AF0CD001,
|
||||
BF36D97E9B774167AF0CD002,
|
||||
); runOnlyForDeploymentPostprocessing = 0; };
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user