cocoapods-meitu-bin 1.4.0 → 2.0.0

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: 471b86e9797ce3ab7f09877755b0c3473baa5ea31ff3d3f19694dd829059b033
4
- data.tar.gz: eef8b276868277386cc2153030a0f8dab00ee0fba7d4574d05c04406879e3aa7
3
+ metadata.gz: 86aab10f2c27b3bfbdf44ed3b6874b7d6be473bb91dcd8a51c0e5906547d48e6
4
+ data.tar.gz: a3b0f074a9ee8c24c8043c558314ea3bdfc3b28d1513e87909717547819b8460
5
5
  SHA512:
6
- metadata.gz: 56f89da57ab03d6622b7c2f5649bd45a68fc89c6dd9847fafcf547da1d6a80255cb33c22ac12629d49e4d272b977d19911fe9a318721e6c7425775464dd3e3e0
7
- data.tar.gz: 41be7d7d12089f6a6c8c74f45d4eda244f478c20634ea27d553b74bccc104b0c6cc6840b91320addf3bd97cf1c51915ea814a66096d0efd53b9f97d63d79ce73
6
+ metadata.gz: '088de3a018fda2b6b9215b61a26e101881fd4ca2a5a1f2ec9c4a9a4773b4ac3d11c4cd880a4ee979fc776a76bb54fcada03ae198b7dc14096903ee8d43a78f1c'
7
+ data.tar.gz: 7bf240596cded061b4dc3f86006c4e47f4fa9d5613a37b9d2655943ad8c980930e639159737fcd5f4ec5d7564cb5deecf7918ccfacaaf03257bb8a72a1026763
@@ -3,6 +3,7 @@ require 'cocoapods-meitu-bin/native/podfile'
3
3
  require 'cocoapods-meitu-bin/native/podfile_env'
4
4
  require 'cocoapods/generate'
5
5
  require 'cocoapods'
6
+ require 'ostruct'
6
7
  module CBin
7
8
  class Config
8
9
  def config_file
@@ -1,5 +1,5 @@
1
1
  module CBin
2
- VERSION = "1.4.0"
2
+ VERSION = "2.0.0"
3
3
  end
4
4
 
5
5
  module Pod
@@ -352,23 +352,24 @@ ibtool \
352
352
  fwks_dir = "#{result_product_dir}/fwks"
353
353
  FileUtils.mkdir(fwks_dir) unless File.exist?(fwks_dir)
354
354
  fwks.map do |fwk|
355
- new_fwk = get_XCFrameworkIntermediates_path(fwk)
356
- if new_fwk && File.exist?(new_fwk)
357
- `rsync -av #{new_fwk} #{fwks_dir}`
358
- else
359
- `rsync -av #{fwk} #{fwks_dir}`
360
- end
361
- end
362
- end
363
- def get_XCFrameworkIntermediates_path(path)
364
- # 使用正则表达式匹配并提取 AdsFramework
365
- match = path.to_s.match(/\/([^\/]+)\.xcframework/)
366
- if match
367
- framework_path = "#{product_dir}/#{iphoneos}/XCFrameworkIntermediates/#{match[1]}/#{match[1]}.framework"
368
- return framework_path
355
+ `rsync -av #{fwk} #{fwks_dir}`
356
+ # new_fwk = get_XCFrameworkIntermediates_path(fwk)
357
+ # if new_fwk && File.exist?(new_fwk)
358
+ # `rsync -av #{new_fwk} #{fwks_dir}`
359
+ # else
360
+ # `rsync -av #{fwk} #{fwks_dir}`
361
+ # end
369
362
  end
370
- return nil
371
363
  end
364
+ # def get_XCFrameworkIntermediates_path(path)
365
+ # # 使用正则表达式匹配并提取 AdsFramework
366
+ # match = path.to_s.match(/\/([^\/]+)\.xcframework/)
367
+ # if match
368
+ # framework_path = "#{product_dir}/#{iphoneos}/XCFrameworkIntermediates/#{match[1]}/#{match[1]}.framework"
369
+ # return framework_path
370
+ # end
371
+ # return nil
372
+ # end
372
373
 
373
374
  # 拷贝 framework
374
375
  def copy_framework
@@ -27,7 +27,7 @@ module CBin
27
27
  # 处理vendored_libraries和vendored_frameworks
28
28
  spec['vendored_libraries'] = "#{root_dir}/libs/*.a"
29
29
  #兼容.xcframework
30
- spec['vendored_frameworks'] = %W[#{root_dir} #{root_dir}/fwks/*.framework]
30
+ spec['vendored_frameworks'] = %W[#{root_dir} #{root_dir}/fwks/*.{framework,xcframework}]
31
31
  # 处理资源
32
32
  resources = %W[#{root_dir}/*.{#{special_resource_exts.join(',')}} #{root_dir}/resources/*]
33
33
  spec['resources'] = resources
@@ -23,6 +23,10 @@ module Pod
23
23
 
24
24
  # 并发执行个数
25
25
  option :multi_threads_count, 4
26
+
27
+ # 默认并发下载
28
+ defaults.delete('parallel_pod_downloads')
29
+ option :parallel_pod_downloads, true
26
30
  end
27
31
  end
28
32
  end
@@ -6,14 +6,17 @@ module Pod
6
6
  class Installer
7
7
  class PodSourceInstaller
8
8
  attr_accessor :installation_options
9
-
10
- alias old_verify_source_is_secure verify_source_is_secure
11
- def verify_source_is_secure(root_spec)
12
- # http source 默认不警告
13
- if installation_options.warn_for_unsecure_source?
14
- old_verify_source_is_secure(root_spec)
15
- end
16
- end
17
9
  end
10
+ # class PodSourceDownloader
11
+ # attr_accessor :installation_options
12
+ #
13
+ # alias old_verify_source_is_secure verify_source_is_secure
14
+ # def verify_source_is_secure(root_spec)
15
+ # # http source 默认不警告
16
+ # if installation_options.warn_for_unsecure_source?
17
+ # old_verify_source_is_secure(root_spec)
18
+ # end
19
+ # end
20
+ # end
18
21
  end
19
22
  end
@@ -203,6 +203,13 @@ Pod::HooksManager.register('cocoapods-meitu-bin', :pre_install) do |_context|
203
203
  Pod::UI.puts "当前configuration: `#{ENV['configuration'] || Pod::Config.instance.podfile.configuration}`".green
204
204
  # pod bin repo update 更新二进制私有源
205
205
  Pod::Command::Bin::Repo::Update.new(CLAide::ARGV.new($ARGV)).run
206
+ #获取analyzer中所有git 且branch 指向的pod
207
+ Pod::Config.instance.podfile.dependencies.map do |dependency|
208
+ if dependency.external_source && dependency.external_source[:git] && (dependency.external_source[:branch] || (dependency.external_source.size == 1))
209
+ #brash 指定的组件添加到全局PodUpdateConfig配置中,执行pod install 需要更新的分支最新提交
210
+ PodUpdateConfig.add_value(dependency.name)
211
+ end
212
+ end
206
213
  content = File.read(Pod::Config.instance.podfile_path)
207
214
  if content
208
215
  if content.include?("target \"MTXX\"")
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.4.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-05 00:00:00.000000000 Z
11
+ date: 2024-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel