Skip to content

Commit

Permalink
refactor: sort file types (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
kronenthaler authored Jul 19, 2024
1 parent cde4128 commit 3ea5059
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 37 deletions.
2 changes: 1 addition & 1 deletion pbxproj/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
from pbxproj.XcodeProject import XcodeProject
from pbxproj.pbxsections import *

__version__ = '4.1.0'
__version__ = '4.2.0'
71 changes: 35 additions & 36 deletions pbxproj/pbxextensions/ProjectFiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,59 +79,58 @@ class ProjectFiles:
'': ('text', 'PBXResourcesBuildPhase'),
'.a': ('archive.ar', 'PBXFrameworksBuildPhase'),
'.app': ('wrapper.application', None),
'.s': ('sourcecode.asm', 'PBXSourcesBuildPhase'),
'.as': ('sourcecode.actionscript', 'PBXSourcesBuildPhase'),
'.asm': ('sourcecode.asm', 'PBXSourcesBuildPhase'),
'.bin': ('archive.macbinary', 'PBXResourcesBuildPhase'),
'.blend': ('file.blender', 'PBXResourcesBuildPhase'),
'.bundle': ('wrapper.plug-in', 'PBXResourcesBuildPhase'),
'.c': ('sourcecode.c.c', 'PBXSourcesBuildPhase'),
'.cpp': ('sourcecode.cpp.cpp', 'PBXSourcesBuildPhase'),
'.d': ('sourcecode.dtrace', 'PBXSourcesBuildPhase'),
'.def': ('text', 'PBXResourcesBuildPhase'),
'.dylib': ('compiled.mach-o.dylib', 'PBXFrameworksBuildPhase'),
'.entitlements': ('text.plist.entitlements', 'PBXResourcesBuildPhase'),
'.frag': ('sourcecode.glsl', 'PBXResourcesBuildPhase'),
'.framework': ('wrapper.framework', 'PBXFrameworksBuildPhase'),
'.xcframework': ('wrapper.xcframework', 'PBXFrameworksBuildPhase'),
'.h': ('sourcecode.c.h', 'PBXHeadersBuildPhase'),
'.hpp': ('sourcecode.c.h', 'PBXHeadersBuildPhase'),
'.pch': ('sourcecode.c.h', 'PBXHeadersBuildPhase'),
'.d': ('sourcecode.dtrace', 'PBXSourcesBuildPhase'),
'.def': ('text', 'PBXResourcesBuildPhase'),
'.swift': ('sourcecode.swift', 'PBXSourcesBuildPhase'),
'.html':('text.html', 'PBXResourcesBuildPhase'),
'.icns': ('image.icns', 'PBXResourcesBuildPhase'),
'.m': ('sourcecode.c.objc', 'PBXSourcesBuildPhase'),
'.inl': ('sourcecode.c.h', 'PBXHeadersBuildPhase'),
'.j': ('sourcecode.c.objc', 'PBXSourcesBuildPhase'),
'.jfif': ('image.jfif', 'PBXResourcesBuildPhase'),
'.jpg': ('image.jpg', 'PBXResourcesBuildPhase'),
'.json': ('text.json', 'PBXResourcesBuildPhase'),
'.m': ('sourcecode.c.objc', 'PBXSourcesBuildPhase'),
'.md': ('text', 'PBXResourcesBuildPhase'),
'.mesh': ('file.mesh', 'PBXResourcesBuildPhase'),
'.mlmodel':('file.mlmodel', 'PBXSourcesBuildPhase'),
'.mm': ('sourcecode.cpp.objcpp', 'PBXSourcesBuildPhase'),
'.nib': ('wrapper.nib', 'PBXResourcesBuildPhase'),
'.ogg': ('audio.ogg', 'PBXResourcesBuildPhase'),
'.pch': ('sourcecode.c.h', 'PBXHeadersBuildPhase'),
'.plist': ('text.plist.xml', 'PBXResourcesBuildPhase'),
'.json': ('text.json', 'PBXResourcesBuildPhase'),
'.png': ('image.png', 'PBXResourcesBuildPhase'),
'.jpg': ('image.jpg', 'PBXResourcesBuildPhase'),
'.py': ('sourcecode.python', 'PBXSourcesBuildPhase'),
'.rtf': ('text.rtf', 'PBXResourcesBuildPhase'),
'.S': ('sourcecode.asm', 'PBXSourcesBuildPhase'),
'.scene': ('file.scene', 'PBXResourcesBuildPhase'),
'.strings': ('text.plist.strings', 'PBXResourcesBuildPhase'),
'.swift': ('sourcecode.swift', 'PBXSourcesBuildPhase'),
'.tbd': ('sourcecode.text-based-dylib-definition', 'PBXFrameworksBuildPhase'),
'.tiff': ('image.tiff', 'PBXResourcesBuildPhase'),
'.ttf': ('file.ttf', 'PBXResourcesBuildPhase'),
'.txt': ('text', 'PBXResourcesBuildPhase'),
'.xcodeproj': ('wrapper.pb-project', None),
'.xib': ('file.xib', 'PBXResourcesBuildPhase'),
'.strings': ('text.plist.strings', 'PBXResourcesBuildPhase'),
'.bundle': ('wrapper.plug-in', 'PBXResourcesBuildPhase'),
'.dylib': ('compiled.mach-o.dylib', 'PBXFrameworksBuildPhase'),
'.xcdatamodeld': ('wrapper.xcdatamodel', 'PBXSourcesBuildPhase'),
'.vert': ('sourcecode.glsl', 'PBXResourcesBuildPhase'),
'.wav': ('audio.wav', 'PBXResourcesBuildPhase'),
'.xcassets': ('folder.assetcatalog', 'PBXResourcesBuildPhase'),
'.xcconfig': ('sourcecode.xcconfig', 'PBXSourcesBuildPhase'),
'.tbd': ('sourcecode.text-based-dylib-definition', 'PBXFrameworksBuildPhase'),
'.bin': ('archive.macbinary', 'PBXResourcesBuildPhase'),
'.mlmodel':('file.mlmodel', 'PBXSourcesBuildPhase'),
'.html':('text.html', 'PBXResourcesBuildPhase'),
'.entitlements': ('text.plist.entitlements', 'PBXResourcesBuildPhase'),
'.xcprivacy': ('text.plist.xml', 'PBXResourcesBuildPhase'),
'.md': ('text', 'PBXResourcesBuildPhase'),
'.blend': ('file.blender', 'PBXResourcesBuildPhase'),
'.xcdatamodeld': ('wrapper.xcdatamodel', 'PBXSourcesBuildPhase'),
'.xcf': ('file.xcf', 'PBXResourcesBuildPhase'),
'.scene': ('file.scene', 'PBXResourcesBuildPhase'),
'.wav': ('audio.wav', 'PBXResourcesBuildPhase'),
'.ogg': ('audio.ogg', 'PBXResourcesBuildPhase'),
'.as': ('sourcecode.actionscript', 'PBXSourcesBuildPhase'),
'.mesh': ('file.mesh', 'PBXResourcesBuildPhase'),
'.ttf': ('file.ttf', 'PBXResourcesBuildPhase'),
'.vert': ('sourcecode.glsl', 'PBXResourcesBuildPhase'),
'.frag': ('sourcecode.glsl', 'PBXResourcesBuildPhase'),
'.jfif': ('image.jfif', 'PBXResourcesBuildPhase'),
'.py': ('sourcecode.python', 'PBXSourcesBuildPhase'),
'.S': ('sourcecode.asm', 'PBXSourcesBuildPhase'),
'.asm': ('sourcecode.asm', 'PBXSourcesBuildPhase'),
'.inl': ('sourcecode.c.h', 'PBXHeadersBuildPhase')
'.xcframework': ('wrapper.xcframework', 'PBXFrameworksBuildPhase'),
'.xcodeproj': ('wrapper.pb-project', None),
'.xcprivacy': ('text.plist.xml', 'PBXResourcesBuildPhase'),
'.xib': ('file.xib', 'PBXResourcesBuildPhase')
}
_SPECIAL_FOLDERS = [
'.bundle',
Expand Down

0 comments on commit 3ea5059

Please sign in to comment.