mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Support paths directly to xcassets
Pretend xcassets are files to allow top-level xcassets in the spec.
This commit is contained in:
@@ -563,7 +563,8 @@ public class PBXProjGenerator {
|
||||
|
||||
func getSources(sourceMetadata source: Source, path: Path, depth: Int = 0) throws -> (sourceFiles: [SourceFile], groups: [PBXGroup]) {
|
||||
// if we have a file, move it to children and use the parent as the path
|
||||
let (children, path) = path.isFile ?
|
||||
// pretend xcassets are files
|
||||
let (children, path) = path.isFile || path.extension == "xcassets" ?
|
||||
([path], path.parent()) :
|
||||
(try path.children().sorted(), path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user