Sha256: 2d4432174715d19e1c9eff42b36f463fdea1e8435b32c2dc71f55e3798d778c2

Contents?: true

Size: 792 Bytes

Versions: 2

Compression:

Stored size: 792 Bytes

Contents

require_relative "base"

module PodPrebuild
  class IntegrationDiagnosis < BaseDiagnosis
    def run
      should_be_integrated = if Pod::Podfile::DSL.prebuild_job? \
                             then @cache_validation.hit + @cache_validation.missed \
                             else @cache_validation.hit \
                             end
      should_be_integrated = should_be_integrated.map { |name| name.split("/")[0] }.to_set
      unintegrated = should_be_integrated.reject do |name|
        module_name = spec(name)&.module_name || name
        framework_path = @standard_sandbox.pod_dir(name) + "#{module_name}.framework"
        framework_path.exist?
      end
      Pod::UI.puts "🚩 Unintegrated frameworks: #{unintegrated}".yellow unless unintegrated.empty?
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-binary-cache-0.1.6 lib/cocoapods-binary-cache/diagnosis/integration.rb
cocoapods-binary-cache-0.1.5 lib/cocoapods-binary-cache/diagnosis/integration.rb