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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2ded6addae43bd3a4aa48791752a2351bae610330eecd697bcb6345e5e2d3ae
4
- data.tar.gz: e21f5ee83d04b03bab18f0ff2c74eeccfdcb7a130b33885930a50917343384f4
3
+ metadata.gz: 16fe8864cb3d9496d9c5920bc907be66aa5232cc9e5990a077ecb05394434f9b
4
+ data.tar.gz: b9f6a4336698f14e91501324dc6deeecccfde310cdb3e588af0c421e7d9861e7
5
5
  SHA512:
6
- metadata.gz: 2c4c2090c2564e939f6908c38b283d5528f23553a70583e3f05e1441ba683297d315fc93de37d76803ff0bcf5eddb8c29ecab8fa486bef4d44fd5a7c90f03998
7
- data.tar.gz: fe8543e5d321fa5a34a7cb37e6a7bc30149a19ee6d2ebc4fd8bfeb7db2126b907b68bd949df44ad3ecfb6cbdf7f87169a4e9e50ce96ce4ef654e7ffa356fbcb7
6
+ metadata.gz: 4bbd6f7a386174614d960d826752381ed6d86cea458e2bb8d9c397a5e90b45abd3326da89be1420f9fe310b8749dc6954f02088533c1abd5911c3fdd1a560ded
7
+ data.tar.gz: 5054ae8df4e179f558a9ebc3da56643c32e390a1f07b1c6fea015ad60db308df2d3e4b25dd9677314755d660a64a90a0a2dde4733be643012c399b91d45bc968
data/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  `cocoapods-meitu-bin`是`CocoaPods`的二进制插件,提供了二进制相关的功能,如基于壳工程的二进制制作、二进制 / 源码切换等
6
6
 
7
+ [美图秀秀 iOS 客户端二进制之路](https://juejin.cn/post/7175023366783385659)
8
+
7
9
  ## 安装
8
10
 
9
11
  `cocoapods-meitu-bin`有2种安装方式:
@@ -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
  # 白名单(有白名单,只看白名单,不分全量和非全量)
@@ -1,5 +1,5 @@
1
1
  module CBin
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.1"
3
3
  end
4
4
 
5
5
  module Pod
@@ -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
- specs << dependencies_str(pod_name, specifications)
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
@@ -9,6 +9,7 @@ module Pod
9
9
  USE_PLUGINS = 'use_plugins'
10
10
  CONFIGURATION_ENV = 'configuration_env'
11
11
  CONFIGURATION = 'configuration'
12
+ INCLUDE_DEPENDENCIES = 'include_dependencies'
12
13
 
13
14
  module ENVExecutor
14
15
  def execute_with_bin_plugin(&block)
@@ -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.0.0
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: 2022-12-06 00:00:00.000000000 Z
11
+ date: 2023-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel