Sha256: 0f6ec617d778395c3b43b44afe4cdb5ae998ed2bd5d226298d5a0a81620c7ae8
Contents?: true
Size: 1001 Bytes
Versions: 5
Compression:
Stored size: 1001 Bytes
Contents
require 'swordfish/native/sources_manager.rb' module Ocean module SourcesHelper def sources_manager Pod::Config.instance.sources_manager end def binary_source sources_manager.binary_source end def code_source sources_manager.code_source end # 优先采用对应依赖的 source # cocoapods 内部会先匹配前面符合的 specification # 只允许二进制的 specification subspec 比源码的 specification subspec 多 # def valid_sources(code_dependencies = false) # sources = [code_source] sources = [] unless code_dependencies sources << binary_source sources.reverse! end sources end def sources_option(code_dependencies, additional_sources) sources = valid_sources(code_dependencies).map(&:url) + Array(additional_sources) sources.uniq.join(',') # (valid_sources(code_dependencies).map(&:url) + Array(additional_sources)).join(',') end end end
Version data entries
5 entries across 5 versions & 1 rubygems