Method: Pod::Podfile::TargetDefinition#build_pod_as_module?
- Defined in:
- lib/cocoapods-core/podfile/target_definition.rb
#build_pod_as_module?(pod_name) ⇒ Boolean
Whether the target definition should use modular headers for a single pod. If use_modular_headers! is true, it will return true for any asked pod.
564 565 566 567 568 569 570 571 572 573 574 |
# File 'lib/cocoapods-core/podfile/target_definition.rb', line 564 def build_pod_as_module?(pod_name) if Array(use_modular_headers_hash['not_for_pods']).include?(pod_name) false elsif use_modular_headers_hash['all'] true elsif !root? && parent.build_pod_as_module?(pod_name) true else Array(use_modular_headers_hash['for_pods']).include? pod_name end end |