cocoapods-meitu-bin 1.3.0 → 1.3.1
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: d27332c19899d2616ca39da9eb2d13d98184216975d6f1408bdb162856bcc24a
|
4
|
+
data.tar.gz: eee1c74f1fa28b591eb67f7bddeab453c070ace04fccc336cb9ada5935b11364
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a33d6edea1cc51c1a0a17717235e2ee102d7d2ca207d3c1560b3c3ea11082b01c545f9152c8e7e06f1d5ee52381049447418fad9fc290d94044fa3ced8cb090e
|
7
|
+
data.tar.gz: db8b46477b4cc6c4533c28f0130f623650f48cf6bb88b56f1e0c0aedd0c5d4216fc09de5ba4456c97121d00ed7f3a29f1327d757d4710370e784fa77ce91d520
|
@@ -132,7 +132,7 @@ module Pod
|
|
132
132
|
|
133
133
|
start_time = Time.now
|
134
134
|
@activated = Molinillo::Resolver.new(self, self).resolve(dependencies, locked_dependencies)
|
135
|
-
UI.puts "Molinillo resolve耗时:#{'%.1f' % (Time.now - start_time)}s".green
|
135
|
+
UI.puts "pod_time_profiler: Molinillo resolve耗时:#{'%.1f' % (Time.now - start_time)}s".green
|
136
136
|
resolver_specs_by_target
|
137
137
|
rescue Molinillo::ResolverError => e
|
138
138
|
handle_resolver_error(e)
|
@@ -15,7 +15,7 @@ def get_podfile_lock
|
|
15
15
|
#获取 PODFILE CHECKSUM 用来判断服务端是否存在该podfile.lock
|
16
16
|
checksum = get_checksum(Pod::Config.instance.podfile_path)
|
17
17
|
PodUpdateConfig.set_checksum(checksum)
|
18
|
-
#目前只支持MTXX target "MTXX" 项目
|
18
|
+
#目前只支持MTXX target "MTXX" 项目 想要支持其他项目可以添加对应 target "xxx"
|
19
19
|
content = File.read(Pod::Config.instance.podfile_path)
|
20
20
|
if content
|
21
21
|
if content.include?("target \"MTXX\"")
|
@@ -38,13 +38,13 @@ def get_podfile_lock
|
|
38
38
|
end
|
39
39
|
# podfile.lock文件下载和使用逻辑
|
40
40
|
if is_load_podfile_lock
|
41
|
-
Pod::UI.puts "当前podfile文件的checksum:#{checksum}".green
|
41
|
+
Pod::UI.puts "pod_time_profiler: 当前podfile文件的checksum:#{checksum}".green
|
42
42
|
# zip下载地址
|
43
43
|
curl = "https://xiuxiu-dl-meitu-com.obs.cn-north-4.myhuaweicloud.com/ios/binary/MTXX/#{checksum}/podfile.lock.zip"
|
44
44
|
# 判断服务端是否存在该podfile.lock
|
45
45
|
is_load_podfile_lock = false
|
46
46
|
if system("curl -o /dev/null -s -w %{http_code} #{curl} | grep 200 > /dev/null 2>&1")
|
47
|
-
Pod::UI.puts "匹配到精准podfile.lock文件,使用当前podfile文件的checksum:#{checksum}获取对应的podfile.lock文件".green
|
47
|
+
Pod::UI.puts "pod_time_profiler: 匹配到精准podfile.lock文件,使用当前podfile文件的checksum:#{checksum}获取对应的podfile.lock文件".green
|
48
48
|
is_load_podfile_lock = true
|
49
49
|
end
|
50
50
|
|
@@ -52,27 +52,27 @@ def get_podfile_lock
|
|
52
52
|
branch_value = get_branch_name
|
53
53
|
curl = "https://xiuxiu-dl-meitu-com.obs.cn-north-4.myhuaweicloud.com/ios/binary/MTXX/#{branch_value}/podfile.lock.zip"
|
54
54
|
if system("curl -o /dev/null -s -w %{http_code} #{curl} | grep 200 > /dev/null 2>&1")
|
55
|
-
Pod::UI.puts "无法匹配到精准podfile.lock文件,使用当前分支:#{branch_value} 对应的podfile.lock文件".green
|
55
|
+
Pod::UI.puts "pod_time_profiler: 无法匹配到精准podfile.lock文件,使用当前分支:#{branch_value} 对应的podfile.lock文件".green
|
56
56
|
is_load_podfile_lock = true
|
57
57
|
end
|
58
58
|
#兜底使用develop的podfile.lock
|
59
59
|
if !is_load_podfile_lock
|
60
|
-
Pod::UI.puts "服务端不存在该podfile.lock文件,使用develop分支的podfile.lock文件兜底".green
|
60
|
+
Pod::UI.puts "pod_time_profiler: 服务端不存在该podfile.lock文件,使用develop分支的podfile.lock文件兜底".green
|
61
61
|
curl = "https://xiuxiu-dl-meitu-com.obs.cn-north-4.myhuaweicloud.com/ios/binary/MTXX/develop/podfile.lock.zip"
|
62
62
|
is_load_podfile_lock = true
|
63
63
|
end
|
64
64
|
end
|
65
65
|
# 判断是否需要下载podfile.lock文件
|
66
66
|
if is_load_podfile_lock
|
67
|
-
Pod::UI.puts "获取服务端存储的podfile.lcok文件".green
|
67
|
+
Pod::UI.puts "pod_time_profiler: 获取服务端存储的podfile.lcok文件".green
|
68
68
|
#下载并解压的podfile.zip文件
|
69
69
|
if system("curl -O #{curl} > /dev/null 2>&1") && system("unzip -o podfile.lock.zip > /dev/null 2>&1")
|
70
|
-
Pod::UI.puts "下载并解压podfile.lcok文件成功".green
|
70
|
+
Pod::UI.puts "pod_time_profiler: 下载并解压podfile.lcok文件成功".green
|
71
71
|
`rm -rf podfile.lock.zip`
|
72
72
|
# 设置获取到的podfile.lock对象
|
73
73
|
PodUpdateConfig.set_lockfile(Pod::Config.instance.installation_root + 'Podfile.lock')
|
74
74
|
#获取analyzer
|
75
|
-
Pod::UI.puts "提前根据checksum命中podfile.lcok进行依赖分析".green
|
75
|
+
Pod::UI.puts "pod_time_profiler: 提前根据checksum命中podfile.lcok进行依赖分析".green
|
76
76
|
analyzer = Pod::Installer::Analyzer.new(
|
77
77
|
Pod::Config.instance.sandbox,
|
78
78
|
Pod::Config.instance.podfile,
|
@@ -89,13 +89,13 @@ def get_podfile_lock
|
|
89
89
|
end
|
90
90
|
end
|
91
91
|
else
|
92
|
-
puts "获取podfile.lcok文件失败"
|
92
|
+
puts "pod_time_profiler: 获取podfile.lcok文件失败"
|
93
93
|
`rm -rf podfile.lock.zip`
|
94
94
|
end
|
95
95
|
end
|
96
96
|
end
|
97
97
|
rescue => error
|
98
|
-
puts "podfile.lcok相关处理发生异常,报错原因:#{error}"
|
98
|
+
puts "pod_time_profiler: podfile.lcok相关处理发生异常,报错原因:#{error}"
|
99
99
|
PodUpdateConfig.clear
|
100
100
|
`rm -rf podfile.lock.zip`
|
101
101
|
`rm -rf podfile.lock`
|
@@ -109,20 +109,20 @@ def upload_podfile_lock(checksum,upload = false)
|
|
109
109
|
curl = "https://xiuxiu-dl-meitu-com.obs.cn-north-4.myhuaweicloud.com/ios/binary/MTXX/#{checksum}/podfile.lock.zip"
|
110
110
|
# 服务端不存在该podfiel.lock文件才上传,避免频繁上报同一个文件
|
111
111
|
if upload || !system("curl -o /dev/null -s -w %{http_code} #{curl} | grep 200 > /dev/null 2>&1")
|
112
|
-
Pod::UI.puts "根据checksum:#{checksum}上报podfile.lcok文件到服务端".green
|
112
|
+
Pod::UI.puts "pod_time_profiler: 根据checksum:#{checksum}上报podfile.lcok文件到服务端".green
|
113
113
|
if upload
|
114
|
-
puts "mbox工作目录/mtxx/MTXX/podfile 对应的checksum = #{checksum}"
|
114
|
+
puts "pod_time_profiler: mbox工作目录/mtxx/MTXX/podfile 对应的checksum = #{checksum}"
|
115
115
|
end
|
116
116
|
if system("zip podfile.lock.zip Podfile.lock > /dev/null 2>&1") && system("curl -F \"name=MTXX\" -F \"version=#{checksum}\" -F \"file=@#{Pathname.pwd}/podfile.lock.zip\" http://nezha.community.cloud.meitu.com/file/upload.json > /dev/null 2>&1")
|
117
|
-
Pod::UI.puts "上报podfile.lcok文件到服务端成功".green
|
117
|
+
Pod::UI.puts "pod_time_profiler: 上报podfile.lcok文件到服务端成功".green
|
118
118
|
`rm -rf podfile.lock.zip`
|
119
119
|
else
|
120
|
-
Pod::UI.puts "上报podfile.lcok文件到服务端失败".red
|
120
|
+
Pod::UI.puts "pod_time_profiler: 上报podfile.lcok文件到服务端失败".red
|
121
121
|
`rm -rf podfile.lock.zip`
|
122
122
|
end
|
123
123
|
end
|
124
124
|
rescue => error
|
125
|
-
puts "上传podfile.lcok文件失败,失败原因:#{error}"
|
125
|
+
puts "pod_time_profiler: 上传podfile.lcok文件失败,失败原因:#{error}"
|
126
126
|
`rm -rf podfile.zip`
|
127
127
|
end
|
128
128
|
end
|
@@ -134,7 +134,7 @@ def upload_mbox_podfile_lock
|
|
134
134
|
upload_podfile_lock(checksum,true )
|
135
135
|
end
|
136
136
|
rescue => error
|
137
|
-
puts "mbox podfile.lcok文件兼容处理失败,失败原因:#{error}"
|
137
|
+
puts "pod_time_profiler: mbox podfile.lcok文件兼容处理失败,失败原因:#{error}"
|
138
138
|
end
|
139
139
|
end
|
140
140
|
def upload_branch_podfile_lock
|
@@ -142,10 +142,10 @@ def upload_branch_podfile_lock
|
|
142
142
|
branch_value = get_branch_name
|
143
143
|
if branch_value && branch_value.is_a?(String) && branch_value.length > 0
|
144
144
|
if system("zip podfile.lock.zip Podfile.lock > /dev/null 2>&1") && system("curl -F \"name=MTXX\" -F \"version=#{branch_value}\" -F \"file=@#{Pathname.pwd}/podfile.lock.zip\" http://nezha.community.cloud.meitu.com/file/upload.json > /dev/null 2>&1")
|
145
|
-
Pod::UI.puts "根据开发分支名:#{branch_value}上报podfile.lcok文件到服务端成功".green
|
145
|
+
Pod::UI.puts "pod_time_profiler: 根据开发分支名:#{branch_value}上报podfile.lcok文件到服务端成功".green
|
146
146
|
`rm -rf podfile.lock.zip`
|
147
147
|
else
|
148
|
-
Pod::UI.puts "根据开发分支名:#{branch_value}上报podfile.lcok文件到服务端失败".red
|
148
|
+
Pod::UI.puts "pod_time_profiler: 根据开发分支名:#{branch_value}上报podfile.lcok文件到服务端失败".red
|
149
149
|
`rm -rf podfile.lock.zip`
|
150
150
|
end
|
151
151
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-meitu-bin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jensen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|