Class: Pod::Specification
- Inherits:
-
Object
- Object
- Pod::Specification
- Defined in:
- lib/cocoapods/pod_specification_extension.rb
Constant Summary collapse
- SPM_DEPENDENCIES_BY_POD =
{}
- LOCAL_SPM_DEPENDENCIES_BY_POD =
{}
Instance Method Summary collapse
- #local_spm_dependency(path:, products:) ⇒ Object
- #spm_dependency(url:, requirement:, products:) ⇒ Object
Instance Method Details
#local_spm_dependency(path:, products:) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/cocoapods/pod_specification_extension.rb', line 12 def local_spm_dependency(path:, products:) puts "local dependency #{path}" @local_spm_dependencies ||= [] @local_spm_dependencies << { path: path, products: products} LOCAL_SPM_DEPENDENCIES_BY_POD[self.name] = @local_spm_dependencies end |
#spm_dependency(url:, requirement:, products:) ⇒ Object
6 7 8 9 10 |
# File 'lib/cocoapods/pod_specification_extension.rb', line 6 def spm_dependency(url:, requirement:, products:) @spm_dependencies ||= [] @spm_dependencies << { url: url, requirement: requirement, products: products } SPM_DEPENDENCIES_BY_POD[self.name] = @spm_dependencies end |