Skip to content

Commit ef21ffb

Browse files
committed
Offer direct access to the referenced file from BuildFile.
1 parent 803c00a commit ef21ffb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • src/main/java/com/sap/prd/mobile/ios/mios/xcodeprojreader

src/main/java/com/sap/prd/mobile/ios/mios/xcodeprojreader/BuildFile.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
*/
2020
package com.sap.prd.mobile.ios.mios.xcodeprojreader;
2121

22+
import com.sap.prd.mobile.ios.mios.xcodeprojreader.treeelements.PBXFileReference;
23+
2224
public class BuildFile extends Element
2325
{
2426
public BuildFile(ProjectFile projectFile)
@@ -30,4 +32,11 @@ public BuildFile(ProjectFile projectFile, Dict dict)
3032
{
3133
super(projectFile, dict);
3234
}
35+
36+
public PBXFileReference getFile()
37+
{
38+
String fileRef = getDict().getString("fileRef");
39+
Dict file = getProjectFile().getObjectByReference(fileRef);
40+
return new PBXFileReference(getProjectFile(), file);
41+
}
3342
}

0 commit comments

Comments
 (0)