Module: Pod::Podfile::DSL
- Defined in:
- lib/cocoapods-spm/def/podfile.rb
Instance Method Summary collapse
- #config_cocoapods_spm(options) ⇒ Object
- #macro_pods ⇒ Object
- #origin_pod ⇒ Object
- #pod(name = nil, *requirements) ⇒ Object
- #spm_pkg(name, options) ⇒ Object
Instance Method Details
#config_cocoapods_spm(options) ⇒ Object
7 8 9 |
# File 'lib/cocoapods-spm/def/podfile.rb', line 7 def config_cocoapods_spm() SPM::Config.instance.dsl_config = end |
#macro_pods ⇒ Object
11 12 13 |
# File 'lib/cocoapods-spm/def/podfile.rb', line 11 def macro_pods @macro_pods ||= {} end |
#origin_pod ⇒ Object
6 |
# File 'lib/cocoapods-spm/def/podfile.rb', line 6 alias origin_pod pod |
#pod(name = nil, *requirements) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/cocoapods-spm/def/podfile.rb', line 15 def pod(name = nil, *requirements) macro = requirements[0].delete(:macro) if requirements.first.is_a?(Hash) macro ||= {} unless macro.empty? requirements[0][:path] = prepare_macro_pod_dir(name, macro) macro_pods[name] = macro end origin_pod(name, *requirements) end |
#spm_pkg(name, options) ⇒ Object
25 26 27 |
# File 'lib/cocoapods-spm/def/podfile.rb', line 25 def spm_pkg(name, ) current_target_definition.store_spm_pkg(name, ) end |