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



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

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

#tdfire_use_source?Boolean

Returns:

  • (Boolean)


78
79
80
81
82
83
84
# File 'lib/cocoapods-tdfire-binary/specification_dsl.rb', line 78

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)) || 
      !tdfire_had_set_binary_strategy
end