Class: Pod::Specification
- Inherits:
-
Object
- Object
- Pod::Specification
- Defined in:
- lib/cocoapods-binary-cache/helper/podspec.rb
Instance Method Summary collapse
-
#empty_source_files? ⇒ Boolean
TODO: this detect objc lib as empty source, eg.
Instance Method Details
#empty_source_files? ⇒ Boolean
TODO: this detect objc lib as empty source, eg. Realm
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/cocoapods-binary-cache/helper/podspec.rb', line 4 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 |