cocoapods-bb-PodAssistant 0.3.3 → 0.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de37439ce64e286bba99591c6fa3d552c4741047c41649b0fade18284b89f464
|
4
|
+
data.tar.gz: bc8156104b3c243b8c3e4982e8f9a2ae2435126cdbaa36ac6302b5503ad645e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 420968c996a7c1e97c7c8f91c078673ea03e5262d7629f136e94308d46d26444ed6af2291843da3c48d1735d05ab53ab78f8203c2b0a09ad68f3e7323b56c2ff
|
7
|
+
data.tar.gz: 2c0714fc01aad44403d8450b296b39e2ca0d7f8f489561df646beceab14c460f113e3b12a92ed02f6f09e3af5d32d96f7146fdcd189fad6910785b6c3b4a8eba
|
@@ -65,7 +65,7 @@ class PodPostInstaller
|
|
65
65
|
config.build_settings['OTHER_LDFLAGS'] = "$(inherited) -lxml2 -lz -ObjC -lstdc++"
|
66
66
|
end
|
67
67
|
otherLink_setting_value = config.build_settings['OTHER_LDFLAGS']
|
68
|
-
puts "
|
68
|
+
puts "#{target.name}-#{config.name} Build Setting 'OTHER_LDFLAGS' Value: #{otherLink_setting_value}"
|
69
69
|
end
|
70
70
|
end
|
71
71
|
end
|
@@ -632,5 +632,46 @@ module BB
|
|
632
632
|
end
|
633
633
|
return need_update_pod_lists
|
634
634
|
end
|
635
|
+
|
636
|
+
# 生成pod模块配置文件
|
637
|
+
def generate_pod_module_dependency(buss_pod_names=[])
|
638
|
+
puts "准备生成pod模块依赖关系==>#{buss_pod_names}"
|
639
|
+
lockfile = podfile_lock
|
640
|
+
internal_data = lockfile.internal_data
|
641
|
+
pods = internal_data['PODS']
|
642
|
+
dependencies = lockfile.dependencies
|
643
|
+
buss_pod_names.each do | buss_pod_name |
|
644
|
+
local_specs = {}
|
645
|
+
dependency_pods_list = podfile_lock_pods[buss_pod_name]
|
646
|
+
dependency_pods_list.insert(0, "#{buss_pod_name}") # 需要添加自己控制组件
|
647
|
+
dependency_pods_list.each do | pod_name |
|
648
|
+
# 指向标签版本
|
649
|
+
version = lockfile.version(pod_name).to_s
|
650
|
+
if !version.empty?
|
651
|
+
local_specs[pod_name] = version
|
652
|
+
end
|
653
|
+
# dependencies依赖数据
|
654
|
+
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
|
663
|
+
end
|
664
|
+
end
|
665
|
+
end
|
666
|
+
end
|
667
|
+
yaml = "#{buss_pod_name}.yml"
|
668
|
+
update_stable_lock(yaml,local_specs)
|
669
|
+
if local_specs.length > 0
|
670
|
+
puts "Generating 组件#{buss_pod_name} yml配置文件=> #{yaml} 更新成功".green
|
671
|
+
else
|
672
|
+
puts "Generating 组件#{buss_pod_name} yml配置文件=> #{yaml} 更新失败".red
|
673
|
+
end
|
674
|
+
end
|
675
|
+
end
|
635
676
|
end
|
636
677
|
end
|
@@ -4,6 +4,7 @@ require 'uri'
|
|
4
4
|
require 'cocoapods-bb-PodAssistant'
|
5
5
|
require 'cocoapods-bb-PodAssistant/helpers/pod_module_helper'
|
6
6
|
require 'cocoapods-bb-PodAssistant/helpers/stable_manager_helper'
|
7
|
+
require 'cocoapods-bb-PodAssistant/config/source_manager'
|
7
8
|
|
8
9
|
# 参数
|
9
10
|
# :name, :names,
|
@@ -47,6 +48,11 @@ module Pod
|
|
47
48
|
class Podfile
|
48
49
|
# @!group DSL support
|
49
50
|
include Pod::Podfile::DSL
|
51
|
+
# 生成pod模块配置文件
|
52
|
+
def generate_pod_module_dependency_run(pod_names=[])
|
53
|
+
source_manager = BB::SourceManager.new()
|
54
|
+
source_manager.generate_pod_module_dependency(pod_names)
|
55
|
+
end
|
50
56
|
# pod组件合并操作(项目)
|
51
57
|
def project_pod_module_run(pod_modules, member_modules = {}, member_configs = [], skip_stable_check = false)
|
52
58
|
# Pod::UI.puts "Pod Module:#{pod_modules}"
|
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
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- humin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods-core
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
|
-
rubygems_version: 3.5.
|
146
|
+
rubygems_version: 3.5.9
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: A longer description of cocoapods-bb-PodAssistant.
|