cocoapods-bb-bin 0.2.2 → 0.2.2.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 +24 -7
- data/lib/cocoapods-bb-bin/gem_version.rb +1 -1
- 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: 5764ccefa6e25c275fc0e9568a321dc48152ceb9beb7e29517e996459e92fc9b
|
4
|
+
data.tar.gz: 30ef7305b4d2d3e442fa28a140006133f0a7582ac8e7133df451d2f5aea3dee6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 177349f9e7cfaba5e4682f11cc42d82ded7e6956f9ed763a87b7e5f886fb47f4b490adb671e864cf13b9a6d6a447105f0f1df9e4822f361af40a1945942e2a15
|
7
|
+
data.tar.gz: e32d51de357d063e9512696edfa3e0d435d4187443edf6363cbeb1c7057bf479a28fda379add3956bbd92deddc9ddf2ceff3e67583f14c862ad7709cd081a096
|
@@ -4,6 +4,7 @@ require 'cocoapods/generate'
|
|
4
4
|
require 'xcodeproj'
|
5
5
|
require 'cocoapods-bb-bin/helpers/push_spec_helper'
|
6
6
|
require 'cocoapods-bb-bin/helpers/build_helper'
|
7
|
+
require 'cocoapods-bb-bin/helpers/spec_source_creator'
|
7
8
|
|
8
9
|
module Pod
|
9
10
|
class Command
|
@@ -18,6 +19,8 @@ module Pod
|
|
18
19
|
[
|
19
20
|
['--sources', '私有源地址,多个用分号区分'],
|
20
21
|
['--no-clean', '保留构建中间产物'],
|
22
|
+
['--skip-build-project', '跳过编译工程文件操作(直接推送假标签,操作慎重!!!)'],
|
23
|
+
['--debug', 'debug环境只是验证工程编译是否ok,不进行标签推送操作'],
|
21
24
|
].concat(Pod::Command::Gen.options).concat(super).uniq
|
22
25
|
end
|
23
26
|
|
@@ -31,6 +34,8 @@ module Pod
|
|
31
34
|
@podspec = argv.shift_argument || find_podspec
|
32
35
|
@sources = argv.option('sources') || []
|
33
36
|
@clean = argv.flag?('no-clean', false)
|
37
|
+
@skip_build_project = argv.flag?('skip-build-project', false)
|
38
|
+
@is_debug = argv.flag?('debug', false)
|
34
39
|
@platform = Platform.new(:ios)
|
35
40
|
end
|
36
41
|
super
|
@@ -42,15 +47,20 @@ module Pod
|
|
42
47
|
end
|
43
48
|
|
44
49
|
def run
|
45
|
-
|
46
50
|
# 清除之前的缓存
|
47
51
|
CBin::Config::Builder.instance.clean
|
48
|
-
|
49
52
|
@spec = Specification.from_file(@podspec)
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
53
|
+
|
54
|
+
if @skip_build_project
|
55
|
+
# 跳过工程编译
|
56
|
+
is_build_ok = true
|
57
|
+
Pod::UI.warn "请注意⚠️正在推送假标签!!!#{@podspec}==>#{@spec.name}(#{@spec.version})"
|
58
|
+
elsif
|
59
|
+
# step.1 工程编译
|
60
|
+
is_build_ok = check_build_workspace
|
61
|
+
end
|
62
|
+
if is_build_ok && !@is_debug
|
63
|
+
# step.2 工程编译ok,进行标签推送
|
54
64
|
push_helper = CBin::Push::Helper.new()
|
55
65
|
push_helper.push_source_repo(@podspec)
|
56
66
|
end
|
@@ -74,6 +84,13 @@ module Pod
|
|
74
84
|
return name
|
75
85
|
end
|
76
86
|
|
87
|
+
# 编译工程目录
|
88
|
+
def check_build_workspace
|
89
|
+
generate_project
|
90
|
+
swift_pods_buildsetting
|
91
|
+
return build_root_spec
|
92
|
+
end
|
93
|
+
|
77
94
|
private
|
78
95
|
def build_root_spec
|
79
96
|
builder = CBin::Build::Helper.new(@spec,
|
@@ -86,7 +103,7 @@ module Pod
|
|
86
103
|
CBin::Config::Builder.instance.white_pod_list.include?(@spec.name),
|
87
104
|
'Release')
|
88
105
|
builder.build
|
89
|
-
builder.clean_workspace if @clean
|
106
|
+
builder.clean_workspace if @clean
|
90
107
|
return builder.is_build_finish
|
91
108
|
end
|
92
109
|
def swift_pods_buildsetting
|
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.2.2
|
4
|
+
version: 0.2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- humin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|