Class: Pod::Podfile
- Inherits:
-
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
execute_with_allow_prerelease, execute_with_bin_plugin, execute_with_key, execute_with_use_binaries
Instance Method Details
#allow_prerelease? ⇒ 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_pods ⇒ Object
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
|
#configuration ⇒ Object
90
91
92
|
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 90
def configuration
get_internal_hash_value(CONFIGURATION, "Debug")
end
|
#configuration_env ⇒ Object
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
#old_plugins ⇒ Object
54
|
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 54
alias old_plugins plugins
|
#plugins ⇒ Object
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
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_selector ⇒ Object
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_pods ⇒ Object
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
|