cocoapods-binary-matchup 0.0.20 → 0.0.22

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: 35204da82186a57c4ba756a412e4bf54cad82323cf41cec9f94571de706913d9
4
- data.tar.gz: 8370ce7b81ab1899146fdd7db8ce840ff4fad7c38b03995bdcc99fd8c30fddaa
3
+ metadata.gz: 29a67f3c826a3e9a9484ea9134684416586890c98fd713e4400cab569680f01a
4
+ data.tar.gz: be4047206d31ad740cf2816c7064a07b887b5ea056e42bf5244ca9fe83689d6d
5
5
  SHA512:
6
- metadata.gz: '000708c3be09ad3aab5096bf9e427b50d1e2c6d6aa38d1d61c355390b550748a2fb9d961f7e13061a38fe6fcbf07f2ed26352bdedd605346838b6c411eff4d56'
7
- data.tar.gz: 6ff11604344cff43cd68cb381aa4bda9d2054a1d6fdfd0140f8216896147c07a989d6db7b4772a23894ff90602574561fc1436f0c1463ebb54203cc96f38bcc8
6
+ metadata.gz: 1504f6e56481955e29340bb99dfc7591e62bff64d326d0bd143372be3d0b72d000c18fdd12c33cb17f6c6b45f492f03a9160bcd86a8979fa2420fb7b7ccbef87
7
+ data.tar.gz: ebe50d9c83c98873308675bd654fd5b314c26c7196dab582c59b2a8c40c218d9bdb11edfeb780f98c3331b2a906296e3c19501d830321d27fb97685d536c22b3
@@ -5,13 +5,15 @@ module Pod
5
5
 
6
6
  class_attr_accessor :min_deployment_target
7
7
 
8
+ class_attr_accessor :main_deployment_target_name
9
+
8
10
  module PrebuildCache
9
11
 
10
12
  class Cache
11
13
 
12
14
  # 获取缓存根目录
13
15
  def self.cache_root_dir
14
- cache_dir = File.expand_path("~/.PodCache/#{Pod.min_deployment_target}")
16
+ cache_dir = File.expand_path("~/.PodCache/#{Pod.min_deployment_target}-#{Pod.main_deployment_target_name}")
15
17
  UI.puts "🔍 cache_root_dir #{cache_dir}"
16
18
  FileUtils.mkdir_p(cache_dir) unless Dir.exist?(cache_dir)
17
19
  cache_dir
@@ -104,10 +104,16 @@ Pod::HooksManager.register('cocoapods-binary-matchup', :pre_install) do |install
104
104
  root_target = installer_context.podfile.target_definition_list.first
105
105
  if root_target.platform
106
106
  project_ios_version = root_target.platform.deployment_target
107
- Pod::UI.puts "📱 Project iOS Version: #{project_ios_version.version}"
107
+ target_name = root_target
108
+ Pod::UI.puts "📱 Project iOS Version: #{project_ios_version.version}, name: #{target_name}"
108
109
  Pod.min_deployment_target = project_ios_version.version
109
110
  end
110
111
 
112
+ main_target = installer_context.podfile.target_definition_list[1]
113
+ if main_target.platform
114
+ Pod::UI.puts "📱 Project Main Target name: #{main_target.name}"
115
+ Pod.main_deployment_target_name = main_target.name
116
+ end
111
117
 
112
118
  # -- step 1: prebuild framework ---
113
119
  # Execute a sperated pod install, to generate targets for building framework,
@@ -1,3 +1,3 @@
1
1
  module CocoapodsBinary
2
- VERSION = "0.0.20"
2
+ VERSION = "0.0.22"
3
3
  end
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.20
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - leavez