cocoapods-fy-bin 0.1.5 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-fy-bin/command/bin/archive.rb +2 -0
- data/lib/cocoapods-fy-bin/command/bin/auto.rb +6 -1
- data/lib/cocoapods-fy-bin/gem_version.rb +1 -1
- data/lib/cocoapods-fy-bin/helpers/build_helper.rb +4 -2
- data/lib/cocoapods-fy-bin/helpers/framework_builder.rb +5 -3
- data/lib/cocoapods-fy-bin/helpers/library_builder.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d7b3392b5c0f86ef30102bdfaa6082789a6551bd29b89882a2169017f52e4ce
|
4
|
+
data.tar.gz: 84883396084cd316e277e2d8e4221365aecff4ac4861b76e6397bcdda8c90f31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 641a61b03a5744633f16a913aa3da2b85c7d6b1f9f1988728e174e0378239b3dbf83c95e4c36fd9901a099fd64a83d7fe2b58224706f6de6f889b6da362416d5
|
7
|
+
data.tar.gz: 64b8b127610c403e399686b347fdf346d2cc1d0f8b8c70142140b47c376f0aa738dc6d24b9759053c5dc8adace34892a35a179a25bc776d659dc23d2ebcbb552
|
@@ -59,6 +59,7 @@ module Pod
|
|
59
59
|
@archs = argv.option('archs', 'armv7,arm64')
|
60
60
|
@pre_build_shell = argv.option('pre_build_shell') || ''
|
61
61
|
@suf_build_shell = argv.option('suf_build_shell') || ''
|
62
|
+
@build_permission = argv.option('build_permission') || ''
|
62
63
|
@toolchain = argv.option('toolchain') || ''
|
63
64
|
@config = argv.option('configuration', 'Release')
|
64
65
|
|
@@ -96,6 +97,7 @@ module Pod
|
|
96
97
|
@archs,
|
97
98
|
@pre_build_shell,
|
98
99
|
@suf_build_shell,
|
100
|
+
@build_permission,
|
99
101
|
@toolchain,
|
100
102
|
CBin::Config::Builder.instance.white_pod_list.include?(@spec.name),
|
101
103
|
@config)
|
@@ -24,7 +24,8 @@ module Pod
|
|
24
24
|
['--archs', "需要二进制组件的架构"],
|
25
25
|
['--pre_build_shell', "xcodebuild前的脚本命令"],
|
26
26
|
['--suf_build_shell', "xcodebuild后的脚本命令"],
|
27
|
-
['--toolchain', "设置toolchain"]
|
27
|
+
['--toolchain', "设置toolchain"],
|
28
|
+
['--build_permission', "xcodebuild权限"]
|
28
29
|
].concat(Pod::Command::Gen.options).concat(super).uniq
|
29
30
|
end
|
30
31
|
|
@@ -44,6 +45,7 @@ module Pod
|
|
44
45
|
@archs = argv.flag?('archs', 'arm64')
|
45
46
|
@pre_build_shell = argv.option('pre_build_shell') || ''
|
46
47
|
@suf_build_shell = argv.option('suf_build_shell') || ''
|
48
|
+
@build_permission = argv.option('build_permission') || ''
|
47
49
|
@toolchain = argv.option('toolchain') || ''
|
48
50
|
@config = argv.option('configuration', 'Debug')
|
49
51
|
@additional_args = argv.remainder!
|
@@ -138,6 +140,9 @@ module Pod
|
|
138
140
|
if @suf_build_shell
|
139
141
|
argvs += ["--suf_build_shell=#{@suf_build_shell}"]
|
140
142
|
end
|
143
|
+
if @build_permission
|
144
|
+
argvs += ["--build_permission=#{@build_permission}"]
|
145
|
+
end
|
141
146
|
if @toolchain
|
142
147
|
argvs += ["--toolchain=#{@toolchain}"]
|
143
148
|
end
|
@@ -22,6 +22,7 @@ module CBin
|
|
22
22
|
archs,
|
23
23
|
pre_build_shell,
|
24
24
|
suf_build_shell,
|
25
|
+
build_permission,
|
25
26
|
toolchain,
|
26
27
|
skip_archive = false,
|
27
28
|
build_model="Release")
|
@@ -33,6 +34,7 @@ module CBin
|
|
33
34
|
@archs = archs
|
34
35
|
@pre_build_shell = pre_build_shell
|
35
36
|
@suf_build_shell = suf_build_shell
|
37
|
+
@build_permission = build_permission
|
36
38
|
@toolchain = toolchain
|
37
39
|
@skip_archive = skip_archive
|
38
40
|
@framework_output = framework_output
|
@@ -62,7 +64,7 @@ module CBin
|
|
62
64
|
source_dir = Dir.pwd
|
63
65
|
file_accessor = Sandbox::FileAccessor.new(Pathname.new('.').expand_path, @spec.consumer(@platform))
|
64
66
|
Dir.chdir(workspace_directory) do
|
65
|
-
builder = CBin::Framework::Builder.new(@spec, file_accessor, @platform, source_dir, @archs, @pre_build_shell, @suf_build_shell, @toolchain, @isRootSpec, @build_model)
|
67
|
+
builder = CBin::Framework::Builder.new(@spec, file_accessor, @platform, source_dir, @archs, @pre_build_shell, @suf_build_shell, @build_permission, @toolchain, @isRootSpec, @build_model)
|
66
68
|
@@build_defines = builder.build if @isRootSpec
|
67
69
|
begin
|
68
70
|
@framework_path = builder.lipo_build(@@build_defines) unless @skip_archive
|
@@ -76,7 +78,7 @@ module CBin
|
|
76
78
|
source_dir = zip_dir
|
77
79
|
file_accessor = Sandbox::FileAccessor.new(Pathname.new('.').expand_path, @spec.consumer(@platform))
|
78
80
|
Dir.chdir(workspace_directory) do
|
79
|
-
builder = CBin::Library::Builder.new(@spec, file_accessor, @platform, source_dir , @archs, @
|
81
|
+
builder = CBin::Library::Builder.new(@spec, file_accessor, @platform, source_dir , @archs, @framework_path)
|
80
82
|
builder.build
|
81
83
|
end
|
82
84
|
end
|
@@ -10,7 +10,7 @@ module CBin
|
|
10
10
|
class Builder
|
11
11
|
include Pod
|
12
12
|
#Debug下还待完成
|
13
|
-
def initialize(spec, file_accessor, platform, source_dir, archs, pre_build_shell, suf_build_shell, toolchain, isRootSpec = true, build_model="Debug")
|
13
|
+
def initialize(spec, file_accessor, platform, source_dir, archs, pre_build_shell, suf_build_shell, build_permission, toolchain, isRootSpec = true, build_model="Debug")
|
14
14
|
@spec = spec
|
15
15
|
@source_dir = source_dir
|
16
16
|
@file_accessor = file_accessor
|
@@ -20,6 +20,7 @@ module CBin
|
|
20
20
|
@archs = archs
|
21
21
|
@pre_build_shell = pre_build_shell
|
22
22
|
@suf_build_shell = suf_build_shell
|
23
|
+
@build_permission = build_permission
|
23
24
|
@toolchain = toolchain
|
24
25
|
#vendored_static_frameworks 只有 xx.framework 需要拼接为 xx.framework/xx by slj
|
25
26
|
vendored_static_frameworks = file_accessor.vendored_static_frameworks.map do |framework|
|
@@ -186,6 +187,7 @@ module CBin
|
|
186
187
|
# -fembed-bitcode支持bitcode BUILD_LIBRARY_FOR_DISTRIBUTION=YES 构建向后兼容的framework
|
187
188
|
xcodebuild(defines, "ARCHS=\'#{arch}\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\' DEBUG_INFORMATION_FORMAT=\'dwarf-with-dsym\' BUILD_LIBRARY_FOR_DISTRIBUTION=YES","build-#{arch}",@build_model)
|
188
189
|
end
|
190
|
+
suf_build_command
|
189
191
|
# else
|
190
192
|
# xcodebuild(defines,options)
|
191
193
|
# end
|
@@ -250,10 +252,10 @@ module CBin
|
|
250
252
|
def xcodebuild(defines = '', args = '', build_dir = 'build', build_model = 'Debug')
|
251
253
|
|
252
254
|
unless File.exist?("Pods.xcodeproj") #cocoapods-generate v2.0.0
|
253
|
-
command = "xcodebuild #{defines} #{args} CONFIGURATION_BUILD_DIR=#{File.join(File.expand_path("..", build_dir), File.basename(build_dir))} clean build -configuration #{build_model} -target #{target_name} -project ./Pods/Pods.xcodeproj 2>&1"
|
255
|
+
command = "#{@build_permission}xcodebuild #{defines} #{args} CONFIGURATION_BUILD_DIR=#{File.join(File.expand_path("..", build_dir), File.basename(build_dir))} clean build -configuration #{build_model} -target #{target_name} -project ./Pods/Pods.xcodeproj 2>&1"
|
254
256
|
puts command
|
255
257
|
else
|
256
|
-
command = "xcodebuild #{defines} #{args} CONFIGURATION_BUILD_DIR=#{build_dir} clean build -configuration #{build_model} -target #{target_name} -project ./Pods.xcodeproj 2>&1"
|
258
|
+
command = "#{@build_permission}xcodebuild #{defines} #{args} CONFIGURATION_BUILD_DIR=#{build_dir} clean build -configuration #{build_model} -target #{target_name} -project ./Pods.xcodeproj 2>&1"
|
257
259
|
puts command
|
258
260
|
end
|
259
261
|
|
@@ -11,14 +11,13 @@ module CBin
|
|
11
11
|
class Builder
|
12
12
|
include Pod
|
13
13
|
|
14
|
-
def initialize(spec, file_accessor, platform, source_dir, archs,
|
14
|
+
def initialize(spec, file_accessor, platform, source_dir, archs, framework_path)
|
15
15
|
@spec = spec
|
16
16
|
@source_dir = source_dir
|
17
17
|
@file_accessor = file_accessor
|
18
18
|
@platform = platform
|
19
19
|
@framework = framework_path
|
20
20
|
@archs = archs
|
21
|
-
@pre_build_shell = pre_build_shell
|
22
21
|
@source_files = "#{@source_dir}/#{library.name_path}"
|
23
22
|
@source_zip_file = "#{@source_files}.zip"
|
24
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-fy-bin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|