75
76
77
78
79
80
81
82
83
84
85
86
87
|
# File 'lib/cocoapods/installer/project_cache/project_installation_cache.rb', line 75
def self.from_file(sandbox, path)
return ProjectInstallationCache.new unless File.exist?(path)
contents = YAMLHelper.load_file(path)
cache_keys = contents.fetch('CACHE_KEYS', {})
cache_key_by_target_label = Hash[cache_keys.map do |name, key_hash|
[name, TargetCacheKey.from_cache_hash(sandbox, key_hash)]
end]
project_object_version = contents['OBJECT_VERSION']
build_configurations = contents['BUILD_CONFIGURATIONS']
podfile_plugins = contents['PLUGINS']
installation_options = contents['INSTALLATION_OPTIONS']
ProjectInstallationCache.new(cache_key_by_target_label, build_configurations, project_object_version, podfile_plugins, installation_options)
end
|