cocoapods-bb-PodAssistant 0.3.4 → 0.3.4.2

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: 4cb1620da707059b6751898437a2d4837830ce6cf94cba2ca1f525cff705aa48
4
+ data.tar.gz: d60d9c262995ee3428109e7ae45946a2a71146bb2980c5877215a66638bf4b6d
5
5
  SHA512:
6
- metadata.gz: 420968c996a7c1e97c7c8f91c078673ea03e5262d7629f136e94308d46d26444ed6af2291843da3c48d1735d05ab53ab78f8203c2b0a09ad68f3e7323b56c2ff
7
- data.tar.gz: 2c0714fc01aad44403d8450b296b39e2ca0d7f8f489561df646beceab14c460f113e3b12a92ed02f6f09e3af5d32d96f7146fdcd189fad6910785b6c3b4a8eba
6
+ metadata.gz: f92ede5c2633d935eeaa2c95249f1bb9cef39deec1280714afba2a106e574e1e474dacd21ae156e10c317233986a664de2346efb71866fbef8f028154ca822b6
7
+ data.tar.gz: 296805843d60a6900a3c568ede7123aeb6d04c572b693752dc38d4c08653050baa03393334f3b69b4cf54b7cd485d1f6964e7b67b68c68d4788629f278dc5003
@@ -66,6 +66,12 @@ class PodPostInstaller
66
66
  end
67
67
  otherLink_setting_value = config.build_settings['OTHER_LDFLAGS']
68
68
  puts "#{target.name}-#{config.name} Build Setting 'OTHER_LDFLAGS' Value: #{otherLink_setting_value}"
69
+
70
+ # 配置工程最低部署
71
+ origin_value = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
72
+ config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = ios_deployment_target.to_s
73
+ new_value = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
74
+ puts "#{target.name}-#{config.name} Build Setting 'IPHONEOS_DEPLOYMENT_TARGET' deployment target: #{origin_value} => #{new_value}"
69
75
  end
70
76
  end
71
77
  end
@@ -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.2"
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.2
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-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods-core