|
| 1 | +require 'xcodeproj/project/object/file_system_synchronized_exception_set' |
| 2 | + |
| 3 | +module Xcodeproj |
| 4 | + class Project |
| 5 | + module Object |
| 6 | + # This class represents a file system synchronized root group. |
| 7 | + class PBXFileSystemSynchronizedRootGroup < AbstractObject |
| 8 | + # @return [String] the directory to which the path is relative. |
| 9 | + # |
| 10 | + # @note The accepted values are: |
| 11 | + # - `<absolute>` for absolute paths |
| 12 | + # - `<group>` for paths relative to the group |
| 13 | + # - `SOURCE_ROOT` for paths relative to the project |
| 14 | + # - `DEVELOPER_DIR` for paths relative to the developer |
| 15 | + # directory. |
| 16 | + # - `BUILT_PRODUCTS_DIR` for paths relative to the build |
| 17 | + # products directory. |
| 18 | + # - `SDKROOT` for paths relative to the SDK directory. |
| 19 | + # |
| 20 | + attribute :source_tree, String, '<group>' |
| 21 | + |
| 22 | + # @return [String] the path to a folder in the file system. |
| 23 | + # |
| 24 | + attribute :path, String |
| 25 | + |
| 26 | + # @return [String] Whether Xcode should use tabs for text alignment. |
| 27 | + # |
| 28 | + # @example |
| 29 | + # `1` |
| 30 | + # |
| 31 | + attribute :uses_tabs, String |
| 32 | + |
| 33 | + # @return [String] The width of the indent. |
| 34 | + # |
| 35 | + # @example |
| 36 | + # `2` |
| 37 | + # |
| 38 | + attribute :indent_width, String |
| 39 | + |
| 40 | + # @return [String] The width of the tabs. |
| 41 | + # |
| 42 | + # @example |
| 43 | + # `2` |
| 44 | + # |
| 45 | + attribute :tab_width, String |
| 46 | + |
| 47 | + # @return [String] Whether Xcode should wrap lines. |
| 48 | + # |
| 49 | + # @example |
| 50 | + # `1` |
| 51 | + # |
| 52 | + attribute :wraps_lines, String |
| 53 | + |
| 54 | + # @return [Array<PBXFileSystemSynchronizedBuildFileExceptionSet, PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet>] |
| 55 | + # The list of exceptions applying to this group. |
| 56 | + # |
| 57 | + has_many :exceptions, [PBXFileSystemSynchronizedBuildFileExceptionSet, PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet] |
| 58 | + |
| 59 | + # @return [Hash] The files in the group that have a file type defined explicitly. |
| 60 | + # |
| 61 | + attribute :explicit_file_types, Hash |
| 62 | + |
| 63 | + # @return [Array] The folders in the group that are defined explicitly. |
| 64 | + # |
| 65 | + attribute :explicit_folders, Array |
| 66 | + |
| 67 | + def display_name |
| 68 | + return path if path |
| 69 | + super |
| 70 | + end |
| 71 | + end |
| 72 | + end |
| 73 | + end |
| 74 | +end |
0 commit comments