Sha256: c0f01210f78fc27a72fadd8593643ffef74a8fee5579d5736f8c9e5c6b77c161

Contents?: true

Size: 519 Bytes

Versions: 3

Compression:

Stored size: 519 Bytes

Contents

module Pod
  class Specification
    def empty_source_files?
      return subspecs.all?(&:empty_source_files?) unless subspecs.empty?

      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

3 entries across 3 versions & 1 rubygems

Version Path
cocoapods-binary-cache-0.1.3 lib/cocoapods-binary-cache/helper/podspec.rb
cocoapods-binary-cache-0.1.2 lib/cocoapods-binary-cache/helper/podspec.rb
cocoapods-binary-cache-0.1.1 lib/cocoapods-binary-cache/helper/podspec.rb