Class: Pod::PodTarget
- Inherits:
-
Object
- Object
- Pod::PodTarget
- Defined in:
- lib/cocoapods-hmap-prebuilt/pod_target.rb
Instance Attribute Summary collapse
-
#dependent_target_header_search_path_setting ⇒ Object
Returns the value of attribute dependent_target_header_search_path_setting.
Instance Method Summary collapse
- #addition_aggregate_hmapfile_to_pod_target(hmap_path) ⇒ Object
- #reset_header_search_with_relative_hmap_path(hmap_path) ⇒ Object
Instance Attribute Details
#dependent_target_header_search_path_setting ⇒ Object
Returns the value of attribute dependent_target_header_search_path_setting.
10 11 12 |
# File 'lib/cocoapods-hmap-prebuilt/pod_target.rb', line 10 def dependent_target_header_search_path_setting @dependent_target_header_search_path_setting end |
Instance Method Details
#addition_aggregate_hmapfile_to_pod_target(hmap_path) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/cocoapods-hmap-prebuilt/pod_target.rb', line 32 def addition_aggregate_hmapfile_to_pod_target(hmap_path) if build_settings.instance_of?(Hash) build_settings.each do |name, setting| config_file = setting.xcconfig config_file.addition_aggregate_hmapfile_to_pod_target(hmap_path) config_file.save_as(xcconfig_path(name)) end elsif build_settings.instance_of?(BuildSettings::PodTargetSettings) config_file = build_settings.xcconfig config_file.addition_aggregate_hmapfile_to_pod_target(hmap_path) config_file.save_as(xcconfig_path) else puts 'Unknown build settings'.red end end |
#reset_header_search_with_relative_hmap_path(hmap_path) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/cocoapods-hmap-prebuilt/pod_target.rb', line 12 def reset_header_search_with_relative_hmap_path(hmap_path) if build_settings.instance_of?(Hash) build_settings.each do |config_name, setting| config_file = setting.xcconfig config_file.reset_header_search_with_relative_hmap_path(hmap_path, @dependent_target_header_search_path_setting) config_file.set_use_hmap(false) config_path = xcconfig_path(config_name) config_file.save_as(config_path) end elsif build_settings.instance_of?(BuildSettings::PodTargetSettings) config_file = build_settings.xcconfig config_file.reset_header_search_with_relative_hmap_path(hmap_path, @dependent_target_header_search_path_setting) config_file.set_use_hmap(false) config_path = xcconfig_path config_file.save_as(config_path) else puts 'Unknown build settings'.red end end |