Sha256: e4d3a822a9c8c78a0be9ceb721a454ddec2763c79cfcca7b38337d3f98fb0867

Contents?: true

Size: 514 Bytes

Versions: 10

Compression:

Stored size: 514 Bytes

Contents

module Xcake
  module Generator
    # This build phase generator detects XCDataModeld bundles
    # and adds them to the compile source phase.
    #
    class CompileXCDataModeldBuildPhase < CompileSourceBuildPhase
      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
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
xcake-0.5.3 lib/xcake/generator/build_phase/compile_xcdatamodeld_build_phase.rb
xcake-0.5.2 lib/xcake/generator/build_phase/compile_xcdatamodeld_build_phase.rb
xcake-0.5.1 lib/xcake/generator/build_phase/compile_xcdatamodeld_build_phase.rb
xcake-0.5.0 lib/xcake/generator/build_phase/compile_xcdatamodeld_build_phase.rb
xcake-0.4.8 lib/xcake/generator/build_phase/compile_xcdatamodeld_build_phase.rb
xcake-0.4.7 lib/xcake/generator/build_phase/compile_xcdatamodeld_build_phase.rb
xcake-0.4.6 lib/xcake/generator/build_phase/compile_xcdatamodeld_build_phase.rb
xcake-0.4.5 lib/xcake/generator/build_phase/compile_xcdatamodeld_build_phase.rb
xcake-0.4.4 lib/xcake/generator/build_phase/compile_xcdatamodeld_build_phase.rb
xcake-0.4.3 lib/xcake/generator/build_phase/compile_xcdatamodeld_build_phase.rb