Sha256: 4ee6ce7440aea34a9a9f107bc0156e69a5b894baa31ed634357ce8df7ec61f60

Contents?: true

Size: 510 Bytes

Versions: 6

Compression:

Stored size: 510 Bytes

Contents

module Xcake
  # This build phase generator detects XCAsset bundles
  # and adds them to the copy resources phase.
  #
  class CopyXCAssetsFileReferenceInstaller < CopyResourcesFileReferenceInstaller
    def self.dependencies
      []
    end

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

    def visit_node(node)
      super

      # Ignore all files inside of the XCAssets
      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/copy_xcassets_file_reference_installer.rb
xcake-0.6.24 lib/xcake/file_reference_installer/copy_xcassets_file_reference_installer.rb
xcake-0.6.23 lib/xcake/file_reference_installer/copy_xcassets_file_reference_installer.rb
xcake-0.6.22 lib/xcake/file_reference_installer/copy_xcassets_file_reference_installer.rb
xcake-0.6.21 lib/xcake/file_reference_installer/copy_xcassets_file_reference_installer.rb
xcake-0.6.20 lib/xcake/file_reference_installer/copy_xcassets_file_reference_installer.rb