cocoapods-bb-PodAssistant 0.3.4 → 0.3.4.1

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: de37439ce64e286bba99591c6fa3d552c4741047c41649b0fade18284b89f464
4
- data.tar.gz: bc8156104b3c243b8c3e4982e8f9a2ae2435126cdbaa36ac6302b5503ad645e0
3
+ metadata.gz: 0a24cd7b06954cf52bdbfadd146a553e51bf3df454eda4faf5e7d39dc9ed4242
4
+ data.tar.gz: b8120a6ff714fdbb252408499e1705542cd594d331287cbe1d1edc7bb60770b2
5
5
  SHA512:
6
- metadata.gz: 420968c996a7c1e97c7c8f91c078673ea03e5262d7629f136e94308d46d26444ed6af2291843da3c48d1735d05ab53ab78f8203c2b0a09ad68f3e7323b56c2ff
7
- data.tar.gz: 2c0714fc01aad44403d8450b296b39e2ca0d7f8f489561df646beceab14c460f113e3b12a92ed02f6f09e3af5d32d96f7146fdcd189fad6910785b6c3b4a8eba
6
+ metadata.gz: bddd78b434de8697f695a1b775bc3bc293ffc58ffc53ff41f6da33a5c08a0776b7b894aadaf3b8695dbb6c325573d697158e384aeaece2a26222c76c8de424b5
7
+ data.tar.gz: d337abb149cd78c5b7ce42bf32f12565367cbf71f1df0783d9e86e08af675ca06580334acaacf34eed3d43023e1e3051c406f5bfbda03c11a3d5db41622267d3
@@ -640,26 +640,51 @@ module BB
640
640
  internal_data = lockfile.internal_data
641
641
  pods = internal_data['PODS']
642
642
  dependencies = lockfile.dependencies
643
+ all_dependency_pods = podfile_lock_pods
643
644
  buss_pod_names.each do | buss_pod_name |
644
645
  local_specs = {}
645
- dependency_pods_list = podfile_lock_pods[buss_pod_name]
646
+ dependency_pods_list = []
646
647
  dependency_pods_list.insert(0, "#{buss_pod_name}") # 需要添加自己控制组件
648
+ pod_list = all_dependency_pods[buss_pod_name]
649
+ if pod_list
650
+ dependency_pods_list.concat(pod_list) # 需要添加自己控制组件
651
+ pod_list.each do | dependency_pod_name |
652
+ if has_pod_subspec(dependency_pod_name, buss_pod_name)
653
+ # 依赖core subspec
654
+ sub_pod_list = all_dependency_pods[dependency_pod_name]
655
+ if sub_pod_list
656
+ dependency_pods_list.concat(sub_pod_list) # 需要添加自己控制组件
657
+ end
658
+ end
659
+ end
660
+ end
661
+ # 可能需要依赖组件库,包含subspec
662
+ dependencies.each do | dependency |
663
+ dependency_pod_name = dependency.name
664
+ if has_pod_subspec(dependency_pod_name, buss_pod_name)
665
+ dependency_pods_list.insert(dependency_pods_list.length, "#{dependency_pod_name}") # 需要添加自己控制组件
666
+ pod_list = all_dependency_pods[dependency_pod_name]
667
+ if pod_list
668
+ dependency_pods_list.concat(pod_list) # 需要添加自己控制组件
669
+ end
670
+ end
671
+ end
647
672
  dependency_pods_list.each do | pod_name |
648
673
  # 指向标签版本
649
674
  version = lockfile.version(pod_name).to_s
650
675
  if !version.empty?
651
676
  local_specs[pod_name] = version
677
+ # puts "pod_name:#{pod_name} version:#{version}".red
652
678
  end
653
679
  # dependencies依赖数据
654
680
  dependencies.each do | dependency |
655
- if dependency.name == pod_name
656
- data = local_specs[pod_name]
657
- if data
658
- if dependency.external_source.is_a? Hash
659
- # 指向分支
660
- external_source = dependency.external_source
661
- local_specs[pod_name] = external_source
662
- end
681
+ dependency_pod_name = dependency.name
682
+ if dependency_pod_name == pod_name
683
+ if dependency.external_source.is_a? Hash
684
+ # 指向分支
685
+ external_source = dependency.external_source
686
+ local_specs[pod_name] = external_source
687
+ # puts "pod_name:#{pod_name} external_source:#{external_source}"
663
688
  end
664
689
  end
665
690
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsBbPodassistant
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-bb-PodAssistant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - humin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-24 00:00:00.000000000 Z
11
+ date: 2024-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods-core