Class: Pod::Podfile::TargetDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-binary/podfile_options.rb

Instance Method Summary collapse

Instance Method Details

#parse_prebuild_framework(name, requirements) ⇒ Object

— option for setting using prebuild framework —



13
14
15
16
17
18
19
20
21
# File 'lib/cocoapods-binary/podfile_options.rb', line 13

def parse_prebuild_framework(name, requirements)
    options = requirements.last
    return requirements unless options.is_a?(Hash)
    
    should_prebuild_framework = options.delete(Pod::Prebuild.keyword)
    pod_name = Specification.root_name(name)
    set_prebuild_for_pod(pod_name, should_prebuild_framework)
    requirements.pop if options.empty?
end

#prebuild_framework_namesObject



29
30
31
# File 'lib/cocoapods-binary/podfile_options.rb', line 29

def prebuild_framework_names
    @prebuild_framework_names || []
end

#set_prebuild_for_pod(pod_name, should_prebuild) ⇒ Object



23
24
25
26
27
# File 'lib/cocoapods-binary/podfile_options.rb', line 23

def set_prebuild_for_pod(pod_name, should_prebuild)
    return unless should_prebuild == true
    @prebuild_framework_names ||= []
    @prebuild_framework_names.push pod_name
end