Sha256: 0efd2d7c1add9f1c13290313fd6644e92c05dc6693301b6bbcd56f94ecc498b7

Contents?: true

Size: 638 Bytes

Versions: 28

Compression:

Stored size: 638 Bytes

Contents

module Pod
  class Specification
    def empty_source_files?
      unless subspecs.empty?
        # return early if there are some files in subpec(s) but process the spec itself
        return false unless subspecs.all?(&:empty_source_files?)
      end

      check = lambda do |patterns|
        patterns = [patterns] if patterns.is_a?(String)
        patterns.reject(&:empty?).all? do |pattern|
          Xcodeproj::Constants::HEADER_FILES_EXTENSIONS.any? { |ext| pattern.end_with?(ext) }
        end
      end
      available_platforms.all? do |platform|
        check.call(consumer(platform).source_files)
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 4 rubygems

Version Path
cocoapods-binary-cache-next-0.1.16 lib/cocoapods-binary-cache/helper/podspec.rb
cocoapods-binary-cache-next-0.1.15 lib/cocoapods-binary-cache/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.19 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.18 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.17 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.16 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.15 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.14 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.13 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.12 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.11 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.10 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.9 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb
cocoapods-binary-ht-1.0.0 lib/cocoapods-binary-ht/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.8 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.7 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.6 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.5 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.4 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb
cocoapods-binary-artifactory-cache-0.0.3 lib/cocoapods-binary-artifactory-cache/helper/podspec.rb