Class: Pod::PodTarget

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-fix-module/patch.rb,
lib/cocoapods-fix-module/patch1.5.rb

Instance Method Summary collapse

Instance Method Details

#contain_vendored_libraries_and_no_vendored_frameworks?Boolean

Returns:

  • (Boolean)


21
22
23
24
25
26
27
28
29
# File 'lib/cocoapods-fix-module/patch.rb', line 21

def contain_vendored_libraries_and_no_vendored_frameworks?
  return @uses_libraries_no_frameworks if defined? @uses_libraries_no_frameworks
  @uses_libraries_no_frameworks = begin
    accessors = file_accessors.reject { |a| a.spec.test_specification? }
    !accessors.empty? && accessors.all? do |file_accessor|
      !file_accessor.vendored_libraries.blank? && file_accessor.vendored_frameworks.blank?
    end
  end
end

#should_generate_module_map_for_a_pod_should_not_build?Boolean

Returns:

  • (Boolean)


31
32
33
34
35
# File 'lib/cocoapods-fix-module/patch.rb', line 31

def should_generate_module_map_for_a_pod_should_not_build?
  @should_generate_module_map_for_a_pod_should_not_build ||= begin
    self.uses_modular_headers? && contain_vendored_libraries_and_no_vendored_frameworks?
  end
end