cocoapods-bb-bin 0.2.7.3 → 0.2.7.5
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/auto.rb +1 -1
- data/lib/cocoapods-bb-bin/command/bin/localPush.rb +1 -1
- data/lib/cocoapods-bb-bin/command/bin/tag.rb +1 -1
- data/lib/cocoapods-bb-bin/gem_version.rb +1 -1
- data/lib/cocoapods-bb-bin/native/resolver.rb +5 -4
- data/lib/cocoapods-bb-bin/native/sources_manager.rb +32 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5ec32213acb36e10ab5e168d45e9dc541cfcc445da98d4bb76572f6b93ddb66
|
4
|
+
data.tar.gz: b7d724ae801e154fe37accfe063d31f4032cfd3ddcf8042b1be9675d0df38415
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a80372673884427b1ba0bf191bff64e36e7a5c53f87fb4177e56b2adb396b24bfa0eeebe2ce11dfa618faa5bd8ac7fc9f99ec74dec2592528b00341391f5fa20
|
7
|
+
data.tar.gz: b0b2dcbb8437e26f3eacffe64cce27d3a0158938229d318437008d76cc1f87232ec981b6eefbc47a0929bfcbdc524e86b4823e727977a928a327c1c4c7a362d7
|
@@ -211,7 +211,7 @@ module Pod
|
|
211
211
|
Pathname.pwd.children.each do |child|
|
212
212
|
# puts child
|
213
213
|
if File.file?(child)
|
214
|
-
if child.extname == '.podspec'
|
214
|
+
if child.extname == '.podspec' || child.basename.to_s.include?('.podspec.json')
|
215
215
|
name = File.basename(child)
|
216
216
|
unless name.include?("binary-template")
|
217
217
|
return name
|
@@ -99,7 +99,7 @@ module Pod
|
|
99
99
|
Pathname.pwd.children.each do |child|
|
100
100
|
# puts child
|
101
101
|
if File.file?(child)
|
102
|
-
if child.extname == '.podspec'
|
102
|
+
if child.extname == '.podspec' || child.basename.to_s.include?('.podspec.json')
|
103
103
|
name = File.basename(child)
|
104
104
|
unless name.include?("binary-template")
|
105
105
|
return name
|
@@ -72,7 +72,7 @@ module Pod
|
|
72
72
|
Pathname.pwd.children.each do |child|
|
73
73
|
# puts child
|
74
74
|
if File.file?(child)
|
75
|
-
if child.extname == '.podspec'
|
75
|
+
if child.extname == '.podspec' || child.basename.to_s.include?('.podspec.json')
|
76
76
|
name = File.basename(child)
|
77
77
|
unless name.include?("binary-template")
|
78
78
|
return name
|
@@ -96,6 +96,8 @@ module Pod
|
|
96
96
|
specs_by_target = old_resolver_specs_by_target.bind(self).call
|
97
97
|
|
98
98
|
sources_manager = Config.instance.sources_manager
|
99
|
+
binary_source = sources_manager.binary_source
|
100
|
+
code_source = sources_manager.code_source
|
99
101
|
use_source_pods = podfile.use_source_pods
|
100
102
|
|
101
103
|
missing_binary_specs = []
|
@@ -123,11 +125,10 @@ module Pod
|
|
123
125
|
|
124
126
|
# 采用二进制依赖并且不为开发组件
|
125
127
|
use_binary = use_binary_rspecs.include?(rspec)
|
126
|
-
source = use_binary ?
|
127
|
-
|
128
|
+
source = use_binary ? binary_source : code_source
|
128
129
|
spec_version = rspec.spec.version
|
129
|
-
# UI.
|
130
|
-
# UI.
|
130
|
+
# UI.puts 'cocoapods-bb-bin 插件'
|
131
|
+
# UI.puts "- 开始处理 #{rspec.spec.name} #{spec_version} 组件."
|
131
132
|
|
132
133
|
begin
|
133
134
|
# 从新 source 中获取 spec,在bin archive中会异常,因为找不到
|
@@ -9,25 +9,52 @@ module Pod
|
|
9
9
|
|
10
10
|
def initLibEnv(isGenDylib=false)
|
11
11
|
@dylib = isGenDylib
|
12
|
+
UI.puts "初始化源环境support dylib:#{isGenDylib}"
|
12
13
|
end
|
13
14
|
|
14
15
|
# 源码 source
|
15
16
|
def code_source
|
16
|
-
if
|
17
|
+
if supportDylibSource # 动态库
|
17
18
|
source_with_name_or_url(CBin.config.sourceV2_repo_url)
|
18
19
|
else # 静态库
|
19
20
|
source_with_name_or_url(CBin.config.code_repo_url)
|
20
21
|
end
|
21
22
|
end
|
22
23
|
|
24
|
+
# 静态库二进制源
|
25
|
+
def static_binary_source
|
26
|
+
source_with_name_or_url(CBin.config.binary_repo_url)
|
27
|
+
end
|
28
|
+
# 动态库二进制源
|
29
|
+
def dylib_binary_source
|
30
|
+
source_with_name_or_url(CBin.config.dylib_repo_url)
|
31
|
+
end
|
32
|
+
|
23
33
|
# 二进制 source (区分动态库还是静态库)
|
24
34
|
def binary_source
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
35
|
+
return supportDylibSource ? dylib_binary_source : static_binary_source
|
36
|
+
end
|
37
|
+
|
38
|
+
# 是否支持动态库
|
39
|
+
def supportDylibSource
|
40
|
+
if @dylib
|
41
|
+
return true
|
42
|
+
else
|
43
|
+
# 优先解析podfile中source动态配置是否添加动态库源
|
44
|
+
podfile = Pod::Config.instance.podfile
|
45
|
+
if podfile
|
46
|
+
dylib_source = CBin.config.dylib_repo_url
|
47
|
+
podfile.sources.map do |source|
|
48
|
+
if source === dylib_source
|
49
|
+
UI.puts "切换到动态库源:#{dylib_binary_source}"
|
50
|
+
return true
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
return false
|
29
55
|
end
|
30
56
|
end
|
57
|
+
|
31
58
|
end
|
32
59
|
end
|
33
60
|
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.2.7.
|
4
|
+
version: 0.2.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- humin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
206
|
- !ruby/object:Gem::Version
|
207
207
|
version: '0'
|
208
208
|
requirements: []
|
209
|
-
rubygems_version: 3.4.
|
209
|
+
rubygems_version: 3.4.19
|
210
210
|
signing_key:
|
211
211
|
specification_version: 4
|
212
212
|
summary: cocoapods-bb-bin is a plugin which helps develpers switching pods between
|