lib/xcodeproject/pbx_file_reference.rb in xcodeproject-0.3.11 vs lib/xcodeproject/pbx_file_reference.rb in xcodeproject-0.3.12
- old
+ new
@@ -52,11 +52,11 @@
raise ParseError.new("No such file type '#{name}'.") if !FileTypeMap.include?(ext)
data = []
data << ['isa', 'PBXFileReference']
data << ['sourceTree', '<group>']
- data << ['fileEncoding', '4'] # utf-8
+ # data << ['fileEncoding', '4'] # utf-8
data << ['lastKnownFileType', FileTypeMap[ext]]
data << ['path', path]
data << ['name', name] if name != path
Hash[ data ]
@@ -67,9 +67,15 @@
'.c' => 'sourcecode.c.c',
'.m' => 'sourcecode.c.objc',
'.mm' => 'sourcecode.cpp.objcpp',
'.hpp' => 'sourcecode.cpp.h',
'.cpp' => 'sourcecode.cpp.cpp',
- '.cc' => 'sourcecode.cpp.cpp'
+ '.cc' => 'sourcecode.cpp.cpp',
+ '.mp3' => 'audio.mp3',
+ '.png' => 'image.png',
+ 'jpeg' => 'image.jpeg',
+ 'jpg' => 'image.jpeg',
+ '.fnt' => 'text',
+ '.txt' => 'text'
}
end
end