Sha256: ddd0fe97657f4e604c9e214a0185c2fae60a7d3857b557c403305d35e659573c
Contents?: true
Size: 905 Bytes
Versions: 21
Compression:
Stored size: 905 Bytes
Contents
require 'cocoapods-bb-PodAssistant/config/stable_source' require 'cocoapods-bb-PodAssistant/helpers/pod_utils' module BB class Cache def initialize(stable_source = nil, verify_stable_env=true) if stable_source.nil? stable_source = StableSource.stable_default_source end @stable_source = stable_source if verify_stable_env && File.exist?(File.join(Pathname.pwd, "Podfile")) @bundleId = BB::PodUtils.getProjectBundleIdentifier end if @bundleId.nil? @bundleId = 'stable' end end def cachePath() # 缓存路径采用bundle包名区分,解决多产品同时打包问题 File.join(File.expand_path('~/.cache'), 'cocoapods-bb-PodAssistant',@bundleId,@stable_source.split('/').last.chomp('.git').to_s) end end end
Version data entries
21 entries across 21 versions & 1 rubygems