Class: Pod::Specification

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-tdfire-binary/specification_dsl.rb,
lib/cocoapods-tdfire-binary/binary_specification_refactor.rb

Defined Under Namespace

Modules: DSL

Instance Method Summary collapse

Instance Method Details

#tdfire_recursive_value(name, platform = :ios) ⇒ Object

store_attribute(name, temp) unless temp.empty? end



37
38
39
40
41
42
43
44
# File 'lib/cocoapods-tdfire-binary/binary_specification_refactor.rb', line 37

def tdfire_recursive_value(name, platform = :ios)
  subspec_consumers = recursive_subspecs
                          .select { |s| s.supported_on_platform?(platform) }
                          .map { |s| s.consumer(platform) }
                          .uniq
  value = (Array(consumer(platform)) + subspec_consumers).map { |c| c.send(name) }.flatten.uniq
  value
end

#tdfire_refactorObject



8
9
10
# File 'lib/cocoapods-tdfire-binary/specification_dsl.rb', line 8

def tdfire_refactor
  @refactor ||= Pod::Tdfire::BinarySpecificationRefactor.new(self)
end

#tdfire_use_source?Boolean



73
74
75
76
77
78
# File 'lib/cocoapods-tdfire-binary/specification_dsl.rb', line 73

def tdfire_use_source?
  ((!Pod::Tdfire::BinaryStateStore.force_use_binary? &&
      (!Pod::Tdfire::BinaryStateStore.use_binary? || Pod::Tdfire::BinaryStateStore.real_use_source_pods.include?(root.name))) ||
      Pod::Tdfire::BinaryStateStore.force_use_source?) &&
      (Pod::Tdfire::BinaryStateStore.lib_lint_binary_pod != root.name)
end