cocoapods-tdfire-binary 1.2.6 → 1.3.6
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/Gemfile.lock +1 -1
- data/lib/cocoapods-tdfire-binary/binary_state_store.rb +9 -0
- data/lib/cocoapods-tdfire-binary/command/push.rb +1 -1
- data/lib/cocoapods-tdfire-binary/gem_version.rb +1 -1
- data/lib/cocoapods-tdfire-binary/podfile_dsl.rb +5 -0
- data/lib/cocoapods-tdfire-binary/specification_dsl.rb +11 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1475a8c11630304a9897521dae4abf2e0f75b361
|
|
4
|
+
data.tar.gz: 94dd308bcb41eb406276132f39f0a106155aa30e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76e3124b8c513a60e25aaf0f80f5c50247d5533516a9a1c656653705c4f92f3ee154c93317f9363c85abbe2fbb0076490133b4fa107cc674195e71987667d2ef
|
|
7
|
+
data.tar.gz: e85391b1931c34e1561798ec0cfd4be6043869695af5afdbc3953a1414fdf279485a4fb251be19c6ef1cd328ec5115e3bb9f65d9ee5a7f07b35054e3d5fb2bf3
|
data/Gemfile.lock
CHANGED
|
@@ -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
|
|
@@ -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.
|
|
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-
|
|
11
|
+
date: 2018-08-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|