Sha256: 0430ff2373af709885d0e26c343a6c77731f2ea62889391e7a2608a42d658ec5

Contents?: true

Size: 529 Bytes

Versions: 6

Compression:

Stored size: 529 Bytes

Contents

module Xcake
  # This build phase generator detects XCDataModeld bundles
  # and adds them to the compile source phase.
  #
  class CompileXCDataModeldFileReferenceInstaller < CompileSourceFileReferenceInstaller
    def self.dependencies
      []
    end

    def self.can_install_node(node)
      File.directory?(node.path) &&
        ['.xcdatamodeld'].include?(File.extname(node.path))
    end

    def visit_node(node)
      super

      # Ignore all files inside of the XCDataModel
      node.children = []
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
xcake-0.6.25 lib/xcake/file_reference_installer/compile_xcdatamodeld_file_reference_installer.rb
xcake-0.6.24 lib/xcake/file_reference_installer/compile_xcdatamodeld_file_reference_installer.rb
xcake-0.6.23 lib/xcake/file_reference_installer/compile_xcdatamodeld_file_reference_installer.rb
xcake-0.6.22 lib/xcake/file_reference_installer/compile_xcdatamodeld_file_reference_installer.rb
xcake-0.6.21 lib/xcake/file_reference_installer/compile_xcdatamodeld_file_reference_installer.rb
xcake-0.6.20 lib/xcake/file_reference_installer/compile_xcdatamodeld_file_reference_installer.rb