cocoapods-swift-binary-source-resolver 0.0.2 → 0.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f91a599a73f5bbdd27a56bed670bf1c91aa44a535815b6ddfc4f3c699092aa3f
|
4
|
+
data.tar.gz: 533811630de2bbb037952d1816e49b798892b8b79d29414aa9494d84c4722c6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e51d8badfbab87be27445c037e8baa977ec798c81c2bbdfb4006d9e44f1bfdd1e1e656d4cf413ef32fa8822573c78d1536fb4b936f5a2e7f252e9d678e2b49c7
|
7
|
+
data.tar.gz: 8b0972883096972fbed70355d4532dbe898941362d0857b242847699240c63a8b48ee0d5f787fd209ebc2151a6bae42fdbb980e55cdabdc4ea639aea626b45e2
|
data/README.md
CHANGED
@@ -3,9 +3,13 @@ module Pod
|
|
3
3
|
class Podfile
|
4
4
|
module DSL
|
5
5
|
|
6
|
-
|
6
|
+
|
7
|
+
def use_source_if_no_valid_binary!(*args)
|
7
8
|
puts "use swift_binary_source_resolver patch"
|
8
9
|
require 'cocoapods-swift-binary-source-resolver/patch'
|
10
|
+
if args.last.kind_of? Hash && args.last[:conservative]
|
11
|
+
$CocoapodsSwiftBinarySourceResolver_conservative = true
|
12
|
+
end
|
9
13
|
end
|
10
14
|
|
11
15
|
end
|
@@ -28,8 +28,11 @@ module Pod
|
|
28
28
|
paths.each do |path|
|
29
29
|
begin
|
30
30
|
spec = Specification.from_file(path)
|
31
|
-
#
|
32
|
-
|
31
|
+
# 这里没办法区分 oc / swift 库,暂时手动处理。前期全部保守的,如果不知道版本,都用 source。
|
32
|
+
# 后期可以放开。那是如果引了原版的 swift 库,就 build 失败,要先去去打依赖的库。
|
33
|
+
if $CocoapodsSwiftBinarySourceResolver_conservative
|
34
|
+
next unless spec.instance_variable_get(:@bd_multiple_swift_binary)
|
35
|
+
end
|
33
36
|
return spec # the real out
|
34
37
|
rescue => e
|
35
38
|
inner_info_exception = e
|