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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6925feace88f0d5ad174996b0414c8096cf067b2
4
- data.tar.gz: 15b03fa7b10f57e599d8dc3f0d69442a14de92a3
3
+ metadata.gz: d5ce1e59aef6cd59958b1ae0a97a4ac1048be724
4
+ data.tar.gz: 51760a1c0972ba70fdfd4cecda153594027e9c70
5
5
  SHA512:
6
- metadata.gz: b6eaadf47184ebba52678a2ab213ac1d6dd20c73b45482521b32ac42d8b3046d356a4c66d2b035e444e9b09370b498e1c0d6f778139af8abbfb7d5ea3fd4c856
7
- data.tar.gz: e24be4845c17b0c6affea13063e7a922b39752bccd9fd2c1efbafe28e057c709c2ab50eae879f88f90da7a8e9f03726ff0a52f8941dfa513540a685899832edf
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 = existed_framework_folder + (framework_name + ".framework")
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}"
@@ -1,3 +1,3 @@
1
1
  module CocoapodsBinary
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-binary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - leavez