cocoapods-bb-bin 0.1.0 → 0.1.4
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/archive.rb +2 -2
- data/lib/cocoapods-bb-bin/command/bin/auto.rb +24 -3
- data/lib/cocoapods-bb-bin/config/config_builder.rb +2 -1
- data/lib/cocoapods-bb-bin/gem_version.rb +1 -1
- data/lib/cocoapods-bb-bin/helpers/build_utils.rb +20 -0
- data/lib/cocoapods-bb-bin/helpers/spec_source_creator.rb +2 -0
- data/lib/cocoapods-bb-bin/helpers/xcframework_builder.rb +5 -7
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b89f001104ecdb85f0dd860945910ad39e9f571f6a6cf6bfb80d7dbcb3651b5
|
4
|
+
data.tar.gz: 7b8527d71339c4c3eb0e44037e96e402578c524abe32e4a6e5656a251acbf87c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0efa752e40ced20e12331a10c9257b6af2699b3c113120f4fc03a1de0a232d0b4773ede729133bf420ad98f09c185a7a917356a969cf4206c9667eca01f609d6
|
7
|
+
data.tar.gz: f2c304f7f7cd5d8e547ddba78c00e2057d2c12de701c2699e700b94c1465bb65a97edb53d4d0b7e9d0bab1c348334d2ab9e0e88095290bb53ab7f0d31c1449c4
|
@@ -170,12 +170,12 @@ module Pod
|
|
170
170
|
argvs += ['--use-podfile']
|
171
171
|
end
|
172
172
|
|
173
|
-
|
173
|
+
if CBin::Build::Utils.uses_frameworks? # 组件库重新生成pod工程引入静态库需要使用该选项,否则报cocoapods中verify_no_static_framework_transitive_dependencies验证无法通过 by hm 21/10/18
|
174
174
|
argvs += ['--use-libraries']
|
175
175
|
end
|
176
176
|
|
177
177
|
argvs << spec_file if spec_file
|
178
|
-
|
178
|
+
UI.puts "argvs:#{argvs}"
|
179
179
|
gen = Pod::Command::Gen.new(CLAide::ARGV.new(argvs))
|
180
180
|
gen.validate!
|
181
181
|
gen.run
|
@@ -203,6 +203,8 @@ module Pod
|
|
203
203
|
return name
|
204
204
|
end
|
205
205
|
|
206
|
+
private
|
207
|
+
|
206
208
|
# podfile创建软链接
|
207
209
|
def link_podfile
|
208
210
|
current_path = Pathname.pwd
|
@@ -210,16 +212,35 @@ module Pod
|
|
210
212
|
if filename == 'Podfile'
|
211
213
|
filepath = File.join(current_path,"#{filename}")
|
212
214
|
return filepath
|
215
|
+
else
|
216
|
+
if filename != "." and filename != ".."
|
217
|
+
filepath = File.join(current_path,"#{filename}")
|
218
|
+
if File.directory?(filepath)
|
219
|
+
# 二级目录遍历Podfile
|
220
|
+
Dir.foreach(filepath) do |filename|
|
221
|
+
if filename == 'Podfile'
|
222
|
+
podfile_path = File.join(filepath,"#{filename}")
|
223
|
+
create_link(podfile_path, current_path)
|
224
|
+
return podfile_path
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
213
229
|
end
|
214
230
|
end
|
215
231
|
# 没有找到podfile(小组件)
|
216
232
|
podfile_path = File.join(current_path,"Example/Podfile")
|
217
233
|
if File.file?(podfile_path)
|
218
|
-
|
219
|
-
|
234
|
+
create_link(podfile_path, current_path)
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
def create_link(source_file, dest_file)
|
239
|
+
if File.file?(source_file)
|
240
|
+
system("ln -s #{source_file} #{dest_file}")
|
241
|
+
UI.puts "创建软链接 source:#{source_file} link:#{dest_file}"
|
220
242
|
end
|
221
243
|
end
|
222
|
-
|
223
244
|
end
|
224
245
|
end
|
225
246
|
end
|
@@ -20,6 +20,7 @@ module CBin
|
|
20
20
|
def load_build_config
|
21
21
|
@white_pod_list = []
|
22
22
|
@ignore_git_list = []
|
23
|
+
@ignore_http_list = []
|
23
24
|
project_root = Pod::Config.instance.project_root
|
24
25
|
path = File.join(project_root.to_s, 'BinArchive.json')
|
25
26
|
|
@@ -30,7 +31,7 @@ module CBin
|
|
30
31
|
@ignore_git_list = config['ignore-git-list']
|
31
32
|
UI.warn "====== ignore_git_list = #{@ignore_git_list}" if @ignore_git_list
|
32
33
|
@ignore_http_list = config['ignore-http-list']
|
33
|
-
|
34
|
+
UI.warn "====== ignore_http_list = #{@ignore_http_list}" if @ignore_http_list
|
34
35
|
@xcode_build_name = config['xcode_build_path']
|
35
36
|
@root_dir = config['root_dir'] unless config['root_dir'].nil?
|
36
37
|
end
|
@@ -10,6 +10,9 @@ module CBin
|
|
10
10
|
if Utils.uses_frameworks?
|
11
11
|
return true
|
12
12
|
end
|
13
|
+
if Utils.is_generate_frameworks(spec)
|
14
|
+
return true
|
15
|
+
end
|
13
16
|
|
14
17
|
return Utils.is_swift_module(spec)
|
15
18
|
end
|
@@ -57,6 +60,23 @@ module CBin
|
|
57
60
|
return uses_frameworks
|
58
61
|
end
|
59
62
|
|
63
|
+
def Utils.is_generate_frameworks(spec)
|
64
|
+
# framework
|
65
|
+
zip_file = CBin::Config::Builder.instance.framework_zip_file(spec) + ".zip"
|
66
|
+
res = File.exist?(zip_file)
|
67
|
+
Pod::UI::puts "zip_file = #{zip_file}"
|
68
|
+
unless res
|
69
|
+
# xcframework
|
70
|
+
zip_file = CBin::Config::Builder.instance.xcframework_zip_file(spec) + ".zip"
|
71
|
+
res = File.exist?(zip_file)
|
72
|
+
Pod::UI::puts "zip_file = #{zip_file}"
|
73
|
+
end
|
74
|
+
if res
|
75
|
+
is_framework = true
|
76
|
+
end
|
77
|
+
return is_framework
|
78
|
+
end
|
79
|
+
|
60
80
|
end
|
61
81
|
|
62
82
|
end
|
@@ -22,8 +22,10 @@ module CBin
|
|
22
22
|
def create
|
23
23
|
# spec = nil
|
24
24
|
if CBin::Build::Utils.is_framework(@code_spec)
|
25
|
+
Pod::UI::puts "make framework spec"
|
25
26
|
spec = create_framework_from_code_spec
|
26
27
|
else
|
28
|
+
Pod::UI::puts "make source code spec"
|
27
29
|
spec = create_from_code_spec
|
28
30
|
end
|
29
31
|
|
@@ -3,13 +3,11 @@
|
|
3
3
|
require 'cocoapods/command/gen'
|
4
4
|
require 'cocoapods/generate'
|
5
5
|
|
6
|
-
require 'cocoapods-
|
7
|
-
require 'cocoapods-
|
8
|
-
require 'cocoapods-
|
9
|
-
require 'cocoapods-
|
10
|
-
require 'cocoapods-
|
11
|
-
#这个放在最后一个
|
12
|
-
require 'cocoapods-framework/command'
|
6
|
+
require 'cocoapods-xcframework/config'
|
7
|
+
require 'cocoapods-xcframework/util'
|
8
|
+
require 'cocoapods-xcframework/xbuilder'
|
9
|
+
require 'cocoapods-xcframework/frameworker'
|
10
|
+
require 'cocoapods-xcframework/muti_frameworker'
|
13
11
|
|
14
12
|
module CBin
|
15
13
|
class XCFramework
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-bb-bin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- humin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|
@@ -62,16 +62,16 @@ dependencies:
|
|
62
62
|
name: cocoapods-bb-xcframework
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - "
|
65
|
+
- - "<"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '0'
|
67
|
+
version: '1.0'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - "
|
72
|
+
- - "<"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '0'
|
74
|
+
version: '1.0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: bundler
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|