cocoapods-tdfire-binary 1.4.30 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed6cba644d49bc3075b52fc27eeb11ea8899e7eb
4
- data.tar.gz: 2169133498a0a2d8fde685290183f05b1f676682
3
+ metadata.gz: fcdcadc2f4b9b382a9796c9805bd597044106eb0
4
+ data.tar.gz: 8d9b4628bf7f7bb1e97dec7c7670b83b9312076e
5
5
  SHA512:
6
- metadata.gz: f3a47bf20aed890c09fe16463710029fa91d69a8aa4a9abe813cf21e019d73765ce1bf94a095acc4135b82aef31cecb9ac29644ed67902a6abdc61bece8bdc2b
7
- data.tar.gz: b9e552c67efce0c4ea92e441ca15123898ba5c22942d48c9bba8eddb2a0f810d0d5ebaff710dd3aca1dc06b6b8ae804e79e7c3b9bad59cbc46765e9d3a9ab665
6
+ metadata.gz: 15e0ca0e25d0c78731af080fb4faa2a791a6c22f223b8f20fedeec1a145cdf3f4d734023f4e6ce822ff0c0366109be566303c6a94dd18acaee108267346bf3d9
7
+ data.tar.gz: 51a2faefa381a7c8845d138c8a49eea3f12304a6faf24eae5791ad01a15601fef32e486a1682c227d044f9db772daef3ec0bd1724c34398dfb44b8e4d9e6e13e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-tdfire-binary (1.4.30)
4
+ cocoapods-tdfire-binary (2.0.3)
5
5
  cocoapods (~> 1.2)
6
6
  cocoapods-packager (~> 1.5.0)
7
7
 
@@ -5,39 +5,39 @@ require 'cocoapods-tdfire-binary/binary_url_manager'
5
5
 
6
6
  module Pod
7
7
  class Installer
8
- old_resolve_dependencies = instance_method(:resolve_dependencies)
9
- define_method(:resolve_dependencies) do
10
- old_resolve_dependencies.bind(self).call()
11
-
12
- # 1.4.0 版本生效
13
- # 使用 use_frameworks! 后,生成静态 Framework
14
- analysis_result.specifications.each do |spec|
15
- spec.static_framework = true if spec.respond_to?('static_framework')
16
- end if Pod::Tdfire::BinaryStateStore.use_binary?
17
-
18
- analysis_result.specifications.uniq { |s| s.root.name }.each do |spec|
19
- if spec.tdfire_use_source?
20
- UI.message "Source".magenta.bold + " dependecy for " + "#{spec.root.name} #{spec.version}".green.bold
21
- else
22
- UI.message "Binary".cyan.bold + " dependecy for " + "#{spec.root.name} #{spec.version}".green.bold
23
- end
24
- end
25
-
26
-
27
- cleaner = Pod::Tdfire::BinaryCacheCleaner.new(analysis_result)
28
- cleaner.clean!
8
+ # old_resolve_dependencies = instance_method(:resolve_dependencies)
9
+ # define_method(:resolve_dependencies) do
10
+ # old_resolve_dependencies.bind(self).call()
11
+
12
+ # # 1.4.0 版本生效
13
+ # # 使用 use_frameworks! 后,生成静态 Framework
14
+ # analysis_result.specifications.each do |spec|
15
+ # spec.static_framework = true if spec.respond_to?('static_framework')
16
+ # end if Pod::Tdfire::BinaryStateStore.use_binary?
17
+
18
+ # analysis_result.specifications.uniq { |s| s.root.name }.each do |spec|
19
+ # if spec.tdfire_use_source?
20
+ # UI.message "Source".magenta.bold + " dependecy for " + "#{spec.root.name} #{spec.version}".green.bold
21
+ # else
22
+ # UI.message "Binary".cyan.bold + " dependecy for " + "#{spec.root.name} #{spec.version}".green.bold
23
+ # end
24
+ # end
25
+
26
+
27
+ # cleaner = Pod::Tdfire::BinaryCacheCleaner.new(analysis_result)
28
+ # cleaner.clean!
29
29
 
30
- # 二进制不存在,强制进行源码依赖
31
- if cleaner.no_binary_specs.any?
32
- pods = cleaner.no_binary_specs.map { |s| s.root.name }
33
- Pod::Tdfire::BinaryStateStore.use_source_pods += pods
34
- UI.warn "Tdfire: 以下组件没有二进制版本,将强制使用源码依赖,添加以下代码至Podfile规避此警告: tdfire_use_source_pods #{pods}"
30
+ # # 二进制不存在,强制进行源码依赖
31
+ # if cleaner.no_binary_specs.any?
32
+ # pods = cleaner.no_binary_specs.map { |s| s.root.name }
33
+ # Pod::Tdfire::BinaryStateStore.use_source_pods += pods
34
+ # UI.warn "Tdfire: 以下组件没有二进制版本,将强制使用源码依赖,添加以下代码至Podfile规避此警告: tdfire_use_source_pods #{pods}"
35
35
 
36
- # 在这个时间点设置 use_source_pods ,实际上并不会生效,因为 analysis_result 已经生成,依赖关系不会改变
37
- # 所以这里强制进行第二次分析,更新 analysis_result
38
- old_resolve_dependencies.bind(self).call()
39
- end
40
- end
36
+ # # 在这个时间点设置 use_source_pods ,实际上并不会生效,因为 analysis_result 已经生成,依赖关系不会改变
37
+ # # 所以这里强制进行第二次分析,更新 analysis_result
38
+ # old_resolve_dependencies.bind(self).call()
39
+ # end
40
+ # end
41
41
  end
42
42
  end
43
43
 
@@ -1,3 +1,3 @@
1
1
  module CocoapodsTdfireBinary
2
- VERSION = "1.4.30"
2
+ VERSION = "2.0.3"
3
3
  end
@@ -20,6 +20,9 @@ module Pod
20
20
 
21
21
  # 源码依赖配置
22
22
  def tdfire_source(configurator)
23
+ configurator.call self
24
+ return
25
+
23
26
  tdfire_set_binary_strategy_flag
24
27
 
25
28
  if tdfire_use_source?
@@ -36,6 +39,8 @@ module Pod
36
39
 
37
40
  # 二进制依赖配置
38
41
  def tdfire_binary(configurator, &block)
42
+ return
43
+
39
44
  tdfire_set_binary_strategy_flag
40
45
 
41
46
  if !tdfire_use_source?
@@ -64,6 +69,8 @@ module Pod
64
69
 
65
70
  # 配置二进制文件下载、cache 住解压好的 framework
66
71
  def tdfire_set_binary_download_configurations
72
+ return
73
+
67
74
  tdfire_set_binary_strategy_flag
68
75
 
69
76
  tdfire_refactor.set_preserve_paths(tdfire_reference_spec)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-tdfire-binary
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.30
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - tripleCC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-27 00:00:00.000000000 Z
11
+ date: 2019-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler