Class: HMap::MapFileWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-hmap/hmap_writer.rb

Overview

Helper module which returns handle method from MapFileWriter.

Instance Method Summary collapse

Constructor Details

#initialize(save_origin_header_search_paths, clean_hmap) ⇒ MapFileWriter

Returns a new instance of MapFileWriter.

Parameters:

  • save_origin_header_search_paths

    save_origin_header_search_paths

  • clean_hmap

    clean up all hmap setup



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/cocoapods-hmap/hmap_writer.rb', line 26

def initialize(save_origin_header_search_paths, clean_hmap)
  config = Pod::Config.instance
  analyze = Helper::Pods.pod_analyze(config)
  hmap_dir = hmap_dir(config)
  targets = analyze.targets
  pod_targets = analyze.pod_targets
  clean_hmap(clean_hmap, hmap_dir, targets, pod_targets)
  return if clean_hmap

  @save_origin_header_search_paths = save_origin_header_search_paths
  gen_mapfile(targets, pod_targets, hmap_dir)
end