Class: Pod::Specification
- Inherits:
-
Object
- Object
- Pod::Specification
- 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
-
#tdfire_recursive_value(name, platform = :ios) ⇒ Object
store_attribute(name, temp) unless temp.empty? end.
- #tdfire_refactor ⇒ Object
- #tdfire_use_source? ⇒ Boolean
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_refactor ⇒ Object
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
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/cocoapods-tdfire-binary/specification_dsl.rb', line 87 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.third_party_use_binary? && tdfire_third_party? ) || Pod::Tdfire::BinaryStateStore.real_use_source_pods.include?(root.name) ) ) || Pod::Tdfire::BinaryStateStore.force_use_source? # 强制源码 ) || !tdfire_had_set_binary_strategy # 没有配置二进制策略 ) end |