cocoapods-binary-matchup 0.0.3 → 0.0.7

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: ef4ec458a15107993da7504bba8fe4efb967cc17b5a6c1071c398baf00909a94
4
- data.tar.gz: 560eed7893ffa1943dead01c79a0895554ed69aa3b28335a79cb107fd2ffc555
3
+ metadata.gz: e7e74656ba959137bc467283d6f0187e12fdd347d4e32a8febe29378e30edd1f
4
+ data.tar.gz: 2f7a94d654c0bfac6d802ae6146f546883b2c21beb2c39ff25a8fdc079d5bb79
5
5
  SHA512:
6
- metadata.gz: 3bcbce4a8e58f5dd65096887e7a192a97eb906c1f53e57700ccfe54636db507440d13310f3f6f7f52e0ab78d4541238b1c3a0ee65c0d185e544b173d7252c45d
7
- data.tar.gz: '09f215849f244b80f884d7093488a72d50b4988af5d96844466507db75f8da6041f02c32649accf8528c1ccda92390db43eb6c418bfbbdb68c550694adfdc56e'
6
+ metadata.gz: 119f67d579be29c580760217af5bd18fe59a020b50b513acc9151e9ba7b83878db2eefb0e1636709ecf58abc2149e959065c05400fa97e5555a2d51448d8c086
7
+ data.tar.gz: c79dc28fee921124ab5100c8c8e9764191ddfa2af941f7a05500f4e34f5ec1dd10403478ed6500b0fcccde5119acf2588fc02ca40b4b049a96cbe139c6805def
Binary file
@@ -230,16 +230,15 @@ module Pod
230
230
  # copy from original
231
231
  pod_installer = create_pod_installer(pod_name)
232
232
  # \copy from original
233
- UI.puts "🔍 Installing pod: #{pod_name}"
234
- UI.puts "🔍 prebuild_pod_names: #{self.prebuild_pod_names}"
235
- UI.puts "🔍 is_prebuild_pod: #{self.prebuild_pod_names.include?(pod_name)}"
236
233
 
237
234
  if self.prebuild_pod_names.include? pod_name
238
- UI.puts "📦 Installing prebuild pod: #{pod_name}"
235
+ UI.puts "📦 [#{Time.now.strftime('%Y-%m-%d %H:%M:%S')}] Installing prebuild pod: #{pod_name}"
239
236
  pod_installer.install_for_prebuild!(self.sandbox)
237
+ UI.puts "📦 [#{Time.now.strftime('%Y-%m-%d %H:%M:%S')}] Installing prebuild pod: #{pod_name}"
240
238
  else
241
- UI.puts "📥 Installing source pod: #{pod_name}"
239
+ UI.puts "📥 [#{Time.now.strftime('%Y-%m-%d %H:%M:%S')}] Installing source pod: #{pod_name}"
242
240
  pod_installer.install!
241
+ UI.puts "📥 [#{Time.now.strftime('%Y-%m-%d %H:%M:%S')}] Installing source pod: #{pod_name}"
243
242
  end
244
243
 
245
244
  # copy from original
@@ -7,7 +7,7 @@ module Pod
7
7
 
8
8
  # 获取缓存根目录
9
9
  def self.cache_root_dir
10
- cache_dir = File.expand_path("~/.PodCache")
10
+ cache_dir = File.expand_path("~/.PodCache/#{Pod::Podfile::DSL.min_deployment_target}")
11
11
  FileUtils.mkdir_p(cache_dir) unless Dir.exist?(cache_dir)
12
12
  cache_dir
13
13
  end
@@ -53,7 +53,6 @@ module Pod
53
53
  # Hash 格式:{"PodName (1.0.0)" => [...]}
54
54
  pod_entry.each do |key, _|
55
55
  key_str = key.to_s
56
- Pod::UI.puts " 📦 Checking hash key: #{key_str}"
57
56
 
58
57
  # 使用更灵活的匹配逻辑,支持subspec
59
58
  match = key_str.match(/^#{Regexp.escape(pod_name)}\s*\(([^)]+)\)/)
@@ -74,7 +73,6 @@ module Pod
74
73
  end
75
74
  elsif pod_entry.is_a?(String)
76
75
  # String 格式:"PodName (1.0.0)"
77
- Pod::UI.puts " 📦 Checking string: #{pod_entry}"
78
76
 
79
77
  match = pod_entry.match(/^#{Regexp.escape(pod_name)}\s*\(([^)]+)\)/)
80
78
  if match
@@ -126,7 +124,6 @@ module Pod
126
124
  if pod_entry.is_a?(Hash)
127
125
  pod_entry.each do |key, _|
128
126
  key_str = key.to_s
129
- Pod::UI.puts " 📦 Checking hash key: #{key_str}"
130
127
 
131
128
  # 使用更灵活的匹配逻辑,支持subspec
132
129
  match = key_str.match(/^#{Regexp.escape(pod_name)}\s*\(([^)]+)\)/)
@@ -146,7 +143,6 @@ module Pod
146
143
  end
147
144
  elsif pod_entry.is_a?(String)
148
145
  # String 格式:"PodName (1.0.0)"
149
- Pod::UI.puts " 📦 Checking string: #{pod_entry}"
150
146
 
151
147
  match = pod_entry.match(/^#{Regexp.escape(pod_name)}\s*\(([^)]+)\)/)
152
148
  if match
@@ -13,6 +13,7 @@ module Pod
13
13
  DSL.prebuild_all = true
14
14
  end
15
15
 
16
+ # Disable simulator build
16
17
  def simulator_build_disable!
17
18
  DSL.simulator_build_enabled = false
18
19
  end
@@ -29,6 +30,10 @@ module Pod
29
30
  DSL.dont_remove_source_code = true
30
31
  end
31
32
 
33
+ def min_deployment_target(target)
34
+ DSL.min_deployment_target = target
35
+ end
36
+
32
37
  # Add custom xcodebuild option to the prebuilding action
33
38
  #
34
39
  # You may use this for your special demands. For example: the default archs in dSYMs
@@ -63,6 +68,9 @@ module Pod
63
68
  class_attr_accessor :simulator_build_enabled
64
69
  simulator_build_enabled = true
65
70
 
71
+ class_attr_accessor :min_deployment_target
72
+ min_deployment_target = '14.0'
73
+
66
74
  private
67
75
  class_attr_accessor :prebuild_all
68
76
  prebuild_all = false
@@ -132,11 +132,12 @@ module Pod
132
132
  end
133
133
 
134
134
  standard_sandbox_path = sandbox.standard_sanbox_path
135
-
135
+ Pod::UI.puts "📦 [#{Time.now.strftime('%Y-%m-%d %H:%M:%S')}] Prebuild Start pod: #{target.pod_name}"
136
136
  if Pod::PrebuildCache::Cache.restore_from_pod_cache(target.pod_name, sandbox)
137
- Pod::UI.puts "📦 Using exact cache from ~/.PodCache"
137
+ Pod::UI.puts "📦 [#{Time.now.strftime('%Y-%m-%d %H:%M:%S')}] Using exact cache from ~/.PodCache"
138
138
  next
139
139
  end
140
+ Pod::UI.puts "📦 [#{Time.now.strftime('%Y-%m-%d %H:%M:%S')}] Prebuild End pod: #{target.pod_name}"
140
141
 
141
142
  output_path = sandbox.framework_folder_path_for_pod_name(target.name)
142
143
  output_path.mkpath unless output_path.exist?
@@ -1,3 +1,3 @@
1
1
  module CocoapodsBinary
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -21,10 +21,11 @@ def build_for_iosish_platform(sandbox,
21
21
  custom_build_options_simulator = [] # Array<String>
22
22
  )
23
23
 
24
- deployment_target = target.platform.deployment_target.to_s
24
+ deployment_target = Pod::Podfile::DSL.min_deployment_target
25
25
 
26
26
  target_label = target.label # name with platform if it's used in multiple platforms
27
27
  Pod::UI.puts "Prebuilding #{target_label}..."
28
+ Pod::UI.puts "📦 deployment_target: #{deployment_target}"
28
29
 
29
30
  other_options = []
30
31
  # bitcode enabled
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-binary-matchup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - leavez
@@ -99,7 +99,7 @@ files:
99
99
  - LICENSE.txt
100
100
  - README.md
101
101
  - Rakefile
102
- - cocoapods-binary-matchup-0.0.1.gem
102
+ - cocoapods-binary-matchup-0.0.6.gem
103
103
  - cocoapods-binary-matchup.gemspec
104
104
  - lib/cocoapods-binary-matchup/Integration.rb
105
105
  - lib/cocoapods-binary-matchup/Integration_cache.rb
Binary file