Module: Pod::Podfile::DSL

Included in:
Command::Bin::Update
Defined in:
lib/cocoapods-meitu-bin/native/podfile.rb

Instance Method Summary collapse

Instance Method Details

#allow_prerelease!Object



10
11
12
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 10

def allow_prerelease!
  set_internal_hash_value(ALLOW_PRERELEASE, true)
end

#include_dependencies!(flag = false) ⇒ Object



18
19
20
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 18

def include_dependencies!(flag = false)
  set_internal_hash_value(INCLUDE_DEPENDENCIES, flag)
end

#set_binary_version_pods(pods) ⇒ Object

设置参与二进制库版本号生成的组件名称



47
48
49
50
51
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 47

def set_binary_version_pods(pods)
  hash_binary_version_pods = get_internal_hash_value(BINARY_VERSION_PODS) || []
  hash_binary_version_pods += Array(pods)
  set_internal_hash_value(BINARY_VERSION_PODS, hash_binary_version_pods)
end

#set_configuration(config = 'Debug') ⇒ Object



34
35
36
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 34

def set_configuration(config = 'Debug')
  set_internal_hash_value(CONFIGURATION, config)
end

#set_configuration_env(env = "dev") ⇒ Object

0 dev 1 debug_iphoneos 2 release_iphoneos 需要在podfile_env 先定义 CONFIGURATION_ENV



42
43
44
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 42

def set_configuration_env(env = "dev")
  set_internal_hash_value(CONFIGURATION_ENV, env)
end

#set_use_source_pods(pods) ⇒ Object



28
29
30
31
32
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 28

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



14
15
16
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 14

def use_binaries!(flag = true)
  set_internal_hash_value(USE_BINARIES, flag)
end

#use_binaries_with_spec_selector!(&block) ⇒ Object

Raises:

  • (Informative)


22
23
24
25
26
# File 'lib/cocoapods-meitu-bin/native/podfile.rb', line 22

def use_binaries_with_spec_selector!(&block)
  raise Informative, '必须提供选择需要二进制组件的 block !' unless block_given?

  set_internal_hash_value(USE_BINARIES_SELECTOR, block)
end