lib/cocoapods-jxedt/binary/hooks/pre_install.rb in cocoapods-jxedt-0.0.15 vs lib/cocoapods-jxedt/binary/hooks/pre_install.rb in cocoapods-jxedt-0.0.16
- old
+ new
@@ -43,13 +43,14 @@
require_relative '../prebuild'
# fetch cache and sync
if Jxedt.config.cache_repo_enabled? && Jxedt.config.auto_fetch?
log_section "š Fetch git cache"
- pods = prebuild_sandbox.source_lockfile.internal_data["SPEC CHECKSUMS"].keys
- binary_hash = pods.reduce({}) do |hash, name|
+ # ē»č®”éč¦prebuildētargets
+ prebuild_pods = Jxedt::Prebuild.new(source_installer).targets_to_prebuild.map(&:pod_name)
+ binary_hash = prebuild_pods.reduce({}) do |hash, name|
checksum = prebuild_sandbox.source_lockfile.spec_checksums_hash_key(name)
- hash.update(name => checksum) unless checksum.nil?
+ hash.update(name => checksum)
end
require 'cocoapods-jxedt/git_helper/cache_fetcher'
binary_dir = @installer_context.sandbox.standard_sandbox_root + Jxedt.config.binary_dir
Jxedt::CacheFetcher.sync(binary_hash, binary_dir)
\ No newline at end of file