cocoapods-binary-matchup 0.0.19 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29a67f3c826a3e9a9484ea9134684416586890c98fd713e4400cab569680f01a
|
4
|
+
data.tar.gz: be4047206d31ad740cf2816c7064a07b887b5ea056e42bf5244ca9fe83689d6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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,
|
@@ -284,7 +290,8 @@ def scan_framework_resources(framework_dir, pod_name)
|
|
284
290
|
'*.nib', # 编译后的xib
|
285
291
|
'*.bundle', # 资源包
|
286
292
|
'*.ttf', '*.otf', # 字体
|
287
|
-
'*.mp3', '*.wav', '*.m4a', '*.mp4', '*.mov' # 媒体
|
293
|
+
'*.mp3', '*.wav', '*.m4a', '*.mp4', '*.mov', # 媒体
|
294
|
+
'*.metallib' # metal or opengl文件
|
288
295
|
]
|
289
296
|
|
290
297
|
# 扫描framework根目录
|