cocoapods-meitu-bin 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56df1ca5fc20d16f6cdbc2aaada6d1118af7b0cb95867057da93ef80af119c85
4
- data.tar.gz: d0bd9f61753c5131fbb49ab175295b7de30fc88a568827199cda409fa4105ed6
3
+ metadata.gz: 73b976c903602c05d082f8e8cc8c0c886e831b786aebc4a7a32696caeba4fe6d
4
+ data.tar.gz: 6f2d1a869d95fa1a99a1ccc2a8bae5d6bcc24c67b92d0baf0d22c9d9b9feb291
5
5
  SHA512:
6
- metadata.gz: 3b9c119faaf7a735b139d8bf84f277d603e035456e9e8bf0c437a331c8ce27c7685e4d7b10181170ec4e44692c01e77e033401673681098f1bd38fad5b8d70bf
7
- data.tar.gz: 7eea023f3c6fc7dbf97968fb08d7d8234d3acfb49e989cf722bc57cc851035868da1dda2f066ae56e61c252a82c3501a31322fe09ee13159da19cd463b800d09
6
+ metadata.gz: 2e2b1fe99071023e22bcefe5364b62b00f0baa495091a4e4663bd2b0caea510cdc8de77a29b66afc8111deeb915ca3e0f42aece646451a1ad04f66146656edbd
7
+ data.tar.gz: 44611af9f2e3fcbe147012cb55999ac48696e05c5dfde4bce29ce9f2280e19d02aaf26cc63e6d04c43d2f20359e0f12248f5de94bd431791dc9b005c04675bca
@@ -1,5 +1,5 @@
1
1
  module CBin
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
4
4
 
5
5
  module Pod
@@ -16,7 +16,6 @@ def get_podfile_lock
16
16
  end
17
17
  # 判断是否有update参数 时不获取服务端podfile.lock文件
18
18
  ARGV.each do |arg|
19
- puts "pod 执行 #{arg}"
20
19
  if arg == 'update'
21
20
  is_load_podfile_lock = false
22
21
  end
@@ -26,6 +25,14 @@ def get_podfile_lock
26
25
  #获取 PODFILE CHECKSUM 用来判断服务端是否存在该podfile.lock
27
26
  checksum = Pod::Config.instance.podfile.checksum
28
27
  puts checksum
28
+ # lock = Pod::Config.instance.lockfile
29
+ # list = lock.internal_data['SPEC REPOS']['https://github.com/CocoaPods/Specs.git']
30
+ # #遍历 list
31
+ # name_list = []
32
+ # list.each do |item|
33
+ # name_list << item
34
+ # # `echo #{item} >> /Users/sunxianglong/Desktop/work/data.txt`
35
+ # end
29
36
  # zip下载地址
30
37
  curl = "https://xiuxiu-dl-meitu-com.obs.cn-north-4.myhuaweicloud.com/ios/binary/MTXX/#{checksum}/podfile.lock.zip"
31
38
  # 判断zip文件是否存在 存在下载并解压
@@ -44,8 +51,15 @@ def get_podfile_lock
44
51
  Pod::Config.instance.podfile,
45
52
  PodUpdateConfig.lockfile
46
53
  )
54
+ analyzer.update_repositories
47
55
  analyzer.analyze(true)
48
56
 
57
+ # analyzer.instance_variable_get("@result").pod_targets.each do |pod_target|
58
+ # if name_list.include?(pod_target.name)
59
+ # # "#{SPEC_NAME}/#{VERSION}/#{SPEC_NAME}.podspec"
60
+ # end
61
+ # end
62
+
49
63
  #获取analyzer中所有git 且branch 指向的pod
50
64
  Pod::Config.instance.podfile.dependencies.map do |dependency|
51
65
  if dependency.external_source && dependency.external_source[:git] && (dependency.external_source[:branch] || (dependency.external_source.size == 1))
@@ -112,10 +126,11 @@ Pod::HooksManager.register('cocoapods-meitu-bin', :pre_install) do |_context|
112
126
  # puts Pod::Config.instance
113
127
  # installer = Installer.new(config.sandbox, config.podfile, config.lockfile)
114
128
  # puts checksum
115
- get_podfile_lock
116
129
  # pod bin repo update 更新二进制私有源
117
130
  Pod::Command::Bin::Repo::Update.new(CLAide::ARGV.new($ARGV)).run
118
131
 
132
+ get_podfile_lock
133
+
119
134
  # 有插件/本地库 且是dev环境下,默认进入源码白名单 过滤 archive命令
120
135
  if _context.podfile.plugins.keys.include?('cocoapods-meitu-bin') && _context.podfile.configuration_env == 'dev'
121
136
  dependencies = _context.podfile.dependencies
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.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-18 00:00:00.000000000 Z
11
+ date: 2023-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel