cocoapods-bb-bin 0.2.10.3 → 0.2.11.1
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 +4 -4
- data/lib/cocoapods-bb-bin/command/bin/tag.rb +19 -3
- data/lib/cocoapods-bb-bin/gem_version.rb +1 -1
- data/lib/cocoapods-bb-bin/helpers/framework_builder.rb +2 -1
- data/lib/cocoapods-bb-bin/helpers/sources_helper.rb +12 -2
- data/lib/cocoapods-bb-bin/native/resolver.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f953b910386947eb6941f1e14dafc3f446afb00f1de322cd0d7fcd59a9a3d41c
|
4
|
+
data.tar.gz: 75197fee26017d961e4b595db614037ba0a28516cbf123b303009a28e9eaa449
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 593dc79efc4817dddc129b68b1d6be9e437f41bfbe1ce74376d14eb75f6093451ccb62edf813cc45a9d4fcc6af796abe877560bd489d88c7757766524ccae7f1
|
7
|
+
data.tar.gz: 3eba028e3ee5ede153f04efe8bc91b374971f63f6b7852f27c5da5028df402d5b4e8af295114fc07b2af1f244071c2b8993f156cbc044f01928ffe133c274b2e
|
@@ -61,7 +61,7 @@ module Pod
|
|
61
61
|
end
|
62
62
|
if is_build_ok && !@is_debug
|
63
63
|
# step.2 工程编译ok,进行标签推送
|
64
|
-
push_helper = CBin::Push::Helper.new()
|
64
|
+
push_helper = CBin::Push::Helper.new(@sources)
|
65
65
|
push_helper.push_source_repo(@podspec)
|
66
66
|
end
|
67
67
|
end
|
@@ -121,17 +121,33 @@ module Pod
|
|
121
121
|
project.save
|
122
122
|
end
|
123
123
|
|
124
|
+
private def podfile
|
125
|
+
podfile_path = Pod::Config.instance.podfile_path
|
126
|
+
if podfile_path && File.exist?(podfile_path)
|
127
|
+
return podfile_path
|
128
|
+
else
|
129
|
+
worksppace_path = Pathname.pwd
|
130
|
+
podfile_path = File.join(worksppace_path, "Example/Podfile")
|
131
|
+
if podfile_path && File.exist?(podfile_path)
|
132
|
+
return podfile_path
|
133
|
+
end
|
134
|
+
end
|
135
|
+
return ""
|
136
|
+
end
|
137
|
+
|
124
138
|
def generate_project
|
139
|
+
podfile_path = podfile
|
125
140
|
Podfile.execute_with_bin_plugin do
|
126
141
|
Podfile.execute_with_use_binaries(!@code_dependencies) do
|
142
|
+
# pod gen --help
|
127
143
|
argvs = [
|
128
144
|
"--sources=#{sources_option(@code_dependencies, @sources)}",
|
129
145
|
"--gen-directory=#{CBin::Config::Builder.instance.gen_dir}",
|
130
146
|
'--clean',
|
131
147
|
"--verbose",
|
148
|
+
"--podfile-path=#{podfile}",
|
132
149
|
*@additional_args
|
133
150
|
]
|
134
|
-
podfile_path = Pod::Config.instance.podfile_path
|
135
151
|
if podfile_path && File.exist?(podfile_path)
|
136
152
|
argvs += ['--use-podfile']
|
137
153
|
end
|
@@ -141,7 +157,7 @@ module Pod
|
|
141
157
|
end
|
142
158
|
|
143
159
|
argvs << @podspec if @podspec
|
144
|
-
|
160
|
+
UI.puts "argvs:#{argvs}"
|
145
161
|
gen = Pod::Command::Gen.new(CLAide::ARGV.new(argvs))
|
146
162
|
gen.validate!
|
147
163
|
gen.run
|
@@ -165,7 +165,8 @@ module CBin
|
|
165
165
|
# iphone5,iphone5s以下的模拟器
|
166
166
|
# >x86_64
|
167
167
|
# iphone6以上的模拟器
|
168
|
-
archs = %w[arm64 armv7]
|
168
|
+
# archs = %w[arm64 armv7]
|
169
|
+
archs = %w[arm64]
|
169
170
|
# archs = %w[x86_64 arm64 armv7s i386]
|
170
171
|
# @vendored_libraries.each do |library|
|
171
172
|
# archs = `lipo -info #{library}`.split & archs
|
@@ -64,12 +64,22 @@ module CBin
|
|
64
64
|
|
65
65
|
# 二进制优先
|
66
66
|
def sources_option(code_dependencies, additional_sources)
|
67
|
-
|
67
|
+
# 传入源地址需要http开头
|
68
|
+
url = nil
|
69
|
+
if additional_sources && additional_sources.include?("http")
|
70
|
+
url = additional_sources
|
71
|
+
end
|
72
|
+
(valid_sources(code_dependencies).map(&:url) + Array(url)).join(',')
|
68
73
|
end
|
69
74
|
|
70
75
|
# 源码优先
|
71
76
|
def sources_optionV2(code_dependencies, additional_sources)
|
72
|
-
|
77
|
+
# 传入源地址需要http开头
|
78
|
+
url = nil
|
79
|
+
if additional_sources && additional_sources.include?("http")
|
80
|
+
url = additional_sources
|
81
|
+
end
|
82
|
+
(valid_sourcesV2(code_dependencies).map(&:url) + Array(url)).join(',')
|
73
83
|
end
|
74
84
|
|
75
85
|
end
|
@@ -91,6 +91,7 @@ module Pod
|
|
91
91
|
# >= 1.5.0 ResolverSpecification 才有 source,供 install 或者其他操作时,输入 source 变更
|
92
92
|
#
|
93
93
|
if Pod.match_version?('~> 1.4')
|
94
|
+
# pod in / up进行拦截,该入口目前使用使用上,如果继续执行pod指令出现异常可以考虑把当前函数删除,避免hook导致异常操作
|
94
95
|
old_resolver_specs_by_target = instance_method(:resolver_specs_by_target)
|
95
96
|
define_method(:resolver_specs_by_target) do
|
96
97
|
specs_by_target = old_resolver_specs_by_target.bind(self).call
|
@@ -135,7 +136,8 @@ module Pod
|
|
135
136
|
specification = source.specification(rspec.root.name, spec_version)
|
136
137
|
UI.message "#{rspec.root.name} #{spec_version} \r\n specification =#{specification} "
|
137
138
|
# 组件是 subspec
|
138
|
-
|
139
|
+
# subspec_by_name 函数远端spec查找subspec,如果第一次生成组件不会存在,故做条件过滤 by hm 25/4/9
|
140
|
+
if use_binary && rspec.spec.subspec?
|
139
141
|
specification = specification.subspec_by_name(rspec.name, false, true)
|
140
142
|
end
|
141
143
|
# 这里可能出现分析依赖的 source 和切换后的 source 对应 specification 的 subspec 对应不上
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-bb-bin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- humin
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-04-09 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: parallel
|
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
218
|
- !ruby/object:Gem::Version
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
|
-
rubygems_version: 3.6.
|
221
|
+
rubygems_version: 3.6.5
|
222
222
|
specification_version: 4
|
223
223
|
summary: cocoapods-bb-bin is a plugin which helps develpers switching pods between
|
224
224
|
source code and binary.
|