Class: Pod::Podfile

Inherits:
Object
  • Object
show all
Extended by:
ENVExecutor
Defined in:
lib/cocoapods-meitu-bin/native/podfile.rb,
lib/cocoapods-meitu-bin/native/podfile_env.rb

Defined Under Namespace

Modules: DSL, ENVExecutor

Constant Summary collapse

BINARY_VERSION_PODS =

TREAT_DEVELOPMENTS_AS_NORMAL = ‘treat_developments_as_normal’.freeze

'binary_version_pods'.freeze
USE_BINARIES =
'use_binaries'
USE_SOURCE_PODS =
'use_source_pods'
USE_BINARIES_SELECTOR =
'use_binaries_selector'
ALLOW_PRERELEASE =
'allow_prerelease'
USE_PLUGINS =
'use_plugins'
CONFIGURATION_ENV =
'configuration_env'
CONFIGURATION =
'configuration'
INCLUDE_DEPENDENCIES =
'include_dependencies'

Instance Method Summary collapse

Methods included from ENVExecutor

execute_with_allow_prerelease, execute_with_bin_plugin, execute_with_key, execute_with_use_binaries

Instance Method Details

#allow_prerelease?Boolean

Returns:

  • (Boolean)


70
71
72
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 70

def allow_prerelease?
  get_internal_hash_value(ALLOW_PRERELEASE, false) || ENV[ALLOW_PRERELEASE] == 'true'
end

#binary_version_podsObject

获取参与二进制库版本号生成的组件名称列表



95
96
97
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 95

def binary_version_pods
  get_internal_hash_value(BINARY_VERSION_PODS, []) + String(ENV[BINARY_VERSION_PODS]).split('|').uniq
end

#configurationObject



90
91
92
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 90

def configuration
  get_internal_hash_value(CONFIGURATION, "Debug")
end

#configuration_envObject



86
87
88
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 86

def configuration_env
  get_internal_hash_value(CONFIGURATION_ENV, "dev") ||  ENV[CONFIGURATION_ENV] == "dev"
end

#include_dependencies?Boolean

Returns:

  • (Boolean)


78
79
80
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 78

def include_dependencies?
  get_internal_hash_value(INCLUDE_DEPENDENCIES, false) || ENV[INCLUDE_DEPENDENCIES] == 'true'
end

#old_pluginsObject



54
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 54

alias old_plugins plugins

#pluginsObject



55
56
57
58
59
60
61
62
63
64
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 55

def plugins
  if ENV[USE_PLUGINS]
    env_plugins = ENV[USE_PLUGINS].split(',').each_with_object({}) do |name, result|
      result[name] = {}
    end
    env_plugins.merge!(old_plugins)
  else
    old_plugins
  end
end

#use_binaries?Boolean

Returns:

  • (Boolean)


74
75
76
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 74

def use_binaries?
  get_internal_hash_value(USE_BINARIES, false) || ENV[USE_BINARIES] == 'true'
end

#use_binaries_selectorObject



66
67
68
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 66

def use_binaries_selector
  get_internal_hash_value(USE_BINARIES_SELECTOR, nil)
end

#use_source_podsObject



82
83
84
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 82

def use_source_pods
  get_internal_hash_value(USE_SOURCE_PODS, []) + String(ENV[USE_SOURCE_PODS]).split('|').uniq
end