cocoapods-bb-bin 0.2.2.1 → 0.2.2.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: 5764ccefa6e25c275fc0e9568a321dc48152ceb9beb7e29517e996459e92fc9b
4
- data.tar.gz: 30ef7305b4d2d3e442fa28a140006133f0a7582ac8e7133df451d2f5aea3dee6
3
+ metadata.gz: 4f787451d6932076c5b8349d83b1c6dd8fa1a6721ae55f7d9fa6bb8364d82d90
4
+ data.tar.gz: '00817f2a55057afef1d6d2c6e7b1e8ba5899dc258cd7d606ab8ceb52129a0b67'
5
5
  SHA512:
6
- metadata.gz: 177349f9e7cfaba5e4682f11cc42d82ded7e6956f9ed763a87b7e5f886fb47f4b490adb671e864cf13b9a6d6a447105f0f1df9e4822f361af40a1945942e2a15
7
- data.tar.gz: e32d51de357d063e9512696edfa3e0d435d4187443edf6363cbeb1c7057bf479a28fda379add3956bbd92deddc9ddf2ceff3e67583f14c862ad7709cd081a096
6
+ metadata.gz: fe72bb8f5fc7cf45e5b47af44117378407bf68ca4cf91f97ad2b40e7a62c6baac93f904385f4b50e3e0bef7e62d079afc89383cf9d815fc657b6323951d9e945
7
+ data.tar.gz: 861b6079b705cc0a37edf8e1bc3e1c114f5d07d76451ed8ad0d95e44684f3c36dbdc700612da90ede301f67b4dd6236d66c3a34bd0c1466bc52aaf08a9cf4acc
@@ -61,6 +61,11 @@ module Pod
61
61
 
62
62
  @additional_args = argv.remainder!
63
63
  @build_finshed = false
64
+ @spec_sources = @sources
65
+ if @xcframework_output == true
66
+ # 生存xcframework优先使用源码仓库\二进制仓库
67
+ @spec_sources = "#{sources_optionV2(@code_dependencies, nil)},https:\/\/cdn.cocoapods.org"
68
+ end
64
69
  end
65
70
 
66
71
  def run
@@ -86,7 +91,7 @@ module Pod
86
91
  @platform,
87
92
  @framework_output,
88
93
  @xcframework_output,
89
- @sources,
94
+ @spec_sources,
90
95
  @zip,
91
96
  @spec,
92
97
  CBin::Config::Builder.instance.white_pod_list.include?(@spec.name),
@@ -1,6 +1,6 @@
1
1
 
2
2
  module CBin
3
- VERSION = '0.2.2.1'
3
+ VERSION = '0.2.2.2'
4
4
  end
5
5
 
6
6
  module Pod
@@ -29,8 +29,24 @@ module CBin
29
29
  sources
30
30
  end
31
31
 
32
+ def valid_sourcesV2(code_dependencies = false)
33
+ sources = [binary_source]
34
+ unless code_dependencies
35
+ sources << code_source
36
+ sources.reverse!
37
+ end
38
+ sources
39
+ end
40
+
41
+ # 二进制优先
32
42
  def sources_option(code_dependencies, additional_sources)
33
43
  (valid_sources(code_dependencies).map(&:url) + Array(additional_sources)).join(',')
34
44
  end
45
+
46
+ # 源码优先
47
+ def sources_optionV2(code_dependencies, additional_sources)
48
+ (valid_sourcesV2(code_dependencies).map(&:url) + Array(additional_sources)).join(',')
49
+ end
50
+
35
51
  end
36
52
  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.2.1
4
+ version: 0.2.2.2
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-06 00:00:00.000000000 Z
11
+ date: 2022-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  - !ruby/object:Gem::Version
206
206
  version: '0'
207
207
  requirements: []
208
- rubygems_version: 3.3.5
208
+ rubygems_version: 3.3.18
209
209
  signing_key:
210
210
  specification_version: 4
211
211
  summary: cocoapods-bb-bin is a plugin which helps develpers switching pods between