cocoapods-binary 0.3.7 → 0.4.0

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
  SHA256:
3
- metadata.gz: 036ad7179a6f2157a12b00570044eeccbfa4d22b06a613e1f7cf188982be547a
4
- data.tar.gz: 77535b2c6e457eb683e79f31388f4444088f596e872eaba4eaa789ff2a752caa
3
+ metadata.gz: 7b06937c124b45ca9bdd9c343d3a5a095dbeca45812129bc6df581d1af9e44a9
4
+ data.tar.gz: bee354ccb5c8519da830b0bf74fc2975db7df7cbad38ebff01f2a15eadc35dd1
5
5
  SHA512:
6
- metadata.gz: be7eeabec2a05a3e1ffc2f27f3b9a611799111179ed8df0cc83045a3fd87cab6b274d66b9bdaa9d2cf597b522fc466ee6a983529cdc3655a5353c6b4dac0d1e9
7
- data.tar.gz: 1f862ab8ae946cf805a6ffa6f1f25411b4e25f53bfb49e53e1cf5266da2dadec27ccc7c56c5c90bbc95f09d072b9fdb10feb3866786ba37a47846f08cf2c5ed5
6
+ metadata.gz: f5e0abb86ec640703f922a5898f546876321d031e4dd02567a5890d2b6714ed4791d04915e8e3eb4e8ed25ada5ea9fcbdfd38fec7b3ccbd9465c8af437075c9f
7
+ data.tar.gz: 17717118fdc62c3e8e602ef45fbd9e190e91cb751ada20cb51d67dbe74a2a40150aae45bfa72ede45a19733db61e1b28852644161000f2d0c3a2a061684fd897
data/README.md CHANGED
@@ -55,8 +55,11 @@ end
55
55
 
56
56
  If you want to disable binary for a specific pod when using `all_binary!`, place a `:binary => false` to it.
57
57
 
58
+ If your `Pods` folder is excluded from git, you may add `keep_source_code_for_prebuilt_frameworks!` in the head of Podfile to speed up pod install, as it won't download all the sources every time prebuilt pods have changes.
59
+
58
60
  If bitcode is needed, add a `enable_bitcode_for_prebuilt_frameworks!` before all targets in Podfile
59
61
 
62
+
60
63
  #### Known Issues
61
64
 
62
65
  - doesn't support watchos now
@@ -17,12 +17,22 @@ module Pod
17
17
  DSL.bitcode_enabled = true
18
18
  end
19
19
 
20
+ # Don't remove source code of prebuilt pods
21
+ # It may speed up the pod install if git didn't
22
+ # include the `Pods` folder
23
+ def keep_source_code_for_prebuilt_frameworks!
24
+ DSL.dont_remove_source_code = true
25
+ end
26
+
20
27
  private
21
28
  class_attr_accessor :prebuild_all
22
29
  prebuild_all = false
23
30
 
24
31
  class_attr_accessor :bitcode_enabled
25
32
  bitcode_enabled = false
33
+
34
+ class_attr_accessor :dont_remove_source_code
35
+ dont_remove_source_code = false
26
36
  end
27
37
  end
28
38
  end
@@ -166,15 +166,6 @@ module Pod
166
166
  end
167
167
 
168
168
  # Remove useless files
169
- # only keep manifest.lock and framework folder in _Prebuild
170
- to_remain_files = ["Manifest.lock", File.basename(existed_framework_folder)]
171
- to_delete_files = sandbox_path.children.select do |file|
172
- filename = File.basename(file)
173
- not to_remain_files.include?(filename)
174
- end
175
- to_delete_files.each do |path|
176
- path.rmtree if path.exist?
177
- end
178
169
  # remove useless pods
179
170
  all_needed_names = self.pod_targets.map(&:name).uniq
180
171
  useless_names = sandbox.exsited_framework_names.reject do |name|
@@ -185,6 +176,24 @@ module Pod
185
176
  path.rmtree if path.exist?
186
177
  end
187
178
 
179
+ if not Podfile::DSL.dont_remove_source_code
180
+ # only keep manifest.lock and framework folder in _Prebuild
181
+ to_remain_files = ["Manifest.lock", File.basename(existed_framework_folder)]
182
+ to_delete_files = sandbox_path.children.select do |file|
183
+ filename = File.basename(file)
184
+ not to_remain_files.include?(filename)
185
+ end
186
+ to_delete_files.each do |path|
187
+ path.rmtree if path.exist?
188
+ end
189
+ else
190
+ # just remove the tmp files
191
+ path = sandbox.root + 'Manifest.lock.tmp'
192
+ path.rmtree if path.exist?
193
+ end
194
+
195
+
196
+
188
197
  end
189
198
 
190
199
 
@@ -1,3 +1,3 @@
1
1
  module CocoapodsBinary
2
- VERSION = "0.3.7"
2
+ VERSION = "0.4.0"
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.3.7
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - leavez