cocoapods-binary 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-binary/Prebuild.rb +14 -5
- data/lib/cocoapods-binary/gem_version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5ce1e59aef6cd59958b1ae0a97a4ac1048be724
|
4
|
+
data.tar.gz: 51760a1c0972ba70fdfd4cecda153594027e9c70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cf6c852f46e9bdcd7d7a9cba0158a82796df981e76c9dde9e9787b613b0df3f357d2d7d035f25a2140a6de6727c8aa5d18df67185731b5a77795ebe25c32c1d
|
7
|
+
data.tar.gz: 8a9ee829a215cb263a0f1b0d698d6372523ed96b348158c7e5118fc328d93891e83a0365ec860e6432c32c568109d82cca6d895872646a5abfa9ecb016d873ac
|
@@ -22,7 +22,6 @@ module Pod
|
|
22
22
|
if local_manifest != nil
|
23
23
|
|
24
24
|
changes = local_manifest.detect_changes_with_podfile(podfile)
|
25
|
-
Pod::Prebuild.framework_changes = changes # save the chagnes info for later stage
|
26
25
|
added = changes[:added] || []
|
27
26
|
changed = changes[:changed] || []
|
28
27
|
unchanged = changes[:unchanged] || []
|
@@ -38,7 +37,7 @@ module Pod
|
|
38
37
|
not unchange_framework_names.include?(framework_name)
|
39
38
|
end
|
40
39
|
to_delete.each do |framework_name|
|
41
|
-
path =
|
40
|
+
path = sandbox.framework_path_for_pod_name framework_name
|
42
41
|
path.rmtree if path.exist?
|
43
42
|
end
|
44
43
|
|
@@ -55,7 +54,6 @@ module Pod
|
|
55
54
|
Pod::Prebuild.build(sandbox_path, existed_framework_folder, targets)
|
56
55
|
|
57
56
|
else
|
58
|
-
Pod::Prebuild.framework_changes = nil
|
59
57
|
Pod::Prebuild.build(sandbox_path, existed_framework_folder, self.pod_targets)
|
60
58
|
end
|
61
59
|
|
@@ -79,20 +77,31 @@ module Pod
|
|
79
77
|
|
80
78
|
# check if need build frameworks
|
81
79
|
local_manifest = self.sandbox.manifest
|
80
|
+
Pod::Prebuild.framework_changes = nil
|
82
81
|
return old_method.bind(self).() if local_manifest == nil
|
83
82
|
|
84
83
|
changes = local_manifest.detect_changes_with_podfile(podfile)
|
85
84
|
added = changes[:added] || []
|
86
85
|
changed = changes[:changed] || []
|
87
86
|
unchanged = changes[:unchanged] || []
|
88
|
-
|
87
|
+
deleted = changes[:removed] || []
|
88
|
+
Pod::Prebuild.framework_changes = changes # save the chagnes info for later stage
|
89
|
+
|
89
90
|
unchange_framework_names = added + unchanged
|
90
91
|
exsited_framework_names = sandbox.exsited_framework_names
|
91
92
|
missing = unchanged.select do |pod_name|
|
92
93
|
not exsited_framework_names.include?(pod_name)
|
93
94
|
end
|
94
|
-
|
95
|
+
|
95
96
|
if (added + changed + missing).empty?
|
97
|
+
deleted.each do |framework_name|
|
98
|
+
path = sandbox.framework_path_for_pod_name framework_name
|
99
|
+
if path.exist?
|
100
|
+
path.rmtree
|
101
|
+
UI.puts "Delete #{framework_name}"
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
96
105
|
# don't do the install
|
97
106
|
exsited_framework_names.each do |name|
|
98
107
|
UI.puts "Using #{name}"
|