cocoapods-tdfire-binary 1.2.6 → 1.3.6

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: c55ded4b343b1782c4e2ad32cd076e90ffb88c11
4
- data.tar.gz: 11b749e91acc889247de163ae5c879709dff99b7
3
+ metadata.gz: 1475a8c11630304a9897521dae4abf2e0f75b361
4
+ data.tar.gz: 94dd308bcb41eb406276132f39f0a106155aa30e
5
5
  SHA512:
6
- metadata.gz: 78251194d17d6307fdac6bd652206bac2fc652f6c22fbd94f70fec8895d4f9967448cd6bb4295843fb71877e39f1025cdac04a6cfaf0672a66e1d2f9d9680c8c
7
- data.tar.gz: 26dc292c74bc37687f6439f623b83aaacf620aa5a213c82c159905380b609d5d5c8c27001c0c1b87032edbee5f4f548fa5f01bf3dba8675ca810b6e99fff4ab5
6
+ metadata.gz: 76e3124b8c513a60e25aaf0f80f5c50247d5533516a9a1c656653705c4f92f3ee154c93317f9363c85abbe2fbb0076490133b4fa107cc674195e71987667d2ef
7
+ data.tar.gz: e85391b1931c34e1561798ec0cfd4be6043869695af5afdbc3953a1414fdf279485a4fb251be19c6ef1cd328ec5115e3bb9f65d9ee5a7f07b35054e3d5fb2bf3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-tdfire-binary (1.2.6)
4
+ cocoapods-tdfire-binary (1.3.6)
5
5
  cocoapods (~> 1.2)
6
6
  cocoapods-packager (~> 1.5.0)
7
7
 
@@ -56,12 +56,21 @@ module Pod
56
56
  ENV[FORCE_USE_SOURCE_KEY] == USE_SURE_VALUE
57
57
  end
58
58
 
59
+ def self.set_third_party_use_binary
60
+ ENV[THIRD_PARTY_USE_BINARY_KEY] = USE_SURE_VALUE
61
+ end
62
+
63
+ def self.third_party_use_binary?
64
+ ENV[THIRD_PARTY_USE_BINARY_KEY] == USE_SURE_VALUE
65
+ end
66
+
59
67
  private
60
68
 
61
69
  UNPBLISHED_PODS = "tdfire_unpublished_pods"
62
70
  FORCE_USE_SOURCE_KEY = 'tdfire_force_use_source'
63
71
  FORCE_USE_BINARY_KEY = 'tdfire_force_use_binary'
64
72
  USE_BINARY_KEY = 'tdfire_use_binary'
73
+ THIRD_PARTY_USE_BINARY_KEY = 'tdfire_third_party_use_binary'
65
74
  LIMIT_PLATFORM_KEY = 'tdfire_limit_platform'
66
75
  USE_SURE_VALUE = '1'
67
76
  end
@@ -45,7 +45,7 @@ module Pod
45
45
 
46
46
 
47
47
  @path = path
48
- @name = name || path.split('/').last - ZIP_SUBFFIX
48
+ @name = name || path.split('/').last.sub(ZIP_SUBFFIX, '')
49
49
  @version = version
50
50
  @commit = commit
51
51
  super
@@ -1,3 +1,3 @@
1
1
  module CocoapodsTdfireBinary
2
- VERSION = "1.2.6"
2
+ VERSION = "1.3.6"
3
3
  end
@@ -4,6 +4,7 @@ require 'cocoapods-tdfire-binary/binary_state_store'
4
4
  module Pod
5
5
  class Podfile
6
6
  module DSL
7
+
7
8
  # 使用源码依赖的pod
8
9
  def tdfire_use_source_pods(pods)
9
10
  Pod::UI.puts "Tdfire: set use source pods: #{Array(pods).join(', ')}"
@@ -15,6 +16,10 @@ module Pod
15
16
  Pod::Tdfire::BinaryStateStore.set_use_binary
16
17
  end
17
18
 
19
+ def tdfire_third_party_use_binary!
20
+ Pod::Tdfire::BinaryStateStore.set_third_party_use_binary
21
+ end
22
+
18
23
  # 因为暂时无法将全部组件二进制化,tdfire_use_binary! 默认全部进行二进制依赖不利于渐进测试
19
24
  # 所以添加 tdfire_use_source! 默认全部进行源码依赖,开放指定二进制依赖组件接口
20
25
  #
@@ -76,14 +76,22 @@ module Pod
76
76
  end
77
77
 
78
78
  def tdfire_use_source?
79
- (((!Pod::Tdfire::BinaryStateStore.force_use_binary? &&
80
- (!Pod::Tdfire::BinaryStateStore.use_binary? || Pod::Tdfire::BinaryStateStore.real_use_source_pods.include?(root.name))) ||
79
+ ((((!Pod::Tdfire::BinaryStateStore.force_use_binary? &&
80
+ (!Pod::Tdfire::BinaryStateStore.use_binary? || Pod::Tdfire::BinaryStateStore.real_use_source_pods.include?(root.name)) &&
81
+ (!(Pod::Tdfire::BinaryStateStore.third_party_use_binary? && tdfire_third_party?) || Pod::Tdfire::BinaryStateStore.real_use_source_pods.include?(root.name))) ||
81
82
  Pod::Tdfire::BinaryStateStore.force_use_source?) &&
82
83
  (Pod::Tdfire::BinaryStateStore.lib_lint_binary_pod != root.name)) ||
83
- !tdfire_had_set_binary_strategy
84
+ !tdfire_had_set_binary_strategy)
84
85
  end
85
86
 
86
87
  private
88
+ def tdfire_third_party?
89
+ if source
90
+ source[:git]&.include?('cocoapods-repos')
91
+ else
92
+ false
93
+ end
94
+ end
87
95
 
88
96
  # 没有配置二进制策略的,使用源码依赖
89
97
  def tdfire_had_set_binary_strategy
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.2.6
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - tripleCC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-22 00:00:00.000000000 Z
11
+ date: 2018-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler