Class: Pod::Podfile::TargetDefinition
- Inherits:
-
Object
- Object
- Pod::Podfile::TargetDefinition
- Defined in:
- lib/cocoapods-binary/helper/podfile_options.rb
Instance Method Summary collapse
-
#parse_prebuild_framework(name, requirements) ⇒ Object
— option for setting using prebuild framework —.
- #prebuild_framework_names ⇒ Object
- #set_prebuild_for_pod(pod_name, should_prebuild) ⇒ Object
- #should_not_prebuild_framework_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 |
# File 'lib/cocoapods-binary/helper/podfile_options.rb', line 13 def parse_prebuild_framework(name, requirements) should_prebuild = Pod::Podfile::DSL.prebuild_all = requirements.last if .is_a?(Hash) && [Pod::Prebuild.keyword] != nil should_prebuild = .delete(Pod::Prebuild.keyword) requirements.pop if .empty? end pod_name = Specification.root_name(name) set_prebuild_for_pod(pod_name, should_prebuild) end |
#prebuild_framework_names ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/cocoapods-binary/helper/podfile_options.rb', line 40 def prebuild_framework_names names = @prebuild_framework_names || [] if parent != nil and parent.kind_of? TargetDefinition names += parent.prebuild_framework_names end names end |
#set_prebuild_for_pod(pod_name, should_prebuild) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/cocoapods-binary/helper/podfile_options.rb', line 26 def set_prebuild_for_pod(pod_name, should_prebuild) if should_prebuild == true # watchos isn't supported currently return if self.platform == :watchos @prebuild_framework_names ||= [] @prebuild_framework_names.push pod_name else @should_not_prebuild_framework_names ||= [] @should_not_prebuild_framework_names.push pod_name end end |
#should_not_prebuild_framework_names ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/cocoapods-binary/helper/podfile_options.rb', line 47 def should_not_prebuild_framework_names names = @should_not_prebuild_framework_names || [] if parent != nil and parent.kind_of? TargetDefinition names += parent.should_not_prebuild_framework_names end names end |