Module: Pod::Podfile::DSL
- Included in:
- Command::Bin::Update
- Defined in:
- lib/cocoapods-fy-bin/native/podfile.rb
Overview
TREAT_DEVELOPMENTS_AS_NORMAL = ‘treat_developments_as_normal’.freeze
Instance Method Summary collapse
- #allow_prerelease! ⇒ Object
-
#set_configuration_env(env = "debug") ⇒ Object
1 debug 2 release 需要在podfile_env 先定义 CONFIGURATION_ENV.
- #set_use_source_pods(pods) ⇒ Object
- #use_binaries!(flag = true) ⇒ Object
- #use_binaries_with_spec_selector!(&block) ⇒ Object
Instance Method Details
#allow_prerelease! ⇒ Object
11 12 13 |
# File 'lib/cocoapods-fy-bin/native/podfile.rb', line 11 def allow_prerelease! set_internal_hash_value(ALLOW_PRERELEASE, true) end |
#set_configuration_env(env = "debug") ⇒ Object
1 debug 2 release 需要在podfile_env 先定义 CONFIGURATION_ENV
34 35 36 |
# File 'lib/cocoapods-fy-bin/native/podfile.rb', line 34 def set_configuration_env(env = "debug") set_internal_hash_value(CONFIGURATION_ENV, env) end |
#set_use_source_pods(pods) ⇒ Object
25 26 27 28 29 |
# File 'lib/cocoapods-fy-bin/native/podfile.rb', line 25 def set_use_source_pods(pods) hash_pods_use_source = get_internal_hash_value(USE_SOURCE_PODS) || [] hash_pods_use_source += Array(pods) set_internal_hash_value(USE_SOURCE_PODS, hash_pods_use_source) end |
#use_binaries!(flag = true) ⇒ Object
15 16 17 |
# File 'lib/cocoapods-fy-bin/native/podfile.rb', line 15 def use_binaries!(flag = true) set_internal_hash_value(USE_BINARIES, flag) end |
#use_binaries_with_spec_selector!(&block) ⇒ Object
19 20 21 22 23 |
# File 'lib/cocoapods-fy-bin/native/podfile.rb', line 19 def use_binaries_with_spec_selector!(&block) raise Informative, '必须提供选择需要二进制组件的 block !' unless block_given? set_internal_hash_value(USE_BINARIES_SELECTOR, block) end |