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 +4 -4
- data/lib/cocoapods-packager/builder.rb +18 -2
- data/lib/cocoapods_packager.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d8291133e21ad467524ec173c214a31329541e5
|
4
|
+
data.tar.gz: 0b4ee2f2442040f9648b59725e0c2db0ac730d54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 #{
|
249
|
+
`cp -rp #{bundle_files} #{resources_path} 2>&1`
|
235
250
|
else
|
236
|
-
`cp -rp #{
|
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
|
data/lib/cocoapods_packager.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2019-01-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cocoapods
|