cocoapods-bb-bin 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-bb-bin/command/bin/archive.rb +1 -1
- data/lib/cocoapods-bb-bin/command/bin/auto.rb +6 -7
- data/lib/cocoapods-bb-bin/config/config.rb +3 -3
- data/lib/cocoapods-bb-bin/config/config_builder.rb +4 -0
- data/lib/cocoapods-bb-bin/gem_version.rb +1 -1
- data/lib/cocoapods-bb-bin/helpers/framework_builder.rb +27 -8
- data/lib/cocoapods-bb-bin/native/podfile_generator.rb +2 -2
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a0b3904ae69693b6a4e16d57411ad5593eb0a1631a59481fc438dd608173c91
|
4
|
+
data.tar.gz: a6e88bbb26fe868817172d8bcfc695180833a2c56a456187e32f8b4fadb23b40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9850aca45f033aba865d7f5aaca8b266c9ab158b27073a08fc11f035227f6b1b83e50903c1672c8141f2f2ec53beaa8b47c61c759852f78ceca8a29e06d56e59
|
7
|
+
data.tar.gz: 27d5e05acad74ff8173460a507ddcba00c7d61f8eb00fac82e3ab8db10233a631485bee04f2186c72550c2dc2644c1a6ff44b263a899bf029a4515b5bc8005f0
|
@@ -29,7 +29,6 @@ module Pod
|
|
29
29
|
@help = argv.flag?('help', false )
|
30
30
|
if @help
|
31
31
|
else
|
32
|
-
puts "开始执行自动推送操作,"
|
33
32
|
@env = argv.option('env') || 'dev'
|
34
33
|
CBin.config.set_configuration_env(@env)
|
35
34
|
|
@@ -132,7 +131,7 @@ module Pod
|
|
132
131
|
argvs += ["--env=#{@env}"]
|
133
132
|
end
|
134
133
|
argvs += ["--configuration=#{@config}"]
|
135
|
-
puts "===auto argvs: #{argvs}"
|
134
|
+
# puts "===auto argvs: #{argvs}"
|
136
135
|
archive = Pod::Command::Bin::Archive.new(CLAide::ARGV.new(argvs))
|
137
136
|
archive.validate!
|
138
137
|
sources_sepc = archive.run
|
@@ -189,7 +188,7 @@ module Pod
|
|
189
188
|
def find_podspec
|
190
189
|
name = nil
|
191
190
|
Pathname.pwd.children.each do |child|
|
192
|
-
puts child
|
191
|
+
# puts child
|
193
192
|
if File.file?(child)
|
194
193
|
if child.extname == '.podspec'
|
195
194
|
name = File.basename(child)
|
@@ -221,8 +220,8 @@ module Pod
|
|
221
220
|
if filename == 'Podfile'
|
222
221
|
podfile_path = File.join(filepath,"#{filename}")
|
223
222
|
create_link(podfile_path, current_path)
|
224
|
-
pods_path = File.join(filepath,"Pods")
|
225
|
-
create_link(pods_path, current_path)
|
223
|
+
# pods_path = File.join(filepath,"Pods")
|
224
|
+
# create_link(pods_path, current_path)
|
226
225
|
return podfile_path
|
227
226
|
end
|
228
227
|
end
|
@@ -234,8 +233,8 @@ module Pod
|
|
234
233
|
podfile_path = File.join(current_path,"Example/Podfile")
|
235
234
|
if File.file?(podfile_path)
|
236
235
|
create_link(podfile_path, current_path)
|
237
|
-
pods_path = File.join(current_path,"Example/Pods")
|
238
|
-
create_link(pods_path, current_path)
|
236
|
+
# pods_path = File.join(current_path,"Example/Pods")
|
237
|
+
# create_link(pods_path, current_path)
|
239
238
|
end
|
240
239
|
end
|
241
240
|
|
@@ -24,12 +24,12 @@ module CBin
|
|
24
24
|
file = config_dev_file
|
25
25
|
if configuration_env == "release_iphoneos"
|
26
26
|
file = config_release_iphoneos_file
|
27
|
-
puts "\n====== #{configuration_env} 环境 ========"
|
27
|
+
# puts "\n====== #{configuration_env} 环境 ========"
|
28
28
|
elsif configuration_env == "debug_iphoneos"
|
29
29
|
file = config_debug_iphoneos_file
|
30
|
-
puts "\n====== #{configuration_env} 环境 ========"
|
30
|
+
# puts "\n====== #{configuration_env} 环境 ========"
|
31
31
|
elsif configuration_env == "dev"
|
32
|
-
puts "\n====== #{configuration_env} 环境 ========"
|
32
|
+
# puts "\n====== #{configuration_env} 环境 ========"
|
33
33
|
else
|
34
34
|
raise "\n===== #{configuration_env} 参数有误,请检查%w[dev debug_iphoneos release_iphoneos]===="
|
35
35
|
end
|
@@ -143,6 +143,10 @@ module CBin
|
|
143
143
|
|
144
144
|
#编译target名,如 seeyou
|
145
145
|
def target_name
|
146
|
+
podfile_path = Pod::Config.instance.podfile_path
|
147
|
+
unless podfile_path
|
148
|
+
return ""
|
149
|
+
end
|
146
150
|
@target_name ||= begin
|
147
151
|
target_name_str = Pod::Config.instance.podfile.root_target_definitions.first.children.first.to_s
|
148
152
|
target_name_str[5,target_name_str.length]
|
@@ -266,14 +266,33 @@ module CBin
|
|
266
266
|
module_map = File.read(module_map_file)
|
267
267
|
end
|
268
268
|
elsif public_headers.map(&:basename).map(&:to_s).include?("#{@spec.name}-umbrella.h")
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
269
|
+
archs = ios_architectures + ios_architectures_sim
|
270
|
+
swift_Compatibility_Header = "build-#{archs.first}/Swift\ Compatibility\ Header/#{@spec.name}-Swift.h"
|
271
|
+
# 策略:针对混编组件,modulemap写入-Swift.h by hm 21.11.15
|
272
|
+
if File.exist?(swift_Compatibility_Header) # swift或swift与oc混编工程
|
273
|
+
module_map = <<-MAP
|
274
|
+
framework module #{@spec.name} {
|
275
|
+
umbrella header "#{@spec.name}-umbrella.h"
|
276
|
+
|
277
|
+
export *
|
278
|
+
module * { export * }
|
279
|
+
}
|
280
|
+
|
281
|
+
module #{@spec.name}.Swift {
|
282
|
+
header "#{@spec.name}-Swift.h"
|
283
|
+
requires objc
|
284
|
+
}
|
285
|
+
MAP
|
286
|
+
else
|
287
|
+
module_map = <<-MAP
|
288
|
+
framework module #{@spec.name} {
|
289
|
+
umbrella header "#{@spec.name}-umbrella.h"
|
290
|
+
|
291
|
+
export *
|
292
|
+
module * { export * }
|
293
|
+
}
|
294
|
+
MAP
|
295
|
+
end
|
277
296
|
end
|
278
297
|
|
279
298
|
unless module_map.nil?
|
@@ -35,7 +35,7 @@ module Pod
|
|
35
35
|
generator.podfile_plugins.each do |name, options|
|
36
36
|
plugin(*[name, options].compact)
|
37
37
|
end
|
38
|
-
Pod::UI::puts "====use_frameworks:#{generator.configuration.use_frameworks?}"
|
38
|
+
# Pod::UI::puts "====use_frameworks:#{generator.configuration.use_frameworks?}"
|
39
39
|
use_frameworks!(generator.configuration.use_frameworks?)
|
40
40
|
|
41
41
|
if (supported_swift_versions = generator.supported_swift_versions)
|
@@ -104,7 +104,7 @@ module Pod
|
|
104
104
|
inhibit_all_warnings! if generator.inhibit_all_warnings?
|
105
105
|
# use_modular_headers! if generator.use_modular_headers?
|
106
106
|
# podfile 配置 use_frameworks! :linkage => :static 支持modulemap by hm 21/10/19
|
107
|
-
Pod::UI::puts "====use_frameworks_value:#{generator.use_frameworks_value}"
|
107
|
+
# Pod::UI::puts "====use_frameworks_value:#{generator.use_frameworks_value}"
|
108
108
|
unless generator.use_frameworks_value
|
109
109
|
use_modular_headers! # 默认组件没有配置或者没有podfile,支持modulemap by hm 21/10/20
|
110
110
|
end
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- humin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|
@@ -62,6 +62,9 @@ dependencies:
|
|
62
62
|
name: cocoapods-bb-xcframework
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 0.2.2
|
65
68
|
- - "<"
|
66
69
|
- !ruby/object:Gem::Version
|
67
70
|
version: '1.0'
|
@@ -69,6 +72,9 @@ dependencies:
|
|
69
72
|
prerelease: false
|
70
73
|
version_requirements: !ruby/object:Gem::Requirement
|
71
74
|
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.2.2
|
72
78
|
- - "<"
|
73
79
|
- !ruby/object:Gem::Version
|
74
80
|
version: '1.0'
|
@@ -190,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
196
|
- !ruby/object:Gem::Version
|
191
197
|
version: '0'
|
192
198
|
requirements: []
|
193
|
-
rubygems_version: 3.
|
199
|
+
rubygems_version: 3.2.30
|
194
200
|
signing_key:
|
195
201
|
specification_version: 4
|
196
202
|
summary: cocoapods-bb-bin is a plugin which helps develpers switching pods between
|