Class: Pod::PodTarget
- Inherits:
-
Target
- Object
- Target
- Pod::PodTarget
- Defined in:
- lib/cocoapods-use-frameworks-dynamic-wrapper/cocoapods-use-frameworks-dynamic-wrapper.rb
Instance Method Summary collapse
Instance Method Details
#real_should_build ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/cocoapods-use-frameworks-dynamic-wrapper/cocoapods-use-frameworks-dynamic-wrapper.rb', line 5 def real_should_build return @real_should_build if defined? @real_should_build accessors = file_accessors.select { |fa| fa.spec.library_specification? } source_files = accessors.flat_map(&:source_files) source_files -= accessors.flat_map(&:headers) @real_should_build = !source_files.empty? end |
#should_dynamic_wrapper? ⇒ Boolean
13 14 15 |
# File 'lib/cocoapods-use-frameworks-dynamic-wrapper/cocoapods-use-frameworks-dynamic-wrapper.rb', line 13 def should_dynamic_wrapper? real_should_build == false && target_definitions.select(&:dynamic_wrapper).length > 0 && file_accessors.flat_map(&:vendored_static_artifacts).length > 0 end |