Class: Pod::Podfile::TargetDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb

Instance Method Summary collapse

Instance Method Details

#ll_expedition_linkages(name, requirements, key) ⇒ Object

linklines is a array to save data if you directy define :linkage => static or :linkage => dynimic



9
10
11
12
13
14
15
16
# File 'lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb', line 9

def ll_expedition_linkages(name, requirements,key)
    linklines ||= {}
    options = requirements.last || {}
    linklines[Specification.root_name(name)] = options[key] if options.is_a?(Hash) && options[key]
    options.delete(key) if options.is_a?(Hash)
    requirements.pop if options.empty?
    linklines
end

#ll_linkages(is_linkage_all) ⇒ Object



18
19
20
21
22
# File 'lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb', line 18

def ll_linkages(is_linkage_all)
    pod_linkage = (is_linkage_all == true ? @linkages : @linkage) || {}
    pod_linkage.merge!(parent.ll_linkages(is_linkage_all)) { |key, v1, v2| v1 } if !parent.nil? && parent.is_a?(TargetDefinition)
    pod_linkage
end