Sha256: a985502d27f26b362d838a2b40b3a66968621cf9b1c6fa4737dc16c5a0557d02

Contents?: true

Size: 1004 Bytes

Versions: 5

Compression:

Stored size: 1004 Bytes

Contents

# !/usr/bin/env ruby
# built-in black list pods
# you can use hmap_black_pod_list to add other pods
#
$hmap_enable = false
$hmap_black_pod_list = []
$strict_mode = false
$prebuilt_hmap_for_pod_targets = true

module Pod
  class Podfile
      module DSL

        def set_hmap_enable()
          $hmap_enable = true
        end

        def set_hmap_black_pod_list(pods)
          if pods != nil && pods.size() > 0
            $hmap_black_pod_list.concat(pods)
          end
        end
        # if use strict mode, main project can only use `#import <PodTargetName/SomeHeader.h>`
        # `#import <SomeHeader.h>` will get 'file not found' error
        # as well as PodTarget dependent on other PodTarget
        def set_hmap_use_strict_mode
          $strict_mode = true
        end
        # turn off prebuilt hmap for targets in pod project except the `main` target
        def turn_prebuilt_hmap_off_for_pod_targets
          $prebuilt_hmap_for_pod_targets = false
        end

      end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cocoapods-swordfish-1.0.2 lib/swordfish/hmap/podfile_dsl.rb
cocoapods-swordfish-1.0.1 lib/swordfish/hmap/podfile_dsl.rb
cocoapods-swordfish-1.0.0 lib/swordfish/hmap/podfile_dsl.rb
cocoapods-swordfish-0.1.7 lib/swordfish/hmap/podfile_dsl.rb
cocoapods-swordfish-0.1.6 lib/swordfish/hmap/podfile_dsl.rb