cocoapods-bb-bin 0.2.12.0 → 0.2.12.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 436d5ca6587d55a7fde3fda6646dc51051f4307a8c236dd89e74a1ea79251717
|
|
4
|
+
data.tar.gz: 24d05024f5920a696fe155d162595aee1abab38f961dcd06ae73894cd3d6ea38
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c91ff8699f55fcddb7d899808a7e122e95cf6beef18877a82d1e02f2d68ebdc9c33b7c9c53137f186957684a4459d89d3ad9760b8a633a05faeb9fefd260af68
|
|
7
|
+
data.tar.gz: f45745fd9790a9b74c63fa57d7dbab900ee880115ceb0196fcad5215c28c4b97874613716f91ab439b037a9670b4d0d20435f2f68c8ddc1a4d0d33e94cff5445
|
|
@@ -90,6 +90,13 @@ module Pod
|
|
|
90
90
|
return sources_sepc
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
+
def build_workspace
|
|
94
|
+
worksppace_path = File.expand_path("#{CBin::Config::Builder.instance.gen_dir}/#{@spec.name}")
|
|
95
|
+
path = File.join(worksppace_path, "#{@spec.name}.xcworkspace")
|
|
96
|
+
raise Informative, "#{path} File no exist, please check" unless File.exist?(path)
|
|
97
|
+
return path
|
|
98
|
+
end
|
|
99
|
+
|
|
93
100
|
def build_root_spec
|
|
94
101
|
builder = CBin::Build::Helper.new(@spec,
|
|
95
102
|
@platform,
|
|
@@ -101,7 +108,8 @@ module Pod
|
|
|
101
108
|
@zip,
|
|
102
109
|
@spec,
|
|
103
110
|
CBin::Config::Builder.instance.white_pod_list.include?(@spec.name),
|
|
104
|
-
@config
|
|
111
|
+
@config,
|
|
112
|
+
build_workspace)
|
|
105
113
|
builder.build
|
|
106
114
|
builder.clean_workspace if @clean && !@all_make
|
|
107
115
|
end
|
|
@@ -145,7 +153,8 @@ module Pod
|
|
|
145
153
|
@zip,
|
|
146
154
|
@spec,
|
|
147
155
|
false ,
|
|
148
|
-
@config
|
|
156
|
+
@config,
|
|
157
|
+
build_workspace)
|
|
149
158
|
builder.build
|
|
150
159
|
rescue Object => exception
|
|
151
160
|
UI.puts exception
|
|
@@ -184,11 +193,14 @@ module Pod
|
|
|
184
193
|
end
|
|
185
194
|
|
|
186
195
|
if CBin::Build::Utils.uses_frameworks? # 组件库重新生成pod工程引入静态库需要使用该选项,否则报cocoapods中verify_no_static_framework_transitive_dependencies验证无法通过 by hm 21/10/18
|
|
196
|
+
# argvs += ['--use-libraries'] # 选项会导致生成.a
|
|
197
|
+
UI.puts "generate framework project"
|
|
198
|
+
else
|
|
187
199
|
argvs += ['--use-libraries']
|
|
188
200
|
end
|
|
189
201
|
|
|
190
202
|
argvs << spec_file if spec_file
|
|
191
|
-
|
|
203
|
+
UI.puts "generate_project argvs:#{argvs}"
|
|
192
204
|
gen = Pod::Command::Gen.new(CLAide::ARGV.new(argvs))
|
|
193
205
|
gen.validate!
|
|
194
206
|
gen.run
|
|
@@ -25,7 +25,8 @@ module CBin
|
|
|
25
25
|
zip,
|
|
26
26
|
rootSpec,
|
|
27
27
|
skip_archive = false,
|
|
28
|
-
build_model="Release"
|
|
28
|
+
build_model="Release",
|
|
29
|
+
workspace=nil)
|
|
29
30
|
@spec = spec
|
|
30
31
|
@platform = platform
|
|
31
32
|
@build_model = build_model
|
|
@@ -38,10 +39,11 @@ module CBin
|
|
|
38
39
|
@support_maccatalyst = support_maccatalyst
|
|
39
40
|
@spec_sources = spec_sources
|
|
40
41
|
@zip = zip
|
|
42
|
+
@workspace = workspace
|
|
41
43
|
|
|
42
44
|
@framework_path
|
|
43
45
|
|
|
44
|
-
UI.puts "build initialize...#{spec}"
|
|
46
|
+
UI.puts "build initialize...#{spec} rootSpec:#{rootSpec} build_model:#{build_model} workspace:#{workspace}"
|
|
45
47
|
end
|
|
46
48
|
|
|
47
49
|
# build framework
|
|
@@ -97,9 +99,9 @@ module CBin
|
|
|
97
99
|
# build xcframework
|
|
98
100
|
def build_static_xcframework
|
|
99
101
|
source_dir = Dir.pwd
|
|
100
|
-
UI.puts "xcframework source_dir=#{source_dir}"
|
|
102
|
+
UI.puts "xcframework source_dir=#{source_dir} workspace:#{@workspace}"
|
|
101
103
|
isGenDylib = @xcframework_dylib_output
|
|
102
|
-
builder = CBin::XCFramework::XCBuilder.new(@spec, @spec_sources, @support_maccatalyst, isGenDylib)
|
|
104
|
+
builder = CBin::XCFramework::XCBuilder.new(@spec, @spec_sources, @support_maccatalyst, isGenDylib, @workspace)
|
|
103
105
|
builder.build
|
|
104
106
|
end
|
|
105
107
|
|
|
@@ -14,7 +14,7 @@ module CBin
|
|
|
14
14
|
class XCBuilder
|
|
15
15
|
include Pod
|
|
16
16
|
include Pod::Config::Mixin
|
|
17
|
-
def initialize(spec,spec_sources, support_maccatalyst=false,isGenDylib=false)
|
|
17
|
+
def initialize(spec, spec_sources, support_maccatalyst=false, isGenDylib=false, workspace=nil)
|
|
18
18
|
@spec = spec
|
|
19
19
|
@spec_sources = spec_sources.split(',') unless spec_sources.nil?
|
|
20
20
|
@name = "#{@spec.name}.podspec"
|
|
@@ -28,9 +28,10 @@ module CBin
|
|
|
28
28
|
@symbols = true
|
|
29
29
|
@support_maccatalyst = support_maccatalyst # 默认不再支持MacCatalyst方式支持iOS应用在mac平台运行库生成
|
|
30
30
|
@support_dynamic = isGenDylib
|
|
31
|
+
@workspace = workspace
|
|
31
32
|
|
|
32
33
|
target_dir = "#{Dir.pwd}/#{@spec.name}-#{@spec.version}"
|
|
33
|
-
UI.puts "build initialize...#{spec} spec_sources:#{spec_sources} target_dir:#{target_dir} 是否支持Mac Catalyst:#{support_maccatalyst} 是否生成动态库:#{isGenDylib}"
|
|
34
|
+
UI.puts "build initialize...#{spec} spec_sources:#{spec_sources} target_dir:#{target_dir} 是否支持Mac Catalyst:#{support_maccatalyst} 是否生成动态库:#{isGenDylib} workspace:#{workspace}"
|
|
34
35
|
end
|
|
35
36
|
|
|
36
37
|
def build
|
|
@@ -61,6 +62,7 @@ module CBin
|
|
|
61
62
|
"--use-modular-headers=#{@use_modular_headers}",
|
|
62
63
|
"--archive-export", # 默认archive导出dylib
|
|
63
64
|
# "--no-archive-export",
|
|
65
|
+
"--workspace=#{@workspace}",
|
|
64
66
|
]
|
|
65
67
|
if @force
|
|
66
68
|
argvs += ['--force']
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cocoapods-bb-bin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.12.
|
|
4
|
+
version: 0.2.12.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- humin
|
|
@@ -83,7 +83,7 @@ dependencies:
|
|
|
83
83
|
requirements:
|
|
84
84
|
- - ">="
|
|
85
85
|
- !ruby/object:Gem::Version
|
|
86
|
-
version: 0.2.7.
|
|
86
|
+
version: 0.2.7.4
|
|
87
87
|
- - "<"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
89
|
version: '1.0'
|
|
@@ -93,7 +93,7 @@ dependencies:
|
|
|
93
93
|
requirements:
|
|
94
94
|
- - ">="
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: 0.2.7.
|
|
96
|
+
version: 0.2.7.4
|
|
97
97
|
- - "<"
|
|
98
98
|
- !ruby/object:Gem::Version
|
|
99
99
|
version: '1.0'
|