cocoapods-packager-pro 1.5.3 → 1.5.4

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: e94e6eb4079389cf2cf7e5d1bc30c4be72ef7ea6
4
- data.tar.gz: f6d100cdeeac1c9138c95bdd017e9f180022e82f
3
+ metadata.gz: 3d8291133e21ad467524ec173c214a31329541e5
4
+ data.tar.gz: 0b4ee2f2442040f9648b59725e0c2db0ac730d54
5
5
  SHA512:
6
- metadata.gz: 9a52486794f46713181f6d840ca6e887e16bc6efa12ea4676ee65e8f273f90f955957bdad9ab3b522fcaccab170470a00a17d3f842f6090ddcd8844af6b67f9c
7
- data.tar.gz: c2f94551a5b8e53398b1f0ac342cb945eaa1a76834159635cf7b592ecba8a9f8237e8b6a35335c9192f6572c4c060d75d33cc9afdba9b3d900a66dcf7095600c
6
+ metadata.gz: 90a4c2441b65f74318c28bfb8d2f6e577a8eea2dadf77ab5fc1e83d27c6c65e924224d594bbf228f37168b00c900cfdee1c157a837e0cb98b9a79b7f126f8d0f
7
+ data.tar.gz: 519003969b1e8ceef0b6926fcbbdcd62e929c140fbf2557915cfba496ac69a230bf2fae32dd8082949523aa49d8c1ea4b0b93852a674a8b4117b834508c9d161
@@ -229,17 +229,33 @@ MAP
229
229
  def copy_resources
230
230
  bundles = Dir.glob("#{@static_sandbox_root}/build/*.bundle")
231
231
 
232
+ bundle_names = [@spec, *@spec.recursive_subspecs].flat_map do |spec|
233
+ consumer = spec.consumer(@platform)
234
+ consumer.resource_bundles.keys +
235
+ consumer.resources.map do |r|
236
+ File.basename(r, '.bundle') if File.extname(r) == 'bundle'
237
+ end
238
+ end.compact.uniq
239
+
240
+ bundles.select! do |bundle|
241
+ bundle_name = File.basename(bundle, '.bundle')
242
+ bundle_names.include?(bundle_name)
243
+ end
244
+
245
+ bundle_files = bundles.join(' ')
246
+
232
247
  if @dynamic
233
248
  resources_path = "ios/#{@spec.name}.framework"
234
- `cp -rp #{@static_sandbox_root}/build/*.bundle #{resources_path} 2>&1`
249
+ `cp -rp #{bundle_files} #{resources_path} 2>&1`
235
250
  else
236
- `cp -rp #{@static_sandbox_root}/build/*.bundle #{@fwk.resources_path} 2>&1`
251
+ `cp -rp #{bundle_files} #{@fwk.resources_path} 2>&1`
237
252
  dependency_names = @static_installer.podfile.dependencies.map(&:name)
238
253
  resources = [@spec, *@spec.recursive_subspecs].flat_map do |spec|
239
254
  if (dependency_names & [spec.name, @spec.name]).any?
240
255
  expand_paths(spec.consumer(@platform).resources)
241
256
  end
242
257
  end.compact.uniq
258
+
243
259
  if resources.count == 0 && bundles.count == 0
244
260
  @fwk.delete_resources
245
261
  return
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  module Packager
3
- VERSION = '1.5.3'.freeze
3
+ VERSION = '1.5.4'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-packager-pro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Fuller
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-01-18 00:00:00.000000000 Z
12
+ date: 2019-01-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cocoapods