Skip to content

Commit dabc065

Browse files
committed
pbxFile: Added defaultExtension() method for detecting extensions for build products.
1 parent 46f89b5 commit dabc065

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/pbxFile.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,15 @@ function detectType(filePath) {
8181
return type;
8282
}
8383

84+
function defaultExtension(fileRef) {
85+
var extension = EXTENSION_BY_PRODUCTTYPE[fileRef.explicitFileType];
8486

87+
if (!extension) {
88+
return;
89+
}
8590

91+
return extension;
92+
}
8693

8794

8895
// dunno

0 commit comments

Comments
 (0)