cocoapods-jxedt 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87df49d02d7bd4e47d3a4279b4c075e9a55d260d25adc98223aced2c342bc804
4
- data.tar.gz: 93fe5bda70d2c56b17b5c0e0b692bd96b6b5dc9aef8f7fc4ee014a860ea9f6d4
3
+ metadata.gz: 97f69690fe092a3b3f3ac75812d982e144d4f5e8434e70d999ab81a6d0aeef89
4
+ data.tar.gz: 55319b9dd689f80433855208a24a81b4b85a6b1a898b88b9921b961ef6bae4a0
5
5
  SHA512:
6
- metadata.gz: '09a2a403367a4d7b10b7d8b03741325faeb1a32b4d8af1dedce1712e62ad1f1e3b23b5aacc02a60b069f75c7c3ecca8140ea9962e111b2a89bcd394b5236ab74'
7
- data.tar.gz: 7581173b0772a0a6abb08d71a76a9bf7b72faba95ca61aa7c4ebb09c03adf2af37f7db470f43d04bae33c635fc15430148867f3bafb30997cd8368611828acc3
6
+ metadata.gz: ecbb12c9bb4c7adac71673b5a47d02a80695112d0acfc157585448c761a91e8ee679d091500cbbcecabea583cfa92a76b1ac74738fc07bf3f8a70494f853c2be
7
+ data.tar.gz: 03cb1d511a955cbbe0b6925e1c03a1bc840f09095b91000c5ee581c692d4415adad79fd1b67213c6e712942afcd4d296285ecb9cc8667fdaa51f5a865dadf6d6
@@ -45,10 +45,11 @@ module Jxedt
45
45
  # fetch cache and sync
46
46
  if Jxedt.config.cache_repo_enabled? && Jxedt.config.auto_fetch?
47
47
  log_section "🚗 Fetch git cache"
48
- pods = prebuild_sandbox.source_lockfile.internal_data["SPEC CHECKSUMS"].keys
49
- binary_hash = pods.reduce({}) do |hash, name|
48
+ # 统计需要prebuild的targets
49
+ prebuild_pods = Jxedt::Prebuild.new(source_installer).targets_to_prebuild.map(&:pod_name)
50
+ binary_hash = prebuild_pods.reduce({}) do |hash, name|
50
51
  checksum = prebuild_sandbox.source_lockfile.spec_checksums_hash_key(name)
51
- hash.update(name => checksum) unless checksum.nil?
52
+ hash.update(name => checksum)
52
53
  end
53
54
 
54
55
  require 'cocoapods-jxedt/git_helper/cache_fetcher'
@@ -1,3 +1,3 @@
1
1
  module CocoapodsJxedt
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
@@ -19,6 +19,8 @@ module Jxedt
19
19
  cache_dir = Pathname.new(Jxedt.config.git_cache_path) + "GeneratedFrameworks"
20
20
  to_dir = Pathname.new(to_dir)
21
21
  binary_hash.each do |name, checksum|
22
+ next if checksum.nil?
23
+
22
24
  zip_file = cache_dir + name + "#{checksum}.zip"
23
25
  next unless zip_file.exist?
24
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-jxedt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - guojiashuang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-18 00:00:00.000000000 Z
11
+ date: 2023-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods