Class: Pod::Podfile::TargetDefinition
- Inherits:
-
Object
- Object
- Pod::Podfile::TargetDefinition
- Defined in:
- lib/cocoapods-binaryhqp/helper/podfile_options.rb
Instance Method Summary collapse
-
#parse_prebuild_framework(name, requirements) ⇒ Object
— option for setting using prebuild framework —.
- #prebuild_framework_pod_names ⇒ Object
- #set_prebuild_for_pod(pod_name, should_prebuild) ⇒ Object
- #should_not_prebuild_framework_pod_names ⇒ Object
Instance Method Details
#parse_prebuild_framework(name, requirements) ⇒ Object
— option for setting using prebuild framework —
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/cocoapods-binaryhqp/helper/podfile_options.rb', line 13 def parse_prebuild_framework(name, requirements) should_prebuild = Pod::Podfile::DSL.prebuild_all && (not Pod::Podfile::DSL.framework_source_all) = requirements.last if .is_a?(Hash) && [Pod::Prebuild.keyword] != nil should_prebuild = .delete(Pod::Prebuild.keyword) && (not Pod::Podfile::DSL.framework_source_all) requirements.pop if .empty? end if Pod::Command::Install.all_use_source should_prebuild = false end pod_name = Specification.root_name(name) set_prebuild_for_pod(pod_name, should_prebuild) end |
#prebuild_framework_pod_names ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/cocoapods-binaryhqp/helper/podfile_options.rb', line 41 def prebuild_framework_pod_names names = @prebuild_framework_pod_names || [] if parent != nil and parent.kind_of? TargetDefinition names += parent.prebuild_framework_pod_names end names end |
#set_prebuild_for_pod(pod_name, should_prebuild) ⇒ Object
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/cocoapods-binaryhqp/helper/podfile_options.rb', line 30 def set_prebuild_for_pod(pod_name, should_prebuild) if should_prebuild == true @prebuild_framework_pod_names ||= [] @prebuild_framework_pod_names.push pod_name elsif should_prebuild == false @should_not_prebuild_framework_pod_names ||= [] @should_not_prebuild_framework_pod_names.push pod_name end end |
#should_not_prebuild_framework_pod_names ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/cocoapods-binaryhqp/helper/podfile_options.rb', line 48 def should_not_prebuild_framework_pod_names names = @should_not_prebuild_framework_pod_names || [] if parent != nil and parent.kind_of? TargetDefinition names += parent.should_not_prebuild_framework_pod_names end names end |