Sha256: 4f8ff196598571afb737c266f17a5055d505116d09621b6f8676f15e7c5d6b5d

Contents?: true

Size: 1.61 KB

Versions: 35

Compression:

Stored size: 1.61 KB

Contents

require 'cocoapods'
require 'cocoapods-core'

module Pod 
    class Podfile
        class TargetDefinition

            # linklines is a array to save data if you directy define :linkage => static or :linkage => dynimic
            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

            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

            ll_original_parse_inhibit_warnings = instance_method(:parse_inhibit_warnings)
            define_method(:parse_inhibit_warnings) do |name, requirements|
                if (requirements.last.is_a? Hash) && requirements.last.has_key?(:path) 
                    $ll_has_local_path = true
                end
                @linkage ||= {}
                @linkages ||= {}
                @linkage = @linkage.merge(ll_expedition_linkages(name, requirements,:linkage))
                @linkages = @linkages.merge(ll_expedition_linkages(name, requirements,:linkages))
                ll_original_parse_inhibit_warnings.bind(self).call(name, requirements)
            end
        end
    end
end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
cocoapods-bb-PodAssistant-0.3.7.1 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.3.7.0 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.3.6.2 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.3.6.1 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.3.6.0 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.3.5.2 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.3.5.1 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.3.5.0 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.3.4.3 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.3.4.2 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.3.3 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.3.2 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.3.1 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.3.0 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.2.6 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.2.5 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.2.4 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.2.3 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.2.2 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb
cocoapods-bb-PodAssistant-0.2.1 lib/cocoapods-bb-PodAssistant/babybus/linkline/targetdefinition-linkline.rb