public class ProjectFileWriter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProjectFileWriter.Result
Helper class for returning metadata about a created PBXFileReference Includes a reference to
the PBXFileReference and the Source Tree Path We probably won't need this long term as we kill
off Xcode build phases but for now, let's just use this since it's named and structured
|
Constructor and Description |
---|
ProjectFileWriter(PBXProject project,
com.facebook.buck.features.apple.projectV2.PathRelativizer pathRelativizer,
java.util.function.Function<SourcePath,Path> sourcePathResolver) |
Modifier and Type | Method and Description |
---|---|
ProjectFileWriter.Result |
writeFilePath(Path path,
Optional<String> type)
Writes a file at a path to a PBXFileReference in the input project.
|
ProjectFileWriter.Result |
writeSourcePath(SourcePath sourcePath,
Optional<Path> packagePath)
Writes a source path to a PBXFileReference in the input project.
|
public ProjectFileWriter(PBXProject project, com.facebook.buck.features.apple.projectV2.PathRelativizer pathRelativizer, java.util.function.Function<SourcePath,Path> sourcePathResolver)
public ProjectFileWriter.Result writeSourcePath(SourcePath sourcePath, Optional<Path> packagePath)
Thus, if a file is absolutely located at: /Users/me/dev/MyProject/Header.h And the cell is: /Users/me/dev/ Then this will create a path in the PBXProject mainGroup as: /MyProject/Header.h
public ProjectFileWriter.Result writeFilePath(Path path, Optional<String> type)