cocoapods-meitu-bin 1.0.0 → 1.1.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/README.md +2 -0
- data/lib/cocoapods-meitu-bin/command/bin/build_all.rb +1 -1
- data/lib/cocoapods-meitu-bin/gem_version.rb +1 -1
- data/lib/cocoapods-meitu-bin/helpers/buildAll/bin_helper.rb +5 -2
- data/lib/cocoapods-meitu-bin/native/podfile.rb +8 -0
- data/lib/cocoapods-meitu-bin/native/podfile_env.rb +1 -0
- data/lib/cocoapods-meitu-bin/native/resolver.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: 16fe8864cb3d9496d9c5920bc907be66aa5232cc9e5990a077ecb05394434f9b
|
4
|
+
data.tar.gz: b9f6a4336698f14e91501324dc6deeecccfde310cdb3e588af0c421e7d9861e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bbd6f7a386174614d960d826752381ed6d86cea458e2bb8d9c397a5e90b45abd3326da89be1420f9fe310b8749dc6954f02088533c1abd5911c3fdd1a560ded
|
7
|
+
data.tar.gz: 5054ae8df4e179f558a9ebc3da56643c32e390a1f07b1c6fea015ad60db308df2d3e4b25dd9677314755d660a64a90a0a2dde4733be643012c399b91d45bc968
|
data/README.md
CHANGED
@@ -219,7 +219,7 @@ module Pod
|
|
219
219
|
created_pods = []
|
220
220
|
pod_targets.map do |pod_target|
|
221
221
|
begin
|
222
|
-
version = @version_helper.version(pod_target.pod_name, pod_target.root_spec.version.to_s, @analyze_result.specifications, @configuration)
|
222
|
+
version = @version_helper.version(pod_target.pod_name, pod_target.root_spec.version.to_s, @analyze_result.specifications, @configuration, podfile.include_dependencies?)
|
223
223
|
# 黑名单(不分全量和非全量)
|
224
224
|
next if skip_build?(pod_target)
|
225
225
|
# 白名单(有白名单,只看白名单,不分全量和非全量)
|
@@ -11,13 +11,16 @@ module CBin
|
|
11
11
|
end
|
12
12
|
|
13
13
|
# 二进制版本号(x.y.z.bin[md5前6位])
|
14
|
-
def version(pod_name, original_version, specifications, configuration = 'Debug')
|
14
|
+
def version(pod_name, original_version, specifications, configuration = 'Debug', include_dependencies = false)
|
15
15
|
# 有缓存从缓存中取,没有则新建
|
16
16
|
if @specs_str_md5_hash[pod_name].nil?
|
17
17
|
specs = specifications.map(&:name).select { |spec|
|
18
18
|
spec.include?(pod_name) && !spec.include?('/Binary')
|
19
19
|
}.sort!
|
20
|
-
|
20
|
+
# puts "#{pod_name}:#{include_dependencies}"
|
21
|
+
if include_dependencies
|
22
|
+
specs << dependencies_str(pod_name, specifications)
|
23
|
+
end
|
21
24
|
specs << xcode_version
|
22
25
|
specs << (configuration.nil? ? 'Debug' : configuration)
|
23
26
|
specs_str = specs.join('')
|
@@ -16,6 +16,10 @@ module Pod
|
|
16
16
|
set_internal_hash_value(USE_BINARIES, flag)
|
17
17
|
end
|
18
18
|
|
19
|
+
def include_dependencies!(flag = false)
|
20
|
+
set_internal_hash_value(INCLUDE_DEPENDENCIES, flag)
|
21
|
+
end
|
22
|
+
|
19
23
|
def use_binaries_with_spec_selector!(&block)
|
20
24
|
raise Informative, '必须提供选择需要二进制组件的 block !' unless block_given?
|
21
25
|
|
@@ -65,6 +69,10 @@ module Pod
|
|
65
69
|
get_internal_hash_value(USE_BINARIES, false) || ENV[USE_BINARIES] == 'true'
|
66
70
|
end
|
67
71
|
|
72
|
+
def include_dependencies?
|
73
|
+
get_internal_hash_value(INCLUDE_DEPENDENCIES, false) || ENV[INCLUDE_DEPENDENCIES] == 'true'
|
74
|
+
end
|
75
|
+
|
68
76
|
def use_source_pods
|
69
77
|
get_internal_hash_value(USE_SOURCE_PODS, []) + String(ENV[USE_SOURCE_PODS]).split('|').uniq
|
70
78
|
end
|
@@ -179,7 +179,7 @@ module Pod
|
|
179
179
|
if use_binary
|
180
180
|
source = sources_manager.binary_source
|
181
181
|
configuration = ENV['configuration'] || podfile.configuration
|
182
|
-
spec_version = version_helper.version(rspec.root.name, rspec.spec.version, specifications, configuration)
|
182
|
+
spec_version = version_helper.version(rspec.root.name, rspec.spec.version, specifications, configuration, podfile.include_dependencies?)
|
183
183
|
else
|
184
184
|
# 获取podfile中的source
|
185
185
|
podfile_sources = podfile.sources.uniq.map { |source| sources_manager.source_with_name_or_url(source) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-meitu-bin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jensen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|