Sha256: 4babecac6d8a7053f85f3a806262def28826166759095ae1cb4ec501222d196b

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

# !/usr/bin/env ruby
# built-in black list pods (long import path not supported
# you can use hmap_black_pod_list to add other pods
$hmap_black_pod_list = [
  'GoogleUtilities',
  'MeshPipe',
  'GoogleDataTransport',
  'FirebaseCoreDiagnostics',
  'FirebaseCore',
  'FirebaseCrashlytics',
  'FirebaseInstallations',
  'CoreDragon',
  'Objective-LevelDB'
]

$strict_mode = false
$prebuilt_hmap_for_pod_targets = true

module Pod
  class Podfile
      module DSL
          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

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-project-hmap-0.0.4 lib/cocoapods-project-hmap/podfile_dsl.rb
cocoapods-project-hmap-0.0.3 lib/cocoapods-project-hmap/podfile_dsl.rb